# timeframes TIMEFRAME_M1 = 1 TIMEFRAME_M2 = 2 TIMEFRAME_M3 = 3 TIMEFRAME_M4 = 4 TIMEFRAME_M5 = 5 TIMEFRAME_M6 = 6 TIMEFRAME_M10 = 10 TIMEFRAME_M12 = 12 TIMEFRAME_M15 = 15 TIMEFRAME_M20 = 20 TIMEFRAME_M30 = 30 TIMEFRAME_H1 = 1 | 0x4000 TIMEFRAME_H2 = 2 | 0x4000 TIMEFRAME_H4 = 4 | 0x4000 TIMEFRAME_H3 = 3 | 0x4000 TIMEFRAME_H6 = 6 | 0x4000 TIMEFRAME_H8 = 8 | 0x4000 TIMEFRAME_H12 = 12 | 0x4000 TIMEFRAME_D1 = 24 | 0x4000 TIMEFRAME_W1 = 1 | 0x8000 TIMEFRAME_MN1 = 1 | 0xC000
Thanks, this is working. May be administrator will edit documentation and exclude problem for other members
sergey087:
Thanks, this is working. May be administrator will edit documentation and exclude problem for other members
Thanks, this is working. May be administrator will edit documentation and exclude problem for other members
indeed
![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
I'm can't using month time frame, because python write error:
Code:
CandleOfPreviousMonth = mt5.copy_rates_from(CurrentSymbol, mt5.TIMEFRAME_MON1, PreviousMonthDateTime, 1)
But this work for week or days ... How to fix this problem?