pub struct PointFigureConfig {
pub box_size: f64,
pub reversal_boxes: usize,
pub use_atr: bool,
pub atr_period: usize,
pub use_close: bool,
}Expand description
Configuration for Point & Figure chart transformation.
The two key parameters are box_size (price units per box) and
reversal_boxes (how many boxes of counter-movement trigger a new
column). The traditional default is a 1-box size with 3-box reversal.
Fields§
§box_size: f64Box size in price units
reversal_boxes: usizeNumber of boxes required for reversal
use_atr: boolWhether to use ATR for box size
atr_period: usizeATR period if using ATR-based boxes
use_close: boolTraditional (high/low) or close-only method
Implementations§
Source§impl PointFigureConfig
impl PointFigureConfig
Sourcepub fn new(box_size: f64, reversal_boxes: usize) -> Self
pub fn new(box_size: f64, reversal_boxes: usize) -> Self
Create a P&F config with explicit box size and reversal count.
Sourcepub fn with_atr(self, period: usize) -> Self
pub fn with_atr(self, period: usize) -> Self
Use ATR-derived box size instead of a fixed value.
Sourcepub fn with_close_only(self) -> Self
pub fn with_close_only(self) -> Self
Use close-only method instead of high/low.
Trait Implementations§
Source§impl Clone for PointFigureConfig
impl Clone for PointFigureConfig
Source§fn clone(&self) -> PointFigureConfig
fn clone(&self) -> PointFigureConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PointFigureConfig
impl Debug for PointFigureConfig
Auto Trait Implementations§
impl Freeze for PointFigureConfig
impl RefUnwindSafe for PointFigureConfig
impl Send for PointFigureConfig
impl Sync for PointFigureConfig
impl Unpin for PointFigureConfig
impl UnsafeUnpin for PointFigureConfig
impl UnwindSafe for PointFigureConfig
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
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,
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> ⓘ
Converts
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> ⓘ
Converts
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