Download MetaTrader 5
To add comments, please log in or register
Interested in MQL5 features? Find them in documentation!
Icham Aidibe
9921
Icham Aidibe 2014.12.14 10:56 

Hi there !

I'd like to know if it's possible to load an indicator iMA for only one symbol, from a function, get some results, then unload ? Or does the indicator loading need to be done necessarily in the OnInit() ? If yes, should i use the iMA() method, the indicatorload method, or the class indicator method for the less memory consumption ?

Thanks.

Alain Verleyen
Moderator
30323
Alain Verleyen 2014.12.14 15:25  
blouf:

Hi there !

I'd like to know if it's possible to load an indicator iMA for only one symbol, from a function, get some results, then unload ? Or does the indicator loading need to be done necessarily in the OnInit() ? If yes, should i use the iMA() method, the indicatorload method, or the class indicator method for the less memory consumption ?

Thanks.

iMA(). Get an handle, once no more needed, use IndicatorRelease().
Icham Aidibe
9921
Icham Aidibe 2014.12.14 18:41  
angevoyageur:
iMA(). Get an handle, once no more needed, use IndicatorRelease().
thx
/
To add comments, please log in or register