Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 4 Expert Advisor | Trades to CSV

Real author:

Inovance

Export the trade details (order, trade return, ticket number, open price, close price, open timestamp, close timestamp, currency pair, position size) from a backtest or live trading to a CSV file.

To use, input your trading logic inside the Signal() function (return 1 for long signals, 2 for short signals), name the CSV file and either run a backtest or attach to a live chart. With live trading, the most recent trade will be automatically written to the last line in the file.

If from a backtest, the file will be in <terminal_data_folder>\tester\files. If from live trading, the file will be in <terminal_data_folder>\MQL4\Files.

MetaTrader Experts, Indicators, Scripts and Libraries

12770

Best MetaTrader Indicators + Profitable Expert Advisors