I need a script (maybe with excel) that does a simple strategy optimization on MT4 for a certain time period (we can have a start date and total number of days to be tested) and then uses the best results (can be optionally determined based on profit factor + min number of trades + profit in $) to conduct a forward test based on a pre-determined X number of days.
Step 1 : Backtest from 1/1/2016 to 1/2/2016
Step 2 : Filter and pick best result based on criteria and keep log in excel file
Step 3 : Do a forward test on 1/2/2016 for 10 days
Step 4 : Record results in excel file
Step 5 : Rinse and repeat starting from 1/1/2016 + X days