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

 

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!

 
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.

 
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.
 
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 

 
GumRai: Thanks Raptor, I didn't know about that function
Alphabetic Index of MQL4 Functions (600+) - MQL4 forum