SMA = series(SMA(Price, round(optimize(10,10,200),1)));

This way for rounding to the nearest integer?