Download MetaTrader 5

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

To add comments, please log in or register
LGH
41
LGH 2014.06.28 06:14 

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
9639
Keith Watford 2014.06.28 07:47  
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
18002
Simon Gniadkowski 2014.06.28 09:51  
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
9639
Keith Watford 2014.06.28 13:06  
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
14742
whroeder1 2014.06.30 01:41  
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