Skip to content

STRAT_02: RQF Reference

Complete reference for the RQF Range System indicator.

File: strategies/pine_v6/STRAT_02.pine Version: v12.0 Status: Active (Paper Trading Phase)

Features

Pattern Detection

  • Dual-tier pivot detection (labels vs structure)
  • BoS/MSS with trend tracking
  • Sweep detection (S1, S2, S3... labels)
  • Equal Highs/Lows (EQH/EQL)
  • Failed MSS tracking (f1, f2...)

Confluence

  • Order Blocks (last opposing candle)
  • Breaker Blocks (broken OB conversion)
  • Fair Value Gaps (filtered to zones)

Fibonacci

  • Retracement zones (discount/auction/premium)
  • Extensions (1.0, 1.272, 1.618, 2.0, 2.618)
  • TP hit tracking
  • Zone coloring

Display

  • Swing H/L labels
  • Structure lines (BoS/MSS)
  • Trigger High/Low lines
  • Info table (state, counts, signals)
  • HTF bias arrows

Alerts

  • Sweep detected (S1)
  • MSS confirmed (bullish/bearish)
  • Entry signals (long/short)
  • Failed MSS
  • Setup invalidated
  • Setup complete (TP hit)

Settings Reference

Core Settings

Setting Default Description
Pivot Length 5 H/L label sensitivity
Structure Length 20 BoS/MSS sensitivity
Lookback 250 Bars to track

RQF Sweep System

Setting Default Description
Show Sweep Labels true S1, S2... labels
Show Trigger H/L true TH/TL lines
Show Failed MSS true f1, f2... labels
Show Entry Signal true Entry arrows
Sweep Timeout 100 Max bars to wait

Fibonacci

Setting Default Description
Show Fibonacci true Fib levels
Show Discount Box true Zone boxes
Fib Extend Bars 50 Extension length

Confluence

Setting Default Description
Show OB true Order Blocks
Show Breakers true Breaker conversion
Show FVG true Fair Value Gaps
FVG Filter Zone true Only in entry zone
FVG Max Count 3 Max displayed
OB Extend Bars 30 Box extension

State Machine

State 0 → State 1 → State 2 → State 3 → State 0
 (Idle)    (BoS)    (Sweep)   (MSS)   (Entry/Invalid)

See State Machine Logic for details.

Alert JSON Format

{
  "event": "LONG_ENTRY",
  "symbol": "{{ticker}}",
  "timeframe": "{{interval}}",
  "price": {{close}},
  "time": "{{time}}"
}

Version History

Version Changes
v12.0 Fib extensions, TP tracking, HTF bias, confluence score
v9.1 Initial RQF implementation

See Changelog for full history.