/*[[ Name := GoodDayExp Author := Copyright © 2006, HomeSoft-Tartan Corp. Link := spiky@sinet.spb.ru Lots := 1.00 Stop Loss := 150 Take Profit := 20 Trailing Stop := 0 ]]*/ Defines : ttime(3600),test(0),zazor(20); Vars : cnt(0),j(0),ft(true),blok(0),del(0),s(0),b(0),dw(" "),top(0),MidL(0),MLP(0),MLM(0); // This EA should be used on M5 - H1 timeframe j=j+1; if Minute=0 and Seconds<=15 then j=0; If CurTime-LastTradeTime<15 then exit; if (Hour=0 and Minute<5) or ft then Begin blok=0;s=0;b=0; if ft then top=round((Hour*60+Minute)/period)+1 else top=1; MidL=C[top];MLP=MidL+zazor*point;MLM=MidL-zazor*point; MoveObject("MidL",OBJ_HLINE,time[0],MidL,time[5],MidL,Gold,1,STYLE_DOT); MoveObject("MLP",OBJ_HLINE,time[0],MLP,time[5],MLP,Lime,1,STYLE_DOT); MoveObject("MLM",OBJ_HLINE,time[0],MLM,time[5],MLM,Magenta,1,STYLE_DOT);ft=false;end; if s+b=0 then blok=0 else blok=1; if DayOfWeek=2 then dw="Monday"; if DayOfWeek=3 then dw="Tuesday"; if DayOfWeek=4 then dw="Wednesday"; if DayOfWeek=5 then dw="Thursday"; if DayOfWeek=6 then dw="Friday"; if C[0]>MLP then del=round((C[0]-MLP)/point); if C[0]=MLM then del=0; Comment("Data: ",year,".",month,".",day," Day=",dw," Time ",hour,":",minute," Tiks=",j,"\n","Blok=",blok, " Delta=",del," Min=",MLM," Max=",MLP," Price=",C[0]); if Hour>0 and blok=0 then Begin if DayOfWeek=6 then exit; if del>5 and C[0]>MLP then Begin s=s+1;Alert("Possible to place SellStop order at the price: ",MLP);end; if del>5 and C[0]