#property strict #property indicator_separate_window #property indicator_buffers 17 //#property indicator_color1 DarkGreen // Color of the 1st line //#property indicator_color2 Navy // Color
original code: why the result is different?It should be the same! for (i=bars;i>= 0 ;i--) { ma = iMA ( "NZDUSD" , 0 ,periodMA, 0 , 0 , PRICE_MEDIAN ,i);//replace with
if close-open >0.01 on H4 chart,then we were in up trend. if close-open < -0.01 on H4 chart,then we were in down trend. if close-open >0.005 on H1 chart,then we send buy order(buy signal). if close-open < -0.005 on H1
This is the EA I want to modify to work with others.It's a simple grid EA.It use AccountBalance() and AccountEquity(),so when other EA have oders in list. This EA can't work correctly.Someone please help. extern int Step = 170 ; extern double