pub struct Context<'a> {
pub spot: f64,
pub iv: f64,
pub sd: &'a Sd2Reading,
pub prev: Option<&'a Sd2Reading>,
}Expand description
Everything a strategy may look at on one bar. All of it is known at the close of that bar; nothing comes from the future.
Fields§
§spot: f64§iv: f64ATM implied volatility, annualized (real index or proxy).
sd: &'a Sd2Reading§prev: Option<&'a Sd2Reading>SD on the previous bar (for “did it just fire?” questions).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Context<'a>
impl<'a> RefUnwindSafe for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> UnsafeUnpin for Context<'a>
impl<'a> UnwindSafe for Context<'a>
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