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

Trading to CSV - MetaTrader 4 Expert | MT4 EA Download - MetaTrader 4 Resources

author EAcpu | 5 reads | 0 comments |

Trades to CSV - expert for MetaTrader 4

Export transaction details (order, trade return, ticket number, opening price, closing price, opening timestamp, closing timestamp, currency pair, position size) from backtesting or live trading to a CSV file.

To use, enter your trading logic in the Signal() function (returns 1 for long signals, 2 for short signals), name the CSV file, and run a backtest or attach to a live chart. With live trading, the most recent trade is automatically written to the last line of the file.

If coming from a backtest, the file will be located \tester\files. If coming from live trading, the file will be located at \MQL4\Files.

Trades to CSV - expert for MetaTrader 4


Attachment download

📎 trades_to_csv.mq4 (6.5 KB)

Source: MQL5 #12770

Verification code Refresh