pub struct IntraBarFeatures {Show 22 fields
pub intra_bull_epoch_density: Option<f64>,
pub intra_bear_epoch_density: Option<f64>,
pub intra_bull_excess_gain: Option<f64>,
pub intra_bear_excess_gain: Option<f64>,
pub intra_bull_cv: Option<f64>,
pub intra_bear_cv: Option<f64>,
pub intra_max_drawdown: Option<f64>,
pub intra_max_runup: Option<f64>,
pub intra_trade_count: Option<u32>,
pub intra_ofi: Option<f64>,
pub intra_duration_us: Option<i64>,
pub intra_intensity: Option<f64>,
pub intra_vwap_position: Option<f64>,
pub intra_count_imbalance: Option<f64>,
pub intra_kyle_lambda: Option<f64>,
pub intra_burstiness: Option<f64>,
pub intra_volume_skew: Option<f64>,
pub intra_volume_kurt: Option<f64>,
pub intra_kaufman_er: Option<f64>,
pub intra_garman_klass_vol: Option<f64>,
pub intra_hurst: Option<f64>,
pub intra_permutation_entropy: Option<f64>,
}Expand description
All 22 intra-bar features computed from constituent trades.
All ITH-based features are normalized to [0, 1] for LSTM consumption. Statistical features preserve their natural ranges. Optional fields return None when insufficient data.
Fields§
§intra_bull_epoch_density: Option<f64>Bull epoch density: sigmoid(epochs/trade_count, 0.5, 10)
intra_bear_epoch_density: Option<f64>Bear epoch density: sigmoid(epochs/trade_count, 0.5, 10)
intra_bull_excess_gain: Option<f64>Bull excess gain (sum): tanh-normalized to [0, 1]
intra_bear_excess_gain: Option<f64>Bear excess gain (sum): tanh-normalized to [0, 1]
intra_bull_cv: Option<f64>Bull intervals CV: sigmoid-normalized to [0, 1]
intra_bear_cv: Option<f64>Bear intervals CV: sigmoid-normalized to [0, 1]
intra_max_drawdown: Option<f64>Max drawdown in bar: already [0, 1]
intra_max_runup: Option<f64>Max runup in bar: already [0, 1]
intra_trade_count: Option<u32>Number of trades in the bar
intra_ofi: Option<f64>Order Flow Imbalance: (buy_vol - sell_vol) / total_vol, [-1, 1]
intra_duration_us: Option<i64>Duration of bar in microseconds
intra_intensity: Option<f64>Trade intensity: trades per second
intra_vwap_position: Option<f64>VWAP position within price range: [0, 1]
intra_count_imbalance: Option<f64>Count imbalance: (buy_count - sell_count) / total_count, [-1, 1]
intra_kyle_lambda: Option<f64>Kyle’s Lambda proxy (normalized)
intra_burstiness: Option<f64>Burstiness (Goh-Barabási): [-1, 1]
intra_volume_skew: Option<f64>Volume skewness
intra_volume_kurt: Option<f64>Volume excess kurtosis
intra_kaufman_er: Option<f64>Kaufman Efficiency Ratio: [0, 1]
intra_garman_klass_vol: Option<f64>Garman-Klass volatility estimator
intra_hurst: Option<f64>Hurst exponent via DFA (requires >= 64 trades)
intra_permutation_entropy: Option<f64>Permutation entropy (requires >= 60 trades)
Trait Implementations§
Source§impl Clone for IntraBarFeatures
impl Clone for IntraBarFeatures
Source§fn clone(&self) -> IntraBarFeatures
fn clone(&self) -> IntraBarFeatures
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IntraBarFeatures
impl Debug for IntraBarFeatures
Source§impl Default for IntraBarFeatures
impl Default for IntraBarFeatures
Source§fn default() -> IntraBarFeatures
fn default() -> IntraBarFeatures
Auto Trait Implementations§
impl Freeze for IntraBarFeatures
impl RefUnwindSafe for IntraBarFeatures
impl Send for IntraBarFeatures
impl Sync for IntraBarFeatures
impl Unpin for IntraBarFeatures
impl UnsafeUnpin for IntraBarFeatures
impl UnwindSafe for IntraBarFeatures
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