Indicator · Pine Script v6 · On the chart

Black Box Continuation [Risk Filtered]

by Deep-2k3

Black Box Continuation is an overlay indicator that tracks market structure sweeps and continuation setups around pivot highs and lows.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code179
Settings14inputs
LicenceNone stated
Last update2 weeks ago10 Nov 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Black Box Continuation [Risk Filtered] uses a state-machine model to detect price fakeouts beyond structural pivots, looking for pullbacks and subsequent secondary re-crossings. Setups are filtered using an exponential moving average for macro trend alignment, an ATR multiplier for minimum sweep depth, and a maximum risk point limit. The indicator plots trend lines, state tracking visuals, and rejected setups directly on the price chart.

Details

Published by

Deep-2k3 on GitHub

Draws

On the price chart

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Topics

futuresindicatorninjatrader-addonninjatrader-indicatorsninjatrader-strategiesstrategytradingtradingview-ideas

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Pivot Left Barsint15leftBars
Pivot Right Barsint15rightBars
Max Bars for Fakeoutint4maxFakeoutBars
Max Bars to Wait for 2nd Crossingint8maxWaitBars
Require Minimum Bait DepthbooltrueuseAtrBait
Bait Depth (ATR Multiplier)float0.4atrBaitMult
Require Macro Trend Alignment (EMA)booltrueuseEmaFilter
EMA Lengthint200emaLength
ATR Lengthint14atrLength
ATR Stop Padding (Multiplier)float0.5atrStopPadding
Max Stop Loss Distance (Points)float20.0maxRiskPoints
Show Rejected Setups on ChartbooltrueshowRejected
Show all 14 settings
SettingTypeDefaultVariable
Black Box Colorcolorcolor.new(color.gray, 70)blkBoxCol
Show Tracked LevelsbooltrueshowLines
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

This indicator detects market accumulation phases and bottom formations over time rather than generating single-point buy signals. It evaluates five scoring components: trend loss, range formation, volatility compression, liquidity behavior, and early bullish

Indicator v6 TrendVolatility & bands
Updated 4 weeks ago · MIT GitHub repository of Vein: Accumulation Phase 4H [WavesUnchained]

Imagegpt Test 1

by g-moe
3 stars

Imagegpt Test 1 is a comprehensive chart overlay indicator that plots buy, sell, and reversal signals along with supply and demand zones. It calculates key levels using volume pivots and features integrated Bollinger Bands alongside entry, exit, stop-loss, and

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Imagegpt Test 1

Mac Buy/Sell Indicator

by acquillemac
1 stars

A SuperTrend-style indicator built on ATR and RMA bands that prints buy and sell signals when the direction flips, optionally filtered by a 9 and 21 EMA cross. It draws two ATR-based take profit levels, background colour and a stats table that scores past sign

Indicator v6 TrendSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Mac Buy/Sell Indicator
575 stars

This indicator detects equal highs and lows by comparing prices within user-defined left and right bars using a tolerance percentage. It plots horizontal lines on the price chart for equal highs in one color and lows in another. A screener allows input of mult

Indicator v5 Support & resistanceTrend
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Equal Highs and Lows with Screener

[RS]Donchian Fans

by ricardosantos79
261 stars

This indicator plots Donchian Channel boundary lines along with dynamic fan projections directly on the price chart. It calculates the highest high, lowest low, and median price over a customizable lookback period. Whenever price establishes a new channel high

Indicator v4 Support & resistanceTrend
Updated 5 years ago · None stated GitHub repository of [RS]Donchian Fans

More SMC / ICT scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers