Download MetaTrader 5
To add comments, please log in or register
Let your idle PCs do something useful. Join MQL5 Cloud Network!
Blackriver67
119
Blackriver67 2015.10.16 00:33 

Hi all,

I am working on a little function within an EA which writes a trade log file and calculates some additional key figures per trade like winning potential, loss potential, achieved Risk/Reward etc. 

It works fine for real trades but I was asking myself how to write trades from the tester to the trade log file?

When I tried the EA in the tester the trade log file was created but there where no trades written to the file...

A brief notice if that is possible at all and a little hint how to access such trades would be extremely helpful!

Thank you, all

Keith Watford
Moderator
7896
Keith Watford 2015.10.16 00:44  
The tester usually does not write a file to the same folder as an EA on a live chart, check the tester folder.
Blackriver67
119
Blackriver67 2015.10.16 06:59  
GumRai:
The tester usually does not write a file to the same folder as an EA on a live chart, check the tester folder.
Hi GumRai, Yes I know. Thank you. As mentioned it creates a log file and I can find it but it contains only the column names andno trade data. Is there a certain OrderType or any other OrderHistory to access these tester trades?
/
To add comments, please log in or register