Help pls. How one can choose tge best inputs for an EA

 
Hello everyone 
recently i have started to write my own EA.
Wrote a lot of them and finally found some solutions that on the tester looks awsom. (yearly yield of 1 to 20 with an average leverage of 100)
but the question is that, how should i choose the setting?
as i have noticed, usually the best setting for a period not only may not be the best the next, but can be dramatically a big failure.
please help me on this. 
how should one find the best setting (inputs) for an EA?
Thanks  a lot in advance for your help.
 
mamsein:
Hello everyone 
recently i have started to write my own EA.
Wrote a lot of them and finally found some solutions that on the tester looks awsom. (yearly yield of 1 to 20 with an average leverage of 100)
but the question is that, how should i choose the setting?
as i have noticed, usually the best setting for a period not only may not be the best the next, but can be dramatically a big failure.
please help me on this. 
how should one find the best setting (inputs) for an EA?
Thanks  a lot in advance for your help.

try the optimization settings from the Strategy Tester (Cntrl + R)

Select Optimaztion

Select the extern variable from the inputs(Expert properties)

 
Will Kene:

try the optimization settings from the Strategy Tester (Cntrl + R)

Select Optimaztion

Select the extern variable from the inputs(Expert properties)

Thans Will
I've already done that. my question is when you optimise the inputs by that way for a period (for instance a year) but the inputs won't be good for the next. 

Reason: