How can I optimizat the variables in the expert running time?

 
We can optimaization any variables in the history testing, and get the best variables. But I want to the expert optimaizate the variables in the expert running time, and the expert always chang the variables in the future. for example, run a expert in the 1M eurusd windows, when 0 hours, the experts optimaization the variables with last day data, and run new optimaizated the variables in the new day. How can I do? Thank you very much.
Reason: