pub struct TpoProfileOutput {
pub price_low: f64,
pub price_high: f64,
pub counts: Vec<f64>,
}Expand description
TPO Profile output: the price domain plus the per-bin time-period counts.
counts[i] is the number of periods in the rolling window whose [low, high]
range touched the price bucket [price_low + i * w, price_low + (i + 1) * w)
where w = (price_high - price_low) / counts.len(). This is the classic
market-profile “letter” count: one Time-Price-Opportunity per period per
price level it traded at, independent of volume.
Fields§
§price_low: f64Lowest price in the window — the lower edge of bin 0.
price_high: f64Highest price in the window — the upper edge of the last bin.
counts: Vec<f64>Per-bin TPO count, lowest price bucket first. Length equals bin_count.
Trait Implementations§
Source§impl Clone for TpoProfileOutput
impl Clone for TpoProfileOutput
Source§fn clone(&self) -> TpoProfileOutput
fn clone(&self) -> TpoProfileOutput
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 moreSource§impl Debug for TpoProfileOutput
impl Debug for TpoProfileOutput
Source§impl PartialEq for TpoProfileOutput
impl PartialEq for TpoProfileOutput
Source§fn eq(&self, other: &TpoProfileOutput) -> bool
fn eq(&self, other: &TpoProfileOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TpoProfileOutput
Auto Trait Implementations§
impl Freeze for TpoProfileOutput
impl RefUnwindSafe for TpoProfileOutput
impl Send for TpoProfileOutput
impl Sync for TpoProfileOutput
impl Unpin for TpoProfileOutput
impl UnsafeUnpin for TpoProfileOutput
impl UnwindSafe for TpoProfileOutput
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