amando: I always was thinking that gives back the Period in Minutes,
Your thinking is correct only on MT4.
Never use the values of an enumeration; always use the enumeration symbol.
If you want minutes use PeriodSeconds(tf)/60.
William Roeder:
Your thinking is correct only on MT4.
Never use the values of an enumeration; always use the enumeration symbol.
If you want minutes use PeriodSeconds(tf)/60.
when the changed this on MT5? in older days that was the same, specially, what makes _Period sense, when I don't get a valid value?
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hello,
I always was thinking that gives back the Period in Minutes, that works pretty well till the timeframe 30min
I tried it out and get following results
what's happen here?
thanks