indexes_rs/v1/roc/
types.rs

1
2
3
4
5
6
7
8
use crate::v1::types::TradingSignal;

pub struct ROCResult {
    pub value: f64,                // Raw ROC value
    pub momentum: f64,             // Normalized momentum (-100 to 100)
    pub acceleration: Option<f64>, // Rate of change of ROC
    pub signal: TradingSignal,
}