Download MetaTrader 5

Loading an indicator from a function call, get value then release

To add comments, please log in or register
Icham Aidibe
10314
Icham Aidibe  

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
33271
Alain Verleyen  
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
10314
Icham Aidibe  
angevoyageur:
iMA(). Get an handle, once no more needed, use IndicatorRelease().
thx
To add comments, please log in or register