pub struct EngineSignal {
pub timestamp: u64,
pub symbol: String,
pub direction: Direction,
pub strength: f64,
}Expand description
A trading signal produced externally and fed into the engine.
Fields§
§timestamp: u64Unix timestamp (ms) when the signal was generated.
symbol: StringInstrument symbol.
direction: DirectionIntended direction.
strength: f64Signal strength in [0, 1]; used to scale position size.
Trait Implementations§
Source§impl Clone for EngineSignal
impl Clone for EngineSignal
Auto Trait Implementations§
impl Freeze for EngineSignal
impl RefUnwindSafe for EngineSignal
impl Send for EngineSignal
impl Sync for EngineSignal
impl Unpin for EngineSignal
impl UnsafeUnpin for EngineSignal
impl UnwindSafe for EngineSignal
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