We use cookies to understand how the site is used and improve it. We only load analytics after you accept. Privacy Policy
Confirmed break-of-structure signals with optional higher-timeframe EMA alignment and ATR-based risk projections.
Published by AlgoNexta, who builds and documents these tools so you can inspect the logic before using it. About AlgoNexta · Trading Scripts · AlgoNexta Research
One-time payment through Stripe. You get the full source (Pine Script and the other platform versions listed on this page) to use on your own charts.
BOS.AlgoNexta is an overlay indicator that identifies confirmed swing highs and lows, then watches for a candle close that breaks an active structure level. A bullish BOS occurs when the confirmed close exceeds an active swing high; a bearish BOS occurs when it falls below an active swing low. It plots signals and can draw ATR-based risk/reward projections, but it is an indicator: it does not submit orders or manage positions.
01 · When structure becomes active
The script first waits for `Swing strength` bars on both sides of a potential high or low. With the default `Swing strength = 3`, accepted pivot levels are only activated after that confirmation delay. For alternating pivot types, the default minimum move is 40 units multiplied by the selected price-unit size; same-side candidates must be more extreme to replace an accepted level.
02 · What confirms a break
A bullish BOS requires a confirmed chart-bar close strictly above the active high plus the configured buffer; a bearish BOS requires a close strictly below the active low minus that buffer. The default `BOS buffer (units)` is `0.0` and `Allow close equal to threshold` is false, so touching the level is insufficient. With the default HTF filter enabled, the prior completed higher-timeframe close must also be on the matching side of the 240 EMA.
03 · How signals and risk are displayed
Filtered bullish and bearish BOS conditions plot `BOS BUY` and `BOS SELL` labels by default and drive the three alert conditions. If `Show risk projection` is enabled, the script draws a projection from the signal close using ATR 14: default stop distance is `1.5 × ATR`, with `1.5R`, `2R`, and `3R` target lines. These drawings do not place or fill trades.
This script's logic could not be confidently reconstructed into an automated reference backtest, so no performance figures are shown rather than estimated ones.
Verify it in TradingView's Strategy Tester (or the equivalent tool for tradingview) before relying on it.
Vision Grade requires a reference backtest with enough reconstructed entries to measure — not available for this script yet.
Published by AlgoNexta, an evidence-first platform for building, reviewing, and documenting algorithmic trading tools. This page explains the script's actual logic and intended use; it does not promise profitability or replace verification in TradingView.
BOS.AlgoNexta is an overlay indicator that identifies confirmed swing highs and lows, then watches for a candle close that breaks an active structure level. A bullish BOS occurs when the confirmed close exceeds an active swing high; a bearish BOS occurs when it falls below an active swing low. It plots signals and can draw ATR-based risk/reward projections, but it is an indicator: it does not submit orders or manage positions.
3. A pivot needs three bars on each side before it is confirmed, so pivots become known only after that delay.Custom Pip Size, using Custom pip size of 0.1. The default Minimum structure move (units) is 40.0, so alternating accepted pivots must be at least 40 × 0.1 apart under the defaults.0.0.15 and EMA period set to 240. Bullish signals need the completed HTF close above its 240 EMA; bearish signals need it below.0; increase it to limit repeated bullish or bearish plotted signals. Structure levels are still consumed even when a trade filter or gap suppresses a signal.A no-signal example: a candle may close beyond an active high and create a raw bullish BOS, but no BOS BUY marker appears if the prior completed 15-minute close is not above its 240 EMA while the HTF filter is required.
BOS BUY labels below bars and bearish signals as red BOS SELL labels above bars. Disable it to use triangles instead.BOS markers show raw breaks before the HTF alignment and same-side signal-gap filters; they are diagnostic events, not filtered BUY/SELL signals.EMA period input. It is not the confirmed HTF EMA used by the filter.When Show risk projection is enabled, each filtered BOS signal can create a visual projection from that signal bar’s close. Defaults are:
141.51.5, 2.0, and 3.015Latest Signal OnlyFor a bullish signal, the stop projection is 1.5 × ATR below the signal close and the three targets are above it. Bearish projections invert those directions. The white dotted line is entry, red is stop, and lime lines are TP1 dotted, TP2 dashed, and TP3 solid. Red and teal boxes can be toggled with Show risk/reward boxes.
These are visual calculations, not orders, fills, or guaranteed targets. In Active Projections mode, a projection is removed after a later bar touches its stop or TP3, or when its width expires. In Historical Projections mode, projections remain until the configured Maximum historical projections limit is reached. Individual lines and labels can be hidden with the Entry, Stop, and TP display inputs.
AlgoNexta Bullish BOS, AlgoNexta Bearish BOS, and AlgoNexta Any Confirmed BOS. They use the same filtered BOS conditions as the BUY/SELL visuals.barstate.isconfirmed, so the signal is based on a completed chart bar rather than an intrabar break.close[1] and EMA [1]), avoiding use of a still-developing HTF bar. This can make the filter slower than an in-progress HTF reading.Higher timeframe = 15, use a chart timeframe below 15 minutes, or select a higher HTF appropriate to the chart. Ensure the custom unit settings suit the instrument’s tick and quotation convention.This script is not financial advice. Use TradingView’s Strategy Tester only with a separate, explicitly defined strategy; it is the appropriate source of truth for historical strategy results, while paper trading and live execution are separate evidence levels.
The source is included with the one-time purchase ($22). The chart, signals and documentation on this page stay open to everyone.
It detects a confirmed close beyond an active, confirmed pivot high or low. The active levels are built from `ta.pivothigh` and `ta.pivotlow` using the `Swing strength` input, which defaults to 3.
The BOS signal itself is evaluated only on confirmed chart bars, and the HTF filter uses the previous fully closed HTF bar with `lookahead_off`. However, pivots are only confirmed after `Swing strength` bars to their right; the optional pivot marker is drawn back at the pivot location for display, not because it was known then.
With `Require confirmed HTF EMA alignment` enabled by default, bullish BOS signals require the prior completed HTF close above its 240 EMA, while bearish signals require it below. The default higher timeframe is 15 minutes, and it must be strictly higher than the chart timeframe.
No. It is an indicator and creates no `strategy.entry` or exit orders. Its ATR stop and TP lines, boxes, and labels are visual projections only.
Create a TradingView alert from one of the three supplied alert conditions: bullish BOS, bearish BOS, or any confirmed BOS. Alerts use the same filtered signal conditions as the plotted BUY and SELL markers.
No. The projections use the signal-bar close, ATR length 14, a 1.5 ATR stop multiplier, and default 1.5R, 2R, and 3R levels; they do not establish live or historical performance. This is not financial advice, and TradingView Strategy Tester with a separate strategy is the source of truth for historical strategy results.
Describe the change in plain English and AlgoNexta rebuilds it as a fresh Pine v6 script — with its own explanation, evidence, and walkthrough.
Buy this script to build your own version of it, or describe a new idea in the Studio.
Educational content only — not financial advice. TradingView is the source of truth for live data, compilation, and Strategy Tester results.