Moving Average Cross over problem. - page 2 12 New comment William Roeder 2010.10.29 23:13 #11 if(Volume[0]>1) return; //-----Get Moving Averages FMA=iMA(NULL,0,MPeriod1,Mshift,MODE_SMA,PRICE_CLOSE,0); SMA=iMA(NULL,0,MPeriod2,Mshift,MODE_SMA,PRICE_CLOSE,0); Don't use bar 0 MAs they can cross several times in one bar. Use bar 1 Use Time[0] not Volume for(int i=0;i<OrdersTotal();i++) Count down when closing, deleting. 12 New comment
Don't use bar 0 MAs they can cross several times in one bar. Use bar 1