Does an indicator needs to be attached to a graph to stay loaded ?

 

Hello,

Building a simple EA, I need the use of at least 3 indicators.
Each time I call iCustom() the requested indicator is loaded, then unloaded.

Is there a way to have the EA keep an indicator loaded, without attaching it to the graph the EA is attached to ?
iCustom is used with at least 2 differents timeframes, one is the graph timeframe (usually H1 or M30), the other is the timeframe above or below (M15/M30/H1/H4).

Regards,
Jean

 

no need the EA adds it without seeing it actually on the chart (lock in the Experts or Journal tab when you attaching the EA to the chart)

 

Only use iCustom for indicators that are not 'built in'. Look for functions like iMA under Technical Indicators when you want MA, etc.

Then again, maybe the indicators you want do not have an i... equivalent

 
JBzh:

Each time I call iCustom() the requested indicator is loaded, then unloaded.

This is incorrect. The first time iCustom is called (with a unique combination of parameters) the indicator is loaded. It is not displayed. It is not unloaded unless the chart is refreshed or closed.

Each unique combination of parameters will load another on to the chart.

Reason: