Attachments forums

List of attachments posted on this forum.


All files on forums: 161354

Re: 💸 Forex Income Tax Strategies - MT4 History Export Script

global, Mon Nov 18, 2024 9:04 am

MT4 History Export Script/Indicator for FX Tax Reporting

Hi all,

Many years ago I found an MT4 Script or indicator to export Trading history to a spreadsheet to report profits, losses, commissions, swaps, etc. for yearly tax purposes. The script also included the ability to export from any selectable date to the present with the dates converted to local time instead of server time and to Excel's date format. The problem is that I lost that script and can't find it anywhere online now. If anyone has such a script/indicator then I'll really appreciate if you can share it with us. Thanks.

I found the indicator so I edited this post to attach it for anyone to use.

To use this indicator, first load the time period of your account history that you want to export by right-clicking within the list of your Account History Terminal tab and choose All History, Last 3 Months, Last Month or Custom Period. Then attach the indicator to any open chart, edit the ChartTimeIsGMTPlusHours and OutputGMTPlusHours input fields or leave them as zero to keep the default server times, then click OK to run it. An alert will pop up when it is complete, then just remove the indicator from the chart. The AcctHistory.csv output file is saved \MQL4\Files directory. The output csv file is semi-colon delimited and the "taxes" column in mt4 statements is not included.

To load the csv file data into Excel just follow the directions in this video.

How to Convert CSV to Excel (Simple and Quick)

All files in topic