// Downloaded From https://www.WiseStockTrader.com iPeriod=Param("Period", 5, 1); ssma = MA(C, iPeriod); for(i=iPeriod+1; i