pub struct SRInteraction {
pub bar: usize,
pub level_price: f64,
pub level_label: String,
pub is_support: bool,
pub interaction: SRInteractionType,
pub strength: f64,
pub bars_since_creation: u32,
pub distance_at_event: f64,
pub source: LevelSource,
}Expand description
Rich event emitted when an interaction is detected on a monitored level. Primary output for backtester, confluence, and ML feature enrichment.
Fields§
§bar: usizeBar index (from the internal bar counter, consistent with MarketStructureState).
level_price: f64Exact price of the level at detection time.
level_label: StringHuman / strategy readable label (e.g. “R_auto_12” or “UserResist_1.2345”).
is_support: boolTrue if this level was created/treated as support (price below it is bullish context).
interaction: SRInteractionTypeThe specific interaction type.
strength: f64Strength / importance metadata (for Part 67 style + our extensions). For AutoSwing: the structure_count at swing creation. For repeated interactions: can be incremented touch count in future iterations.
bars_since_creation: u32Bars since this level was first registered (creation age).
distance_at_event: f64How far price was from the level at the moment of this event (signed: positive = above level).
source: LevelSourceOrigin of the level (auto vs user) with provenance.
Trait Implementations§
Source§impl Clone for SRInteraction
impl Clone for SRInteraction
Source§fn clone(&self) -> SRInteraction
fn clone(&self) -> SRInteraction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SRInteraction
impl Debug for SRInteraction
Source§impl<'de> Deserialize<'de> for SRInteraction
impl<'de> Deserialize<'de> for SRInteraction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for SRInteraction
impl PartialEq for SRInteraction
Source§fn eq(&self, other: &SRInteraction) -> bool
fn eq(&self, other: &SRInteraction) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SRInteraction
impl Serialize for SRInteraction
impl StructuralPartialEq for SRInteraction
Auto Trait Implementations§
impl Freeze for SRInteraction
impl RefUnwindSafe for SRInteraction
impl Send for SRInteraction
impl Sync for SRInteraction
impl Unpin for SRInteraction
impl UnsafeUnpin for SRInteraction
impl UnwindSafe for SRInteraction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.