pub struct InterBarFeatures {Show 16 fields
pub lookback_trade_count: Option<u32>,
pub lookback_ofi: Option<f64>,
pub lookback_duration_us: Option<i64>,
pub lookback_intensity: Option<f64>,
pub lookback_vwap: Option<FixedPoint>,
pub lookback_vwap_position: Option<f64>,
pub lookback_count_imbalance: Option<f64>,
pub lookback_kyle_lambda: Option<f64>,
pub lookback_burstiness: Option<f64>,
pub lookback_volume_skew: Option<f64>,
pub lookback_volume_kurt: Option<f64>,
pub lookback_price_range: Option<f64>,
pub lookback_garman_klass_vol: Option<f64>,
pub lookback_kaufman_er: Option<f64>,
pub lookback_hurst: Option<f64>,
pub lookback_permutation_entropy: Option<f64>,
}Expand description
Inter-bar features computed from lookback window
All features use Option<T> to indicate when computation is not possible
(e.g., insufficient trades in lookback window).
Fields§
§lookback_trade_count: Option<u32>Number of trades in lookback window
lookback_ofi: Option<f64>Order Flow Imbalance: (buy_vol - sell_vol) / total_vol, range [-1, 1]
lookback_duration_us: Option<i64>Duration of lookback window in microseconds
lookback_intensity: Option<f64>Trade intensity: trades per second
lookback_vwap: Option<FixedPoint>Volume-weighted average price
lookback_vwap_position: Option<f64>VWAP position within price range: (vwap - low) / (high - low), range [0, 1]
lookback_count_imbalance: Option<f64>Count imbalance: (buy_count - sell_count) / total_count, range [-1, 1]
lookback_kyle_lambda: Option<f64>Kyle’s Lambda proxy (normalized): ((last-first)/first) / ((buy-sell)/total)
lookback_burstiness: Option<f64>Burstiness (Goh-Barabasi): (sigma_tau - mu_tau) / (sigma_tau + mu_tau), range [-1, 1]
lookback_volume_skew: Option<f64>Volume skewness (Fisher-Pearson coefficient)
lookback_volume_kurt: Option<f64>Excess kurtosis: E[(V-mu)^4] / sigma^4 - 3
lookback_price_range: Option<f64>Price range normalized: (high - low) / first_price
lookback_garman_klass_vol: Option<f64>Garman-Klass volatility estimator (Issue #128: promoted from Tier 3)
lookback_kaufman_er: Option<f64>Kaufman Efficiency Ratio: |net movement| / sum(|individual movements|), range [0, 1]
lookback_hurst: Option<f64>Hurst exponent via DFA, soft-clamped to [0, 1]
lookback_permutation_entropy: Option<f64>Permutation entropy (normalized), range [0, 1]
Implementations§
Source§impl InterBarFeatures
impl InterBarFeatures
Sourcepub fn merge_tier2(&mut self, other: &InterBarFeatures)
pub fn merge_tier2(&mut self, other: &InterBarFeatures)
Merge Tier 2 features from another InterBarFeatures struct Issue #96 Task #90: #[inline] — per-bar field merge at finalization
Sourcepub fn merge_tier3(&mut self, other: &InterBarFeatures)
pub fn merge_tier3(&mut self, other: &InterBarFeatures)
Merge Tier 3 features from another InterBarFeatures struct Issue #96 Task #90: #[inline] — per-bar field merge at finalization Issue #128: Garman-Klass moved to Tier 2, Tier 3 now 3 features
Trait Implementations§
Source§impl Clone for InterBarFeatures
impl Clone for InterBarFeatures
Source§fn clone(&self) -> InterBarFeatures
fn clone(&self) -> InterBarFeatures
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InterBarFeatures
impl Debug for InterBarFeatures
Source§impl Default for InterBarFeatures
impl Default for InterBarFeatures
Source§fn default() -> InterBarFeatures
fn default() -> InterBarFeatures
impl Copy for InterBarFeatures
Auto Trait Implementations§
impl Freeze for InterBarFeatures
impl RefUnwindSafe for InterBarFeatures
impl Send for InterBarFeatures
impl Sync for InterBarFeatures
impl Unpin for InterBarFeatures
impl UnsafeUnpin for InterBarFeatures
impl UnwindSafe for InterBarFeatures
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
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