import type { SMAOptions, SMAParamsOptions } from '../SMA/SMAOptions'; /** * Rate of change indicator (ROC). The indicator value for each point * is defined as: * * `(C - Cn) / Cn * 100` * * where: `C` is the close value of the point of the same x in the * linked series and `Cn` is the close value of the point `n` periods * ago. `n` is set through [period](#plotOptions.roc.params.period). * * This series requires `linkedTo` option to be set. * * @sample {highstock} stock/indicators/roc * Rate of change indicator * * @extends plotOptions.sma * @since 6.0.0 * @product highstock * @requires stock/indicators/indicators * @requires stock/indicators/roc * @interface Highcharts.ROCOptions */ export interface ROCOptions extends SMAOptions { params?: ROCParamsOptions; } export interface ROCParamsOptions extends SMAParamsOptions { } export default ROCOptions;