Moving Average does not cross over but BUY trade placed
-
The moving average comes close to but does not cross over YET the trade get placed as if it had happened. (see image)
This keeps happening in my back tests...
What can i do?
-
@fxgjg It did cross when that candle was developing, but the cross disappeared when the candle finally closed so low.
Use candle ID 1 to avoid this. -
Is it also possible to say i would like the cross over to be by 'x' number of pips therefore to definitely avoid coming close to this situation?
thanks @roar
I will try it now..... candle ID..
-
@roar ok i see... i can pretty much use the previous candles to determine the length of time the crossover happened previously and then use the information on the current candle '0'
-
its actually throwing off my scalping EA.. reading from the previous candle.. is there any other way around it?
-
@fxgjg The problem with these moving averages is that if you see them on a live chart, they move on your current candle ID 0. That will be because the applied price will be for the candle close (as you will have set in the conditions block) while the candle is not closed yet. Try to have "open price" for the applied price settings in the block. This is supposed to let these indicators not move or change before the current candle ID 0 close.
-
I do not think using MA is a good idea in general for scalping. Just an opinion.
-
@l-andorrà oh yes i agree... the MA was a means to start the first trade in the right direction.... then the scalping EA will take over...
-
@fxgjg I have been wondering about this too. is there an answer if it can happen on crossing a certain number of pips?
-
@mrfilthy11 If there is any, I would like to know it.
-
@fxgjg someone sent me the answer guys... here it is..
