pub struct StructureIndicator {
pub params: StructureParams,
}Expand description
Batch Indicator adapter for MarketStructure.
Replays candles through the structure engine and emits per-bar:
struct_bias, struct_fib618, struct_fib500,
struct_in_discount, struct_in_premium,
struct_bos, struct_choch, struct_confluence.
Fields§
§params: StructureParamsImplementations§
Source§impl StructureIndicator
impl StructureIndicator
pub fn new(params: StructureParams) -> Self
pub fn with_defaults() -> Self
Trait Implementations§
Source§impl Clone for StructureIndicator
impl Clone for StructureIndicator
Source§fn clone(&self) -> StructureIndicator
fn clone(&self) -> StructureIndicator
Returns a duplicate of the value. Read more
1.0.0 · 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 StructureIndicator
impl Debug for StructureIndicator
Source§impl Indicator for StructureIndicator
impl Indicator for StructureIndicator
Source§fn required_len(&self) -> usize
fn required_len(&self) -> usize
swing_len * 4 + 10 mirrors the internal maxlen in MarketStructure.
Source§fn required_columns(&self) -> &[&'static str]
fn required_columns(&self) -> &[&'static str]
Which OHLCV fields this indicator reads. Read more
Source§fn calculate(
&self,
candles: &[Candle],
) -> Result<IndicatorOutput, IndicatorError>
fn calculate( &self, candles: &[Candle], ) -> Result<IndicatorOutput, IndicatorError>
Compute the indicator over a full candle slice (batch mode). Read more
Auto Trait Implementations§
impl Freeze for StructureIndicator
impl RefUnwindSafe for StructureIndicator
impl Send for StructureIndicator
impl Sync for StructureIndicator
impl Unpin for StructureIndicator
impl UnsafeUnpin for StructureIndicator
impl UnwindSafe for StructureIndicator
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