pub struct TpoOptions {
pub tick_size: f64,
pub row_size: u32,
pub period_ms: i64,
pub session_ms: i64,
pub session_offset_ms: i64,
pub value_area: f64,
pub colors: TpoColors,
}Expand description
Options of a Tpo.
Fields§
§tick_size: f64Minimum price increment.
row_size: u32Ticks per row.
period_ms: i64Period length, ms (one letter each).
session_ms: i64Session length, ms (at most a day). A session starts every UTC day
at session_offset_ms; bars outside the sessions are skipped.
session_offset_ms: i64Start of the sessions after UTC midnight, e.g. 14 h 30 min for 9:30–16:00 New York (winter time).
value_area: f64Share of the TPOs in the value area, in (0, 1].
colors: TpoColorsColors.
Implementations§
Trait Implementations§
Source§impl Clone for TpoOptions
impl Clone for TpoOptions
impl Copy for TpoOptions
Source§impl Debug for TpoOptions
impl Debug for TpoOptions
Source§impl PartialEq for TpoOptions
impl PartialEq for TpoOptions
impl StructuralPartialEq for TpoOptions
Auto Trait Implementations§
impl Forget for TpoOptions
impl Freeze for TpoOptions
impl Move for TpoOptions
impl RefUnwindSafe for TpoOptions
impl Send for TpoOptions
impl Sync for TpoOptions
impl Unpin for TpoOptions
impl UnsafeUnpin for TpoOptions
impl UnwindSafe for TpoOptions
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
Mutably borrows from an owned value. Read more