Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.
You are missing trading opportunities:
- Free trading apps
- 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
Guys,
I am trying to write a simple EA to create an alert based on Heiken Ashi candles and MAs.
If
I found a function on internet to call Heiken Ashi using iCustom:
And I call this function:
it appears to be working but sometimes during backtesting red candles pass the above mentioned conditions (green and no wick) and they are marked wrongly. (I load the Heiken Ashi indicator on the chart while in strategy tester and that's how I compare the result with candles on chart)
In the attached charts you can see the first two marked candles are correct but in the second chart a red candles has been marked by EA which is wrong.
Any idea what could be the problem?
Thanks in advance