Skip to main content

trade_profile_menu

Function trade_profile_menu 

Source
pub fn trade_profile_menu(
    ui: &mut Ui,
    ranges: &mut TradeProfileRanges,
    index: usize,
    split_at: Option<DateTime<Utc>>,
) -> bool
Expand description

Shows merge/split commands for index inside a host menu. split_at is a bar boundary selected by the user, such as the hovered bar. Returns whether the ranges changed; rebuild the profiles with crate::studies::trade_profiles after a change.