pub struct FootprintConfig {Show 24 fields
pub modes: Vec<FootprintMode>,
pub profile: bool,
pub color_by: FootprintColor,
pub ask_color: Color32,
pub bid_color: Color32,
pub text_color: Color32,
pub neutral_color: Color32,
pub auto_row_height: Option<f32>,
pub min_text_height: f32,
pub imbalance_ratio: f64,
pub imbalance_min_volume: f64,
pub diagonal: bool,
pub show_poc: bool,
pub value_area: Option<f64>,
pub value_area_high: Option<Stroke>,
pub value_area_low: Option<Stroke>,
pub node_sensitivity: NodeSensitivity,
pub abbreviate: bool,
pub show_zero: bool,
pub font_size: [f32; 2],
pub extreme_ratio: bool,
pub pullback: bool,
pub statistics: bool,
pub studies: Option<FootprintStudyConfig>,
}Expand description
Footprint appearance. Supply colours from the host’s theme. Serializable, so a host can keep it with its chart settings; fields missing from older documents take their defaults.
Fields§
§modes: Vec<FootprintMode>One to four columns per bar; only the first four entries are drawn.
profile: boolDraw proportional volume profiles behind the numbers.
color_by: FootprintColorCell colouring rule.
ask_color: Color32Buy colour.
bid_color: Color32Sell colour.
text_color: Color32Text colour and POC outline.
neutral_color: Color32Cell fill for balanced or unclassified executions.
auto_row_height: Option<f32>Group adjacent rows automatically to at least this screen height. None keeps the
aggregation’s manual grouping. Grouping is an integer multiple of the input step.
min_text_height: f32Hide numbers when a row is shorter than this height. A column uses compact values and fonts down to 8 points before switching to a profile overview without numbers.
imbalance_ratio: f64Dominance multiple, normally 3 (300%).
imbalance_min_volume: f64Inclusive minimum dominant-side volume for cell imbalances and stacked zones, in instrument volume units after row grouping. Overrides the study config’s minimum when drawn by the chart. Zero preserves all ratio signals; negative or non-finite, none.
diagonal: boolCompare to the opposite side one price away instead of at the same price.
show_poc: boolOutline the highest-volume row when its cells are large enough for the stroke.
value_area: Option<f64>Shade the contiguous value area containing this share of the bar volume.
value_area_high: Option<Stroke>Trade profiles: the guide along the top edge of the value area (VAH); None hides it.
value_area_low: Option<Stroke>Trade profiles: the guide along the bottom edge of the value area (VAL); None hides it.
node_sensitivity: NodeSensitivityTrade profiles: how volume nodes are chosen.
abbreviate: boolPrefer 1.2K for 1,200 and 3.4M for 3,400,000, even when every digit would fit. Otherwise compact units are only a width-fitting fallback.
show_zero: boolWrite zero volumes as 0. Otherwise they are left blank, so a one-sided row shows only the side that traded.
font_size: [f32; 2]Preferred smallest and largest font size of the numbers, in points. A row’s size follows its volume relative to the bar’s largest row; equal values request one size. Both are held within 8 and 24 points. Fitting to the cell can reduce the size to 8 points; columns that cannot fit readable numbers use an overview without them.
extreme_ratio: boolWrite the ask/bid ratio of the highest and lowest row of each bar above and below it,
or n/a when the bid is zero and the ratio is undefined.
pullback: boolOutline the rows of the bar’s pullback range, see pullback_range.
statistics: boolReserve a per-bar statistics table below the chart’s price pane.
Used by crate::widget::Chart::show_footprint.
studies: Option<FootprintStudyConfig>Annotations calculated from the displayed rows after executions or grouping change.
None hides them. Used by crate::widget::Chart::show_footprint.
Trait Implementations§
Source§impl Clone for FootprintConfig
impl Clone for FootprintConfig
Source§fn clone(&self) -> FootprintConfig
fn clone(&self) -> FootprintConfig
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 FootprintConfig
impl Debug for FootprintConfig
Source§impl Default for FootprintConfig
impl Default for FootprintConfig
Source§impl<'de> Deserialize<'de> for FootprintConfigwhere
FootprintConfig: Default,
impl<'de> Deserialize<'de> for FootprintConfigwhere
FootprintConfig: Default,
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>,
Auto Trait Implementations§
impl Freeze for FootprintConfig
impl RefUnwindSafe for FootprintConfig
impl Send for FootprintConfig
impl Sync for FootprintConfig
impl Unpin for FootprintConfig
impl UnsafeUnpin for FootprintConfig
impl UnwindSafe for FootprintConfig
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