Indicator Crosswidth problem.
-
Hello, I am using the MACD crossover between the main and signal line. My understanding of the cross width that has a minimum value of 1 , is the area between the main line and the signal line when the crossover happens. I believe this is causing trades to be missed when the cross over does not have sufficient area between the two lines. Is there a way around this problem ?
-
No. That number indicates how wide is the crossing in candles. That 1 means that the crossing is expected to happen between the previous one and the current one.
-
So, does it depend on how much there is a difference between the candles?
If yes , then even when a cross happens if there isn't enough difference in price between the candles a trade will not be executed? -
@l-andorrà
Just to clarify what is happening
1-missed trade example :

2-Taken trade with same conditions:

-
Can you please share your project to take a look at?
-
@l-andorrà
https://fxdreema.com/shared/MrRBf2AOd
you might want to change the time zones to London and the first 3 hours of US session -
Ok. The logic is correct in all blocks. The reason why you don't see open trades when they would supposedly be is the combination of criteria. When you see a chart you are looking at the result of those indicator as they are plotted now. However, had us been looking at the chart just at the moment the crossing was happening in one of the indocators probably the other would not fit the criteria to be met.
Is your backtesting on a tick basis? I recommend you to do it.
-
@l-andorrà Yes. I am using the mt4 strategy tester on tick basis , regarding the criteria for both trades they are the same on the examples shown above (candle close below 200EMA and MACD cross below happening above the MACD zero line) which is why I am baffled by half the trades not being taken . The same conditons are being met but the trade isnt being taken all the time. Could it be that the strategy tester is not taking the trades , but these trades would be taken on live trading ?
-
It's weird. I recommend you yo use it in forward testing demo on many charts at the same time. Use different magic numbers on each chart just in case and take a look at it.
-
@l-andorrà I tried this on a live demo account and I still have the same problem , some trades are being executed while others are not even though they have the same condition. How would changing the magic number make a difference since I am only trading the eur/usd and on the 15 min timeframe only ?
-
Are you sure no more conditions are applied to your EA? I can't see any reason why it should work as intended. Try contact the admin. Honestly, I cannot help you anymore, sorry.