#[non_exhaustive]pub struct BigTradeRule {
pub threshold: Threshold,
pub body_zones: bool,
pub wick_zones: bool,
}Expand description
What makes a trade large, and which of the zones of large trades are kept.
Fills sharing an explicit aggressor order id, in a row, form one trade; fills without one
stand alone. A trade is large once its combined size reaches the threshold. With
Threshold::Auto that is the 99th percentile, by nearest rank, of the combined sizes of
the symbol’s last 10,000 trades, recomputed every 100 trades and inactive until 1,000 trades
have been seen; trades from loaded history count.
A large trade shows as a marker at its first fill time and volume-weighted price, coloured by its aggressor side and labelled with its size, and as a zone from its first fill onward over the prices it filled at, at least one tick high, centred on them. Both follow the later fills of the same aggressor. A zone ends at the first trade at or after its start strictly beyond its far side: below it after a buy, above it after a sell, and on either side when the side is unknown.
The service uses one interval per symbol, chosen by its latest subscription, for every chart of that symbol. Intraday bars use the instrument’s exchange time zone (UTC when absent) and regular session; daily and longer bars use UTC calendar boundaries. The chart’s display time zone and extended-hours setting are not inputs to the service.
When the bar of the subscribed time interval that contains the first fill closes, the trade is in the body of that bar if its volume-weighted price lies between the bar’s open and close, both included, and in a wick otherwise. Zones of the kinds not kept are then removed. Zones in a bar the service did not see open, the first one after tracking starts or the interval changes, or under a trade-based interval, stay. A trade that first becomes large after its first fill’s bar has closed also keeps its zone: that bar is no longer held for classification.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.threshold: ThresholdCombined size from which a trade is large.
body_zones: boolKeep the zones of large trades in the body of their bar.
wick_zones: boolKeep the zones of large trades in a wick of their bar.
Trait Implementations§
Source§impl Clone for BigTradeRule
impl Clone for BigTradeRule
Source§fn clone(&self) -> BigTradeRule
fn clone(&self) -> BigTradeRule
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BigTradeRule
impl Debug for BigTradeRule
Source§impl Default for BigTradeRule
impl Default for BigTradeRule
Source§impl<'de> Deserialize<'de> for BigTradeRule
impl<'de> Deserialize<'de> for BigTradeRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for BigTradeRule
impl PartialEq for BigTradeRule
Source§impl Serialize for BigTradeRule
impl Serialize for BigTradeRule
impl StructuralPartialEq for BigTradeRule
Auto Trait Implementations§
impl Freeze for BigTradeRule
impl RefUnwindSafe for BigTradeRule
impl Send for BigTradeRule
impl Sync for BigTradeRule
impl Unpin for BigTradeRule
impl UnsafeUnpin for BigTradeRule
impl UnwindSafe for BigTradeRule
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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