higher timeframe period.

To add comments, please log in or register
mattehalen
98
mattehalen  

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)

Ray
2646
Ray  

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.

William Roeder
19975
William Roeder  
iCustom(NULL, timeFrame...) will do it. Indicator doesn't need to change.
To add comments, please log in or register