pub enum BubbleGrouping {
Automatic,
Ungrouped,
TimeWindow(TimeDelta),
PriceStep(f64),
Executions(usize),
}Expand description
Which trades share a bubble. Each group is one bubble, whatever the chart’s bar interval,
except for Automatic.
Variants§
Automatic
One bubble per bar and price level, the level being the instrument’s tick size, or every traded price when the feed reports none. Crowded views merge nearby bars and levels into screen cells, retaining total volume and aggressor sides. Diameters leave space between cells and crowded bubbles use fainter borders; spacious views keep the configured sizes.
Ungrouped
One bubble per execution, at its own time and price, so fills of one price and instant stay separate bubbles even when they land on one pixel. Draws every visible execution, at most the chart’s bounded trade store.
TimeWindow(TimeDelta)
One bubble per price level and time window. Windows start on multiples of their length counted from the Unix epoch, and a bubble sits in the middle of its window. A length below a millisecond counts as one millisecond.
PriceStep(f64)
One bubble per bar and price level of this height, which must be finite and positive, else every traded price has its own bubble. Levels of a bar on one pixel row merge.
Executions(usize)
One bubble per this many consecutive executions, at the time of the last of them and the volume-weighted price of all of them. The newest group grows until it is full. Groups count from the oldest held execution, and a count of zero counts as one.
Trait Implementations§
Source§impl Clone for BubbleGrouping
impl Clone for BubbleGrouping
Source§fn clone(&self) -> BubbleGrouping
fn clone(&self) -> BubbleGrouping
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for BubbleGrouping
Source§impl Debug for BubbleGrouping
impl Debug for BubbleGrouping
Source§impl<'de> Deserialize<'de> for BubbleGrouping
impl<'de> Deserialize<'de> for BubbleGrouping
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 BubbleGrouping
impl PartialEq for BubbleGrouping
Source§impl Serialize for BubbleGrouping
impl Serialize for BubbleGrouping
impl StructuralPartialEq for BubbleGrouping
Auto Trait Implementations§
impl Freeze for BubbleGrouping
impl RefUnwindSafe for BubbleGrouping
impl Send for BubbleGrouping
impl Sync for BubbleGrouping
impl Unpin for BubbleGrouping
impl UnsafeUnpin for BubbleGrouping
impl UnwindSafe for BubbleGrouping
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