Skip to content

S/R Interaction Monitor (Part 67)

Price Action price-action support-resistance sr-interaction breakout retest market-structure mql5 part-67

Real-time horizontal S/R monitoring with Approach/Touch/Breakout/Reversal/Retest detection. Auto levels from MarketStructure swings + dynamic user-provided levels. Rich event output designed for backtester and confluence (MQL5 Part 67 port).

Usage

Use the Rust struct directly for streaming (add_user_level + next). Emits SRMonitorOutput with Vec. Ideal for event-driven backtesting and PA + regime filters. See also MarketStructure for the swing foundation.

Background

Classical price action (not DSP). Horizontal level state machine on top of adaptive swings.

Parameters

  • swing_strength (default: 3): Depth for internal MarketStructure swing detection (Part 21).
  • touch_tolerance (default: 0.5): Absolute price tolerance for Touch/Retest (Part 67 TouchTolerancePips scaled).
  • approach_zone (default: 5.0): Outer Approach zone (Part 67 ApproachZonePips).

Formula

\text{side} = \text{sign}(price - level)\ \text{touch if } |level - [L,H]| \le tol\ \text{breakout if side flips}\ \text{retest if post-breakout distance} \le tol

Source