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

Market data to CSV - MetaTrader 4 script | Forex indicator download - MT4/MT5 resources

author EAcpu | 2 reads | 0 comments |

Easily save historical bar data and each new price movement to csv file. To find the saved files, open the "MQL4" folder in the MetaTrader 4 directory, your files will be located in the "Files" folder.

It will capture all historical data in the chart as well as the change value for each new price move. To save indicator values, we have also released Indicators Values ​​to CSV custom indicators.

To use it, just add the custom indicator to the chart, name the csv file, and all historical data will be automatically recorded to the csv file as well as every new price change.


Attachment download

📎 data_to_csv.mq4 (2.04 KB)

Source: MQL5 #12699

Convert market data to CSV - MetaTrader 4 script | Foreign exchange indicator download - MT4/MT5 resource usage and screening suggestions

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