
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
If you have a time frame current
and you want to get another multiple timeframe, you can only do it with string conversion:
uint second;
string val_seconds;
// Example
// current period PERIOD_M5
// second period PERIOD_M30
if (seconds == 300) // PERIOD_M5
last_period = PERIOD_M30;
val_seconds = EnumToString (PERIOD_M30);
You can not convert val_seconds to int because
ENUM_TIMEFRAME can only convert for long whole lengths
2E + 14 (16384