pub struct Cluster {Show 22 fields
pub ts_nanos: i64,
pub open: f64,
pub high: f64,
pub low: f64,
pub close: f64,
pub vol: u64,
pub vol_b: u64,
pub vol_s: u64,
pub val: f64,
pub val_b: f64,
pub val_s: f64,
pub count: u64,
pub count_b: u64,
pub count_s: u64,
pub vwap: f64,
pub vwap_b: f64,
pub vwap_s: f64,
pub buy_p: f64,
pub sell_p: f64,
pub disb_p: f64,
pub pct: f64,
pub quantum: Quantum,
}Expand description
Set of metrics calculated on tics.
§ru
Группа метрик рассчитанных на тиках за определенный период (таймфрейм).
Отдельной частью является Quantum, который состоит из
crate::Quant. Все это разные метрики над одними и теми же тиками
разбитыми по таймфреймам.
Quant - это ценовой уровень. Внутри него посчитано раздельно количество продаж и покупок именно по этой цене. Группа квантов в пределах одного бара объединяется в Quantum.
Остальные метрики рассчитаны по всем тикам в целом, без привязки к конкретной цене.
Fields§
§ts_nanos: i64§open: f64§high: f64§low: f64§close: f64§vol: u64§vol_b: u64§vol_s: u64§val: f64§val_b: f64§val_s: f64§count: u64§count_b: u64§count_s: u64§vwap: f64§vwap_b: f64§vwap_s: f64§buy_p: f64§sell_p: f64§disb_p: f64§pct: f64§quantum: QuantumImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cluster
impl RefUnwindSafe for Cluster
impl Send for Cluster
impl Sync for Cluster
impl Unpin for Cluster
impl UnwindSafe for Cluster
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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