Download MetaTrader 5
To add comments, please log in or register
Share your program via Code Base. Gain access to millions of traders!
nelhajj
24
nelhajj 2016.10.12 12:48 

I was thinking if there was a way to code forward tests in MT4 into OnTester() function. It's a pain having to do it manually while optimizing.

Does anyone have any idea if this could be done? 

Keith Watford
Moderator
8028
Keith Watford 2016.10.12 13:07  

Really?

How do you expect a forward test from something that back tests????

nelhajj
24
nelhajj 2016.10.12 18:20  
GumRai:

Really?

How do you expect a forward test from something that back tests????

really.. by forward testing I mean "out-of-sample" testing, or as it is called in mt5, "forward testing"... which means it divides the backtested period by 1/2, 1/3 or 1/4...
whroeder1
13656
whroeder1 2016.10.12 18:26  
What's your problem? Set the start and end date and optimize. Use the optimized parameters and the start date outside the original range.
nelhajj
24
nelhajj 2016.10.12 18:29  
WHRoeder:
What's your problem? Set the start and end date and optimize. Use the optimized parameters and the start date outside the original range.
I was just asking if there was a way to automate this, instead of having to retest every optimization result. It will be easier to discard parameters that aren't profitable on a different range immediately.
/
To add comments, please log in or register