Download MetaTrader 5

Strategy Tester for a Trailing stop. Is it possible??

To add comments, please log in or register
LGH
42
LGH  

I want to Test a Trailing stop EA.

I want to Buy or Sell a position and test to see if my Trailing stop EA works with my settings.

 Any links PLEASE.


Cheers!

Keith Watford
Moderator
10638
Keith Watford  
Fxfixnz:

I want to Test a Trailing stop EA.

I want to Buy or Sell a position and test to see if my Trailing stop EA works with my settings.

 Any links PLEASE.


Cheers!


Open order(s) in init so that the EA will initially have some trades to work with.

Obviously, remove the added code before using the EA on a real account or have a boolean input called "Tester" or whatever and only have the trades open if "Tester"is true.

Simon Gniadkowski
Moderator
18021
Simon Gniadkowski  
GumRai:


Open order(s) in init so that the EA will initially have some trades to work with.

Obviously, remove the added code before using the EA on a real account or have a boolean input called "Tester" or whatever and only have the trades open if "Tester"is true.

Or just place the order(s) only when IsTesting() returns true.
Keith Watford
Moderator
10638
Keith Watford  
RaptorUK:
Or just place the order(s) only when IsTesting() returns true.


Yup, that's better.

Thanks Raptor, I didn't know about that function 

whroeder1
15692
whroeder1  
GumRai: Thanks Raptor, I didn't know about that function
Alphabetic Index of MQL4 Functions (600+) - MQL4 forum
To add comments, please log in or register