All The condition is correct, but wrong,delay entry or not entry at all.
-
The main point of this EA is to entry after crossing ( >x) no more than certain amount of candle.
Why there is so many right entries but still have so many wrong entries or not even entry at all.
Example

the yellow mark is where it should entry.
(the #2 is wrong yellow it should be the next one)I don't know what I am doing wrong on the number in this EA because there is still many correct entries.
This is the project
https://fxdreema.com/shared/jVV3iMkmc -
Because what you see on the chart is a visual artefact of the backtesting process. Backtest charts do NOT represent the real conditions of the market AT THE EXACT moment it happens. If you select any of those wrong/inexisting entries and backtest it vissually at a very low speed you will check conditions were not met AT THAT MOMENT whereas they are met later. However, what we see is the final result. This is a very common issue when using several slow indicators like MACD.
-
@l-andorrà So I should test it on Demo rather than backtest? I choose everytick for testing in make it slows already by put the indicator in but that might be the answer. I will try on demo and see the results.
-
You do not need to try on demo. You can still use backtest but use the slowest speed at the moments moment when the indicators should trigger a trade. Then you can visually confirm what I said. If you try a demo but are not looking at the chart at those moments you will still scratch your head asking what happened.