
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've been developing custom indicators on MT5 for roughly a month now and am realizing I may be doing something fundamentally incorrect.
I am 99.9% sure that the calculations I am making do not reference future data and they always appear perfectly in the main window.
However, when I try to view them being calculated through time in Strategy Tester, the indicators either do not update or make erratic calculations then flatten to 0.
Below is code from one of my indicators that resides in my OnCalculate() function - I am curious to see if anyone is able to pinpoint exactly what my mistake may be.
Thank you in advance.