higher timeframe period.

 

If i want a indicator in a EA to read frome the higher timeframe how do i code that?

if (iCustom(NULL, 0, "TriggerLinesAlert", 1, 15, 3, 5, 5)

 

The indicator has to be written so that the timeframe can be specified as an input parameter -- example extern int TimeFrame = 240;

Then you call that indicator from the EA using iCustom() and provide the desired higher timeframe as a parameter.

 
iCustom(NULL, timeFrame...) will do it. Indicator doesn't need to change.