_SECTION_BEGIN("BuyZone"); // Programmer: Alex Chambers, May 2007 // For use with the BuyZone trading strategy at Kreslik.com // For Amibroker - just drag and drop // I, Alex Chambers, am not responsible for any results you may have from the use of this indicator // You must evaluate yourself the potential for gains AND losses // Please include this and/or any other comment description of any changes you make. startTim = Param("TimeOfOpen",130000,0,240000,500); pnts = Param("BuyZonePointsAway",5,0,50,1); multiplier = Param("Multiplier",10000,0,10000,100); Plotflag = Param("Off/Open/Open + zones",2,0,2,1); addon = pnts / multiplier; ttt = IIf(TimeNum() == startTim,1,0); Oj = IIf(ttt==1,O,0); Opn = ValueWhen(ttt==1,Oj); Longzone = Opn + addon; Shortzone = Opn - addon; if (Plotflag >0) { Plot (Opn,"OpenValue",colorBlue, styleStaircase); Vbar = TimeNum() >= startTim AND TimeNum() < startTim+1; Plot(Vbar,"",colorBlue,styleHistogram|styleDashed|styleOwnScale|styleNoLabel|styleThick); } if (Plotflag == 2) { Plot (Longzone ,"Longzone",colorOrange, styleStaircase|styleDashed); Plot (Shortzone,"Shortzone",colorOrange, styleStaircase|styleDashed); } _SECTION_END();