Two-Stage Confirmation Pipeline
Separates initial S candidate candle detection from confirmed BUY/SELL triggers using optional S Breakout, Engulfing (E), and Master Candle (M) bar-close filters.
Two-stage signal confirmation, configurable candle-zone mapping, and ATR-calibrated reference levels for TradingView.
UMAR'S ASTRA NOX is a TradingView Pine Script v6 chart overlay engineered for structured chart planning. It separates initial candidate markers (S) from optional bar-close confirmation filters, maps the chosen reference candle into a BUY ZONE or SELL ZONE box, highlights an internal Entry Region percentage slice, and projects ATR-buffered Stop Loss and Risk:Reward Take Profit reference levels.
Clearly separated from unedited TradingView mobile captures above.
Verified in supplied TradingView captures on XAUUSD (3m, 15m); overlay=true supports standard TradingView chart timeframes with user calibration.
Separates initial S candidate candle detection from confirmed BUY/SELL triggers using optional S Breakout, Engulfing (E), and Master Candle (M) bar-close filters.
Anchors directional zone boxes to the S candidate candle, the final confirmed candle, or the previous reference candle, with optional past-only swing lookback.
Highlights a customizable Entry Region sub-box (default 65%) inside each BUY ZONE or SELL ZONE to visualize planned entry boundaries.
Computes Stop Loss beyond the zone boundary using ATR(14) and optionally shifts Entry toward Stop Loss when initial distance exceeds Maximum SL Distance ($).
Projects an optional TP reference line and label from the final entry and risk distance using a configurable Risk:Reward ratio (default 2.5).
Operates strictly on the active chart timeframe with zero higher-timeframe request.security() calls, evaluating state transitions on confirmed bar closes.
On confirmed bar close, the internal engine identifies a candidate setup and optionally marks the candle with an S label and subtle bar tint.
Enabled confirmation filters—such as S Candle Breakout on the next closed candle, Engulfing (E), or Master Candle (M)—validate whether the candidate confirms.
Upon confirmation, ASTRA NOX draws the directional zone box and inner Entry Region slice extended forward for a user-defined number of bars.
ATR-buffered Stop Loss, cap-checked Entry, and Risk:Reward Take Profit lines and price tags are plotted cleanly, with FIFO cleanup keeping chart drawings tidy.
Initial candidate scanner marker (blue below bar for buy candidates; crimson above bar for sell candidates).
Final confirmed directional label plotted once all enabled confirmation filters pass on bar close.
Full High-to-Low price box of the selected anchor candle (or swing lookback candle if enabled).
Inner sub-box representing the configured Entry Zone Percentage (%) inside the main directional zone.
Reference lines for Entry (solid blue), ATR-buffered Stop Loss (dashed red), and Risk:Reward Take Profit (dotted green).
User-configurable parameters organized by TradingView settings group.
| Group | Input | Type | Default | Function |
|---|---|---|---|---|
| Confirmation Filters | Enable S Candle Breakout | Bool | true | Requires the next closed bar to close beyond the S candle extreme. |
| Confirmation Filters | Enable Engulfing (E) | Bool | false | Requires the S candle body to engulf the prior candle's body. |
| Confirmation Filters | Enable Master Candle (M) | Bool | false | Enables wick and breakout confirmation filtering around the candidate/previous candle. |
| Display | Show Scanner / Final / Trade Levels / Zone Text | Bool toggles | true | Independently show or hide S labels, bar highlighting, BUY/SELL labels, ENTRY/SL/TP lines, and zone text. |
| Zone Creation | Zone Candle Source (S / Final / Previous) | Bool toggles | Use S Candle = true | Selects which candle anchors the directional zone box. |
| Zone Creation | Enable Swing Detection & Lookback | Bool / Int | false / 10 bars | Optional past-only lookback to anchor the zone to the lowest low or highest high within lookback bars. |
| Zone Creation | Zone Extension & Maximum Zones | Int / Int | 20 bars / 50 zones | Controls forward zone width and maximum zones retained before oldest drawings are removed. |
| Zone Creation | Enable Entry Region & Percentage (%) | Bool / Float | true / 65.0% | Draws the inner Entry Region box and sets the percentage used for base Entry placement. |
| Entry / SL / TP | ATR Length & SL ATR Multiplier | Int / Float | 14 / 0.5 | Volatility lookback and multiplier applied outside the zone boundary for Stop Loss. |
| Entry / SL / TP | Enable Maximum SL Cap & Distance ($) | Bool / Float | true / 3.0 | Caps Entry-to-SL distance in price units by adjusting Entry toward SL when exceeded. |
| Entry / SL / TP | Risk : Reward & Enable Take Profit | Float / Bool | 2.5 / true | Sets TP distance relative to final risk distance and toggles TP visualization. |
Click any image to open the full-resolution lightbox preview.
Baseline Pine Script v6 indicator with 2x2 cyan/navy brand panel, confirmation filters, zone creation, Entry Region, ATR SL cap, and 6 alerts.
Adds Master Candle both-wick minimum input and deterministic zone-source priority to avoid runtime errors when multiple toggles are selected.