The script exports summary of closed trades selected between two dates grouped by each currency pair. The resulting file is CSV that can be opened/imported with any spreadsheet software.
To export summary for the entire trading history, keep Start date and End date at their default values.
The CSV file is located at: Terminal > File > Open data folder > MQL5\Files\<Filename>
Following data columns are exported for each symbol:
The CSV file can be opened with Microsoft Excel or better with Ron's CSV Editor.
A script to close all market positions and/or pending orders.Change SL/TP on chart drop off
This script will change the SL and TP of all open trades of the symbol to the price where the script is dropped off.