Optimize single Moving average trading – indicator MetaTrader 4

Optimize single Moving average trading - indicator for MetaTrader 4
This code is following the idea of MA Profit, except that it is using a single Moving Average instead of the cross moving average system. Using only a single moving average speeds up optimization, it can check all moving averages between 10 and 1000 in nearly no time. Trading with single moving average gives three