rocperiods = INPUT("ROC Periods", 12, 1, 1000); rocclose = (CLOSE - OFFSET(CLOSE, -1 * rocperiods) / OFFSET(CLOSE, -1 * rocperiods);