Skip to main content

render_trade_profiles

Function render_trade_profiles 

Source
pub fn render_trade_profiles(
    painter: &Painter,
    mapping: &ChartMapping,
    bars: &[Bar],
    profiles: &[TradeProfile],
    step: f64,
    tick: f64,
    config: &FootprintConfig,
)
Expand description

Draws bid/ask stacks, total volume or signed delta profiles, their POC, value area, developing POC and volume nodes. step is the footprint’s grouped price step and tick is its instrument tick size before grouping. Bands extend half a tick below their first tick and above their last tick. Histograms of partly visible sessions stay at the left edge of the viewport. Profile ranges and data remain host-owned; edit crate::studies::TradeProfileRanges in response to a session menu’s merge/split actions and recalculate after trades change. A profile that is not complete is labelled “Partial executions”.