İş tamamlandı
İş Gereklilikleri
Hello,
I require an EA which writes my actual MT5 account „Balance“, „Equity“, „Free Margin“, „Total Lots/Volume open“, „Total Nr of open positions“, „Total Floating Profit“, „Account profit“ in a .txt (or csv) file in regular intervalls.
Input parameters (1-5):
1) File name
-> String
-> Explanation: name of the file. The program should check if the file exists
----> if yes, add to it by creating new row entries
----> if not, create a new file
2) File path
-> String
-> Explanation: path where the file should be stored
3) Hour start to record
-> Integer 1-24
-> Explanation: Based on broker time (ic markets). E.g. for a night scalper I would select „23“
4 Hour end to record
-> Integer 1-24
-> Explanation: Based on broker time (ic markets). E.g. For a night scalper I would select „1“
5 Min Intervalls
-> Integer 1 – 240
-> Explanation: Intervall to record/add new rows into .txt file. E.g. Night scalpers need monitoring every 15min, longterm trend EAs every 120min
Rows in the .txt file should have the following content/format (incl. row header):
Filename, timestamp of recording, Balance, Equity, Free Margin, Total Lots/Volume open, Total Number of open positions, Floating Profit, AccountTotalProfit
-> Example:
--> FileNameA,01.12.2021 23:00,9000,8000,7500,5.8,7,230,500
Example .set file :
File name: „FileNameA“
File Path: „C:\Users\TraderA\Download“
Hour start to record: „23“
Hour end to record: „24“
Min intervalls: „15“
Example output .txt/.csv - Format should look like the following:
FileName;DateTime;Balance;Equity;FreeMargin;TotalLots/VolumeOpen;TotalNrOpenPositions; FloatingProfit;AccountTotalProfit
FileNameA;01.12.2021 23:00;9000;8000;7000;5,8;10;-1000;100
FileNameA;01.12.2021 23:15;9000;8500;7500;5,8;15;-500;100
FileNameA;01.12.2021 23:30;9000;9500;8500;5,8;7;500;100
FileNameA;01.12.2021 23:45;9000;9000;9000;0,0;4;0;600
Screenshot of data to be extracted in regular intervalls attached: