Marcus Riemenschneider:
Hello all,
can somebody tell me why this small script returns totally wrong numbers when applying it on a timeframe > M30?
There is no wrong value, but a wrong usage.
Try :
Alert(EnumToString(Period()));
Checkup / Period - Reference on algorithmic/automated trading language for MetaTrader 5 | Period - Checkup - MQL4 Reference | ||
---|---|---|---|
PeriodReturns the current chart timeframe.
| PeriodReturns the current chart timeframe.
|
whroeder1:
Checkup / Period - Reference on algorithmic/automated trading language for MetaTrader 5 | Period - Checkup - MQL4 Reference | ||
---|---|---|---|
PeriodReturns the current chart timeframe.
| PeriodReturns the current chart timeframe.
|
Thanks guys... moving from MQL4 to MQL5 can really be very painful...
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 all,
can somebody tell me why this small script returns totally wrong numbers when applying it on a timeframe > M30?