Download MetaTrader 5
To add comments, please log in or register
No time to learn MQL5? Order your application from a developer!
mar
1143
mar 2014.06.05 20:16 

Hi guys,

I have almost never used the strategy tester and so I have some problems with testing a trailing-stop I just coded. I chose a pair, a timeframe and the dates from yesterday until today. I saw the chart opened and the first bars were printed. That's something I have seen before when testing if an indicator repaints. But now I want to open a position and test if my expert advisor works the way it should. But how can I open a position and track it with the strategy tester? If I just open a position manually it is of course not visible in the tester because I test yesterday.

This may be a stupid question but I have no idea how to use the strategy tester correctly with this issue.

Can anyone help?

Keith Watford
Moderator
7986
Keith Watford 2014.06.06 02:12  
Just for testing you could write code in init to open trades(s)
mar
1143
mar 2014.06.06 09:10  
That's a good idea.. I will do that! Thanks!
/
To add comments, please log in or register