pub struct OvernightIntradayReturnOutput {
pub overnight: f64,
pub intraday: f64,
}Expand description
The two return components of the current session.
overnight is fixed at the session open (open / previous_close - 1);
intraday updates with every bar (close / open - 1). Compounding the two —
(1 + overnight)(1 + intraday) - 1 — reconstructs the full previous-close to
latest-close return.
Fields§
§overnight: f64Close-to-open return carried into the session.
intraday: f64Open-to-latest-close return accumulated within the session.
Trait Implementations§
Source§impl Clone for OvernightIntradayReturnOutput
impl Clone for OvernightIntradayReturnOutput
Source§fn clone(&self) -> OvernightIntradayReturnOutput
fn clone(&self) -> OvernightIntradayReturnOutput
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 OvernightIntradayReturnOutput
Source§impl PartialEq for OvernightIntradayReturnOutput
impl PartialEq for OvernightIntradayReturnOutput
Source§fn eq(&self, other: &OvernightIntradayReturnOutput) -> bool
fn eq(&self, other: &OvernightIntradayReturnOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OvernightIntradayReturnOutput
Auto Trait Implementations§
impl Freeze for OvernightIntradayReturnOutput
impl RefUnwindSafe for OvernightIntradayReturnOutput
impl Send for OvernightIntradayReturnOutput
impl Sync for OvernightIntradayReturnOutput
impl Unpin for OvernightIntradayReturnOutput
impl UnsafeUnpin for OvernightIntradayReturnOutput
impl UnwindSafe for OvernightIntradayReturnOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more