Renz Carillo:
Remember the main rule: in MQL5 the indicator handle needs to be received once (it is optimal to do this in the OnInit function).
I'm trying to call an indicator outside the ontick function for my user defined function but unfortunately it's producing an error, i tried calling the indicator inside the ontick function and it's working perfectly but error arises as i do the same outside the ontick function

How to start with MQL5
- 2020.03.05
- www.mql5.com
This thread discusses MQL5 code examples. There will be examples of how to get data from indicators, how to program advisors...
Vladimir Karputov:
Remember the main rule: in MQL5 the indicator handle needs to be received once (it is optimal to do this in the OnInit function).
Remember the main rule: in MQL5 the indicator handle needs to be received once (it is optimal to do this in the OnInit function).
ill make sure to read it, thank you!

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 trying to call an indicator outside the ontick function for my user defined function but unfortunately it's producing an error, i tried calling the indicator inside the ontick function and it's working perfectly but error arises as i do the same outside the ontick function