sorasit:
just switched to MT5.
'IndicatorCounted' - undeclared identifier TestMT5.mq5 22 23
')' - expression expected TestMT5.mq5 22 40
What commands are required in MT5?
In MT5, IndicatorCounted() is not used — it's from MT4.
Instead, use the prev_calculated parameter to know how many bars were previously processed.
Simple version:
mql5
int counted_bars = prev_calculated;
No need for IndicatorCounted() in MT5.
I hope i could help you! Best Regards
Arda Kaya #:
In MT5, IndicatorCounted() is not used — it's from MT4.
Instead, use the prev_calculated parameter to know how many bars were previously processed.
Simple version:
mql5
int counted_bars = prev_calculated;
No need for IndicatorCounted() in MT5.
I hope i could help you! Best Regards
Thank you for your kindness.
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 just switched to MT5.
'IndicatorCounted' - undeclared identifier TestMT5.mq5 22 23
')' - expression expected TestMT5.mq5 22 40
What commands are required in MT5?