Auto optimize double ma cross indicator is an indicator from the Elite section.
It is an interesting concept, already studied on mql5.com.
The indicator gives you the best parameters for two moving averages, depending on the hypothetical results of their crosses during the last X days.
It will test the original values multiplied by Y steps, and every combinations.
Finally it will draw the arrows depending on the optimization results (in term of pips).
The spread is already included inside the code, it uses Oanda average spreads. You can edit them.
You can change the MA method and MA price.
The bigger are the values for the days and the steps, the longer will be the calculations to get the best settings.
This method is still 10 times faster than regular optimization. Of course it doesn't take into consideration a stoploss, a takeprofit. And the cumulative losses results is not equal to a relative drawdown.