Optimization with more than two variables

 

I am running an expert advisor optimization with Metatrader4.
Metatrader offers the optimization graph that shows profits for two optimization variables.
I would like to optimize more than two variables and look where the best profits lie, not the single best one only, to be tolerant of parameters variations in the future.
Which technique should I use to find the best 'cloud' of profits and then the corresponding variable values? I can post-process the results with python or R.