periods = INPUT("MA Periods", 14, 1, 100); indcolor = INPUT("Color", Color.Blue); ma = SMA(CLOSE, periods); di = 100 * ((CLOSE - ma) / ma); PLOT_HISTOGRAM(di, 0.75, indcolor); SUMMARY("Disparity Index({?}) {?:F2}", periods, di);