ADX Cross Indicator used in custom EA

You are missing trading opportunities:
- Free trading apps
- Free Forex VPS for 24 hours
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
This is my first post. I am programming a custom EA that uses ADX Cross indicator which prints in the chart arrows to signal buys and sells. Like the following:
I added another buffer to the Indicator in order to be able to read the signal, which was one of three: BUY, SELL or NOTHING.
I run the backtest on a chart and the signals where not the same as painted in the chart. The original code of the Indicator is the following:
My EA is executed each time a bar closes, not each tick. And the signals where different, and late. Why can that be?
Should I extract the logic from the Indicator to the EA?
Thank you