pub struct ROCResult {
pub value: f64,
pub momentum: f64,
pub acceleration: Option<f64>,
pub signal: TradingSignal,
}Expand description
The result of an ROC calculation.
Fields§
§value: f64The calculated ROC value as a percentage.
momentum: f64The normalized momentum (0-100 scale).
acceleration: Option<f64>The acceleration (change in ROC from the previous value).
signal: TradingSignalA trading signal based on the ROC.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ROCResult
impl RefUnwindSafe for ROCResult
impl Send for ROCResult
impl Sync for ROCResult
impl Unpin for ROCResult
impl UnwindSafe for ROCResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more