Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Period Converter All Time Frames - MetaTrader 4 Script | Trading Script Download - MT4/MT5 Resources

author EAcpu | 4 reads | 0 comments |

When we do backtesting, we typically download M1 data from a third party and then convert the M1 data to other timeframes.

This script helps convert historical data from M1 to M5, M15, M30, H1, H4, D1, W1 and MN.

The script must be run on the M1 chart.

You can choose whether to convert to D1, W1, or MN. False by default.

Please note that the connection to the broker's server should be disconnected before backtesting, otherwise the data will be overwritten by server data.

To avoid overwriting, a practical way is to delete the password in MetaTrader 4 settings (menu "Tools" → "Options" → "Server").


Attachment download

📎 periodconverteralltimeframes.mq4 (13.14 KB)

Source: MQL5 #19839

Period Converter All Time Frames - MetaTrader 4 Script | Trading Script Download - MT4/MT5 Resource Usage and Screening Recommendations

This content can be used as a data entry for foreign exchange EA, indicators, trading systems or quantitative strategies. When reading, it is recommended to make a judgment based on the platform version, trading type, time period, risk control method and historical discussion background. Do not use it directly based on the title or a single point of view.

If the content involves MT4/MT5, ForexFactory, MQL source code, TradingView indicators or strategy discussions, you can give priority to the parameter logic, backtest environment, market stage, execution cost and failure conditions, and then decide whether to continue downloading, reviewing or secondary development.

Risk warning

For any EA, indicator or automatic trading strategy, it is recommended to first conduct historical backtesting, simulation account verification and small capital testing. Grid, Martin, high frequency, recovery and examination strategies especially require setting the account risk upper limit, single variety risk upper limit and manual deactivation conditions.

Verification code Refresh