Download MetaTrader 5

How to test a trailing-stop EA with the strategy tester?

To add comments, please log in or register
mar
1146
mar  

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
9641
Keith Watford  
Just for testing you could write code in init to open trades(s)
mar
1146
mar  
That's a good idea.. I will do that! Thanks!
To add comments, please log in or register