Download MetaTrader 5
To add comments, please log in or register
All activity of the MQL5.community members is displayed on a single page!
LGH
8
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
8773
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
17972
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
8773
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
13929
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