CBC Flip with Targets and Filters [LuxAlgo]The CBC Flip with Targets and Filters indicator provides an institutional framework for identifying high-probability trend reversals based on the Candle By Candle (CBC) method.
By combining structural price action with dynamic ATR targets, stop losses, and intraday value filtering, this tool offers a straightforward strategy for managing risk and executing trades based on shifts in market bias.
🔶 USAGE
The Usage section describes how the script can be used to navigate market trends using price action confirmation and volatility-based levels.
🔹 Signal Identification
Bullish and bearish triangles indicate confirmed trend flips. A bullish flip is detected when price closes above a previous high, while a bearish flip occurs when price closes below a previous low. These signals only appear after the bar closes to ensure non-repainting execution.
🔹 Strategic Filtering
Align signals with intraday value by using the VWAP filter settings:
Confirmation mode: Ensures you only take long signals above the VWAP and short signals below it.
Contrarian mode: Used to identify potential mean-reversion opportunities when price flips against the current value area.
🔹 Risk Management
Every flip generates dynamic target and stop loss lines based on a customizable Average True Range (ATR). The 'Require candle close to stop' feature allows users to choose between a hard touch of the stop level or waiting for a candle close to invalidate the bias.
The script also includes retroactive outcome markers (circles and crosses) that appear on the signal candle to show whether the target or stop was reached first. A lack of symbol by the bullish or bearish triangles means neither the target nor stop loss criteria have been met.
🔹 Performance Verification
Refer to the real-time dashboard to monitor current trade progress and historical hit rates. The Current Target Progress metric in the dashboard tracks how far price moved in the trade direction, helping you optimize your ATR multipliers and assess trend strength.
🔶 DETAILS
🔹 Institutional CBC Logic
The Candle By Candle (CBC) methodology, popularized by maplestax, is a price action-centric approach that ignores minor fluctuations. By requiring a full candle close beyond the previous candle range, the script filters out wick rejections that often lead to false signals in volatile markets.
🔹 Non-Repainting Design
The indicator is designed to be fully non-repainting. Signals and levels are calculated based on closed bars, ensuring that what you see on the chart is consistent with historical performance and real-time execution.
🔶 SETTINGS
🔹 Indicator Settings
Bulls/Bears Color: Customizes the theme for bullish and bearish trend components.
ATR Length: Sets the lookback period for volatility calculations.
Target ATR Multiplier: Defines the distance of the profit target from the entry.
Stop ATR Multiplier: Defines the distance of the stop loss from the entry.
Require candle close to stop: When enabled, the stop loss is only triggered if a candle closes beyond the stop level.
Show Daily Anchored VWAP: Toggles the visibility of the session-anchored VWAP.
Filter Bias by VWAP: Choose between No Filter, Confirmation (Trend-following), or Contrarian (Mean-reversion).
🔹 Visuals
Show Flip Labels: Toggles the entry triangle icons.
Show Outcome Markers: Toggles the retroactive "X" and "Circle" markers on signal candles.
Label Size: Adjusts the size of the on-chart icons.
🔹 Dashboard
Dashboard: Toggles the performance metric table.
Position/Size: Adjusts the UI location and scale.
Historical Trade Count: Sets the sample size for the historical success rate calculation.
Indicador Pine Script®






















