BOS/CHoCH + EC + FVG + RSI

Advanced Market Structure & Pattern Recognition System

Smart Money Concepts Multi-Confirmation High Probability All Timeframes

Overview

The BOS/CHoCH + EC + FVG + RSI indicator represents a comprehensive market structure analysis system that combines multiple technical analysis methodologies into a single, cohesive trading tool. This indicator identifies high-probability trading opportunities by detecting Break of Structure (BOS) and Change of Character (CHoCH) patterns, validating them with engulfing candle formations, Fair Value Gap (FVG) presence, and RSI divergence confirmation.

The indicator is designed for traders who understand Smart Money Concepts (SMC) and seek confluence-based entry signals. By requiring multiple conditions to align, the system filters out low-probability setups and focuses on scenarios where institutional activity is likely occurring.

Primary Use Case

This indicator excels in identifying retest opportunities after significant market structure breaks. It's particularly effective in trending markets where institutional traders are creating liquidity voids (FVGs) and establishing new market structure.

Key Innovation

The unique aspect of this system is its multi-layered filtering approach. Unlike simple BOS or CHoCH indicators, this tool requires engulfing candles to occur within Fair Value Gaps AND validates the momentum shift through RSI divergence analysis. This creates a high-confidence signal generation system that significantly reduces false positives.

Market Conditions

Most effective during trending phases with clear structure, particularly after strong directional moves that create FVGs. Works across all timeframes but shows optimal performance on 15-minute to 4-hour charts where structure is more reliable and FVGs are more significant.

Methodology & Logic

Market Structure Detection

The indicator employs a three-phase processing system that analyzes historical price data to identify pivots (swing highs and lows) using a two-candle confirmation pattern. Once pivots are established, the system monitors for breaks of these levels to detect BOS (continuation) or CHoCH (reversal) patterns.

Signal Generation Components

  1. BOS/CHoCH Identification: Detects when price closes beyond established pivot levels, classifying the break as either structure continuation (BOS) or change (CHoCH)
  2. Engulfing Candle Detection: Identifies bullish or bearish engulfing patterns with configurable tolerance for micro-gaps
  3. Fair Value Gap Analysis: Monitors for price imbalances (gaps) in three-candle sequences and tracks their mitigation
  4. RSI Divergence Filter: Compares RSI values between the internal pivot within a BOS zone and the current retest candle to confirm momentum shifts

Visual Output

The indicator displays labeled pivot points (H for highs, L for lows), horizontal lines showing BOS/CHoCH zones, color-coded FVG boxes (green for bullish, red for bearish), and entry signal labels (L for long, S for short) when all conditions align.

Alert Conditions

Signals are generated when price retests a BOS zone, forms an engulfing candle within an FVG, and RSI confirms the directional bias. The system specifically looks for retests of the high/low of the pivot candle that created the BOS.

Parameters & Settings

Parameter Default Value Range Description
Pivot Search Window 2 1-10 Number of bars to check on each side for local highs/lows
Pattern Confirmation Window 10 5-50 Bars to search for two-candle confirmation pattern
Data Storage Size 4000 100-5000 Historical bars retained in memory for analysis
Enable RSI Filter True On/Off Requires RSI divergence for signal confirmation
RSI Length 14 2-50 Periods used for RSI calculation
RSI Calculation Method Simple Simple/Wilder's Method for calculating RSI (SMA vs. exponential smoothing)
Retest Proximity Threshold 5 pips 0+ How close price must be to BOS zone for valid signal
FVG Mode Current w Offset Infinite/Current How FVG boxes extend to the right
FVG Right Offset 4 0+ Bars to extend FVG boxes forward

Customization Guidance

For Intraday Trading: Reduce Pivot Search Window to 1-2 and Pattern Confirmation Window to 5-8 for faster signal generation on lower timeframes.

For Swing Trading: Increase Pivot Search Window to 3-4 and Pattern Confirmation Window to 15-20 to ensure only significant structure is captured.

Volatile Markets: Increase Retest Proximity Threshold to 8-10 pips to account for price noise around zones.

Trending Markets: Enable RSI Filter with Wilder's Smoothing for more sensitive momentum confirmation.

Technical Specifications

Specification Details
PineScript Version v6
Indicator Type Overlay (plots on price chart)
Maximum Visual Objects 500 labels, 500 lines, 500 boxes
Timeframes All timeframes supported (1m to 1W+)
Asset Classes Forex, Crypto, Stocks, Indices, Commodities
Data Processing Three-phase: Collection → Historical Analysis → Real-time
Anti-Repainting Uses confirmed bars with barstate.isconfirmed
Memory Management Automatic cleanup of old data beyond storage limit

Pip Calculation System

The indicator includes adaptive pip calculation that automatically adjusts for different asset classes:

Visual Documentation

BOS/CHoCH + EC + FVG + RSI Indicator

Usage Guide

Interpreting the Indicator

Pivot Labels: "H" labels mark swing highs (red), "L" labels mark swing lows (green). These are the reference points for structure breaks.

BOS Lines: Solid horizontal lines (green for bullish, red for bearish) connect pivots when structure is broken in the trend direction.

CHoCH Lines: Horizontal lines (purple for bullish, orange for bearish) indicate potential trend reversal when opposite structure is broken.

FVG Boxes: Semi-transparent boxes (green for bullish, red for bearish) show price imbalances that often attract price for retest.

Entry Signal Interpretation

Long Signals (L label): Appear below price when all conditions align:

Short Signals (S label): Appear above price when:

Best Practices

  1. Confluence with Higher Timeframes: Verify that signals align with the trend on at least one higher timeframe
  2. Volume Confirmation: Look for increased volume on the engulfing candle for additional confirmation
  3. Risk Management: Place stops beyond the FVG zone (for longs, below the FVG low; for shorts, above the FVG high)
  4. Target Setting: Look for the next significant structure level (opposite pivot) as initial target
  5. Signal Quality: Signals that occur after clean, obvious structure breaks tend to be more reliable

Common Scenarios

Scenario 1 - Strong Trend Continuation: Multiple BOS patterns in the same direction with clean FVG retests typically indicate strong trending conditions. Take signals in the trend direction.

Scenario 2 - Trend Reversal: When CHoCH appears after extended trend, wait for the first BOS in the new direction before taking signals to confirm the reversal.

Scenario 3 - Choppy Market: If BOS and CHoCH alternate frequently within small range, reduce position sizing or avoid trading until clear structure emerges.

Implementation Notes

Installation & Setup

  1. Open TradingView and navigate to the chart where you want to use the indicator
  2. Click on "Indicators" at the top of the chart
  3. Search for "BOS_CHoCH_EC_FVG_RSI" in your private indicators (if you have the code)
  4. Click to add the indicator to your chart
  5. The indicator will begin its three-phase initialization automatically

Initial Loading

When first added to a chart, the indicator goes through three phases:

You'll see debug labels (if enabled) indicating when each phase completes. This is normal and only happens on initial load.

Optimization Tips

Compatibility Notes

Known Limitations

Risk Disclaimer: Trading involves substantial risk of loss. This indicator is a technical analysis tool and does not guarantee profitable trades. Past performance does not indicate future results. All trading decisions should be made based on your own analysis, risk tolerance, and market conditions. The indicator should be used as part of a comprehensive trading plan that includes proper risk management. Never risk more than you can afford to lose.