Why doesn't my EA place trades when i use a negative (-) value for the MA shift
-
I am trying to place the Moving Average indicator 10 with a shift of -5... but when i use a -5 in the indicator block for the MA shift... it doesn't place and trades.
-
Sounds weird. Are you sure that's the reason? Could you please share your project to take a look at it?
-
@l-andorrà ok yes here is a link to my project.... whenever i use i (-) minus value for moving average shift no orders get placed...
https://fxdreema.com/shared/9r3jbJZ2d -
@fxgjg When you use negative shift, the moving average (red) moves to the left. There is nothing for the un-shifted (yellow) to compare to.

-
@roar i dont quite understand.... i thought i was comparing MA 10 (shift -5) to MA 40 (shift +5).
Are you saying i cannot use a (-) minus value for comparison? -
@fxgjg Period doesnt matter, you must understand how the indicators are updated to the chart. Your EA is trying to make the comparison before the data is there (at current candle time):

-
@roar okie dokie..... i see now... thanks ever so much!!
if only we could predict the future......