I think there is problem in custom indicator FX_FISH_2MA (I view it's source) See "MQL4: Tester in the Terminal MetaTrader 4: It Should Be Known"
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
I'm facing a problem with a simple EA based on a custom indicator (posted here by Kiko Segui). The idea is simply to enter/exit trades when the custom indicator crosses the zero line from below/above.
The problem is that the EA executes the trades with a delay of 5 bars, although the indicator line itself is displayed correctly on its separate indicator window.
Does anybody has an idea how this shift between crossing of zero-line of the indicator and the respective trade execution could be explained and hence what the solution would be?
I am fully aware of the problems which can arise e.g. from multiple null bar counts (like described in "MQL4: Multiple Null Bar Re-Сount in Some Indicators"), but this does not seem to be the problem in my case.
Here is the code of the EA:
And here is the code of the custom indicator used to generate the entry/exit signals:
Any help to resolve this issue is greatly appreciated!
Thank you very much,
Roland