pub struct TradeProfile {
pub range: Range<DateTime<Utc>>,
pub volume: FootprintBar,
pub developing_poc: Vec<(DateTime<Utc>, i64)>,
pub complete: bool,
}Expand description
Executed volume over one session or composite, with the POC after each contributing bar.
Fields§
§range: Range<DateTime<Utc>>Half-open range of bar opening times.
volume: FootprintBarPer-price classified and unclassified volume. POC and value area use total volume.
developing_poc: Vec<(DateTime<Utc>, i64)>Developing POC as (bar open, grouped price level), including lower-price ties.
complete: boolWhether the executions of every bar in range are held. False when range starts
before Footprint::complete_from, or no bar is complete: volume and
developing_poc then leave out the bars before it, and the profile is partial.
Implementations§
Source§impl TradeProfile
impl TradeProfile
Sourcepub fn nodes(&self, sensitivity: NodeSensitivity) -> (Vec<i64>, Vec<i64>)
pub fn nodes(&self, sensitivity: NodeSensitivity) -> (Vec<i64>, Vec<i64>)
Local volume maxima and minima, respectively, between the first and last traded rows.
Untraded rows have zero volume, so a gap between traded rows is a valley; it is
evaluated as one span, however wide. Rows of equal smoothed volume form one plateau,
reported once at its lowest row, and the outer traded rows are never nodes. See
NodeSensitivity for the smoothing and prominence applied.
Trait Implementations§
Source§impl Clone for TradeProfile
impl Clone for TradeProfile
Source§fn clone(&self) -> TradeProfile
fn clone(&self) -> TradeProfile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for TradeProfile
impl RefUnwindSafe for TradeProfile
impl Send for TradeProfile
impl Sync for TradeProfile
impl Unpin for TradeProfile
impl UnsafeUnpin for TradeProfile
impl UnwindSafe for TradeProfile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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