User Defined Timeframe in Indicator

 

Can some please help with the following.

I want change an indicator so that the indicator timeframe is user defined.

For example if I I may choose to use the value of the 15 min of an indicator on a 5 min chart in the iCustom part I will use PERIOD_M15 instead of PERIOD_CURRENT

But how do I make this user defined with a dropdown menu so that I can choose to alter this from the indicatpr input.

Thanks

 

It's OK I worked it out

Use


extern ENUM_TIMEFRAMES TimeFrame1 = 5;

which means 5 min TF but also gives the user a dropdown menu

 
sergiodv:

Can some please help with the following.

I want change an indicator so that the indicator timeframe is user defined.

For example if I I may choose to use the value of the 15 min of an indicator on a 5 min chart in the iCustom part I will use PERIOD_M15 instead of PERIOD_CURRENT

But how do I make this user defined with a dropdown menu so that I can choose to alter this from the indicatpr input.

Thanks

extern ENUM_TIMEFRAMES (All time frames will shown in drop menu)
 

Thanks Khurram

 
sergiodv:

Thanks Khurram

You are Welcome :)
Reason: