pub struct Signal {
pub direction: SignalDirection,
pub quantity: Decimal,
}Expand description
A trading signal produced by a Strategy on each bar.
Fields§
§direction: SignalDirectionDesired direction.
quantity: DecimalNumber of units to trade (must be non-negative).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnsafeUnpin for Signal
impl UnwindSafe for Signal
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