
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
Hi,
I'm trying to convert this custom indicator that I originally coded in MQL4 into a new MQL5 custom indicator. However, the IndicatorCounted() function that I previously used doesn't exist in MQL5... I read multiple posts regarding this subject but none of them seemed to be able to replace this function.. I read it has something to do with the prev_calculated constant but I'm not too sure how how the bar count is performed in MT5...
As a reference, here is the original OnCalculate function in MQL4:
int OnCalculate(const int rates_total,