Question how I should implement a custom indicator

 

The documentation says:

double myindicator = iCustom(Symbol(), int timeframe,.....);

In myindicator there exist :

iMA(Symbol(), Period_H1,...)

iMA(Symbol(), Period_M15,...) etc.

What timeframe should I take for myindicator ? What happens, if I take the wrong timeframe ?

 
24hworker:

The documentation says:

double myindicator = iCustom(Symbol(), int timeframe,.....);

In myindicator there exist :

iMA(Symbol(), Period_H1,...)

iMA(Symbol(), Period_M15,...) etc.

What timeframe should I take for myindicator ? What happens, if I take the wrong timeframe ?

Think of, int timeframe, as the timeframe of the chart that you would run your Indicator on if you put it on a chart.
 

If you want the indcator to be on the current chart's pair and TF use NULL,0

Detailed explanation of iCustom - MQL4 forum