pub enum SignalEvent {
Long,
Short,
Exit,
Hold,
}Expand description
A discrete trading event emitted by a Signal.
Long and Short indicate an entry direction. Exit flags an explicit
reason to flatten an open position. Hold means “no signal this bar”
— most signals return None instead, but combinators emit Hold when
they need to distinguish “evaluated, no event” from “not enough data
yet”.
Variants§
Long
Open or maintain a long position.
Short
Open or maintain a short position.
Exit
Exit any open position.
Hold
Explicit “no actionable signal”.
Trait Implementations§
Source§impl Clone for SignalEvent
impl Clone for SignalEvent
Source§fn clone(&self) -> SignalEvent
fn clone(&self) -> SignalEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SignalEvent
Source§impl Debug for SignalEvent
impl Debug for SignalEvent
impl Eq for SignalEvent
Source§impl PartialEq for SignalEvent
impl PartialEq for SignalEvent
impl StructuralPartialEq for SignalEvent
Auto Trait Implementations§
impl Freeze for SignalEvent
impl RefUnwindSafe for SignalEvent
impl Send for SignalEvent
impl Sync for SignalEvent
impl Unpin for SignalEvent
impl UnsafeUnpin for SignalEvent
impl UnwindSafe for SignalEvent
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