openpine_vm/visuals/
plot_display.rs

1use serde::{Deserialize, Serialize};
2
3bitflags::bitflags! {
4    /// Display targets for plots/visuals.
5    #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
6    pub struct PlotDisplay: i64 {
7        /// Show in all available UI locations.
8        const ALL = 0xffff;
9        /// Do not show in any UI location.
10        const NONE = 0x0;
11
12        /// Show in the data window.
13        const DATA_WINDOW = 0x1;
14        /// Show in the chart pane.
15        const PANE = 0x2;
16        /// Show in the Pine screener.
17        const PINE_SCREENER = 0x4;
18        /// Show on the price scale.
19        const PRICE_SCALE = 0x8;
20        /// Show on the status line.
21        const STATUS_LINE = 0x10;
22    }
23}