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:
extern ENUM_TIMEFRAMES (All time frames will shown in drop menu)
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
Thanks Khurram
sergiodv:
You are Welcome :)
Thanks Khurram

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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