Calling an indicator as a function MQL5
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!
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