pub struct TradeFeatures {
pub vwap: f64,
pub trade_intensity: f64,
pub buy_sell_ratio: f64,
pub large_trade_ratio: f64,
pub order_flow_imbalance: f64,
}Expand description
Trade-based features calculated from market trade data.
These features capture various aspects of trading activity and order flow dynamics that are commonly used in HFT strategies for predicting short-term price movements.
Fields§
§vwap: f64Volume-weighted average price (VWAP) - The average price weighted by volume
trade_intensity: f64Trade intensity - Number of trades per unit time, indicating market activity level
buy_sell_ratio: f64Buy/sell ratio - Ratio of buy volume to sell volume, indicating directional pressure
large_trade_ratio: f64Large trade ratio - Proportion of volume from large trades, indicating institutional activity
order_flow_imbalance: f64Order flow imbalance - Net directional flow (buy volume - sell volume)
Trait Implementations§
Source§impl Clone for TradeFeatures
impl Clone for TradeFeatures
Source§fn clone(&self) -> TradeFeatures
fn clone(&self) -> TradeFeatures
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TradeFeatures
impl Debug for TradeFeatures
Source§impl Default for TradeFeatures
impl Default for TradeFeatures
Source§fn default() -> TradeFeatures
fn default() -> TradeFeatures
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TradeFeatures
impl RefUnwindSafe for TradeFeatures
impl Send for TradeFeatures
impl Sync for TradeFeatures
impl Unpin for TradeFeatures
impl UnwindSafe for TradeFeatures
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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