Rate of Change
SYNTAX roc( DATA ARRAY, PERIODS, DIFF_METHOD )
FUNCTION Calculates the PERIODS rate-of-change of DATA ARRAY expressed as DIFF_METHOD.
Valid DIFF_METHODs are PERCENT and POINTS (these can be abbreviated as % and $).
EXAMPLE The formula "roc( CLOSE, 12, PERCENT )" returns the 12-period percent rate-of-change of the closing prices.
例子:
Exploration notes
Col A: +/-ROC ROC( C,1 ,% )
Col B: +/-$ ROC(C,1,$)
Col C: Close C
Filter enabled Yes
Periodicity Weekly
Records required 4000