Expert advisor, code: How to auto optimize a parameter.

 
I have problems, due to my ignorance, of how to perform the setting of the self-optimization code in an expert advisor. With the current version of metatrader, how would the code to work, only one parameter
Reason: