SATTAM | Lost Balance | Digital LevelsOVERVIEW
Lost Balance plots a price grid derived from digit-sum arithmetic on a swing pivot, then looks for break-and-retest entries at those levels with a full risk map attached.
The idea is that a market's reaction distances are not arbitrary: the digits of a significant swing price are reduced to a single root number, and that root selects one of three fixed spacing "families". Every level in the grid sits an exact multiple of that spacing away from the pivot.
HOW IT WORKS
1 — Core code
The script finds the most recent confirmed pivot high or low on a higher timeframe. It takes the first four digits of that price from the left (ignoring the decimal point), adds them, then reduces the sum to a single digit between 1 and 9.
Example: pivot 4065.33 → 4065 → 4+0+6+5 = 15 → 1+5 = 6. Core code = 6.
2 — Family law
The core code selects the grid spacing:
• codes 1, 4, 7 → family 12 → 12.0 price units
• codes 2, 5, 8 → family 15 → 15.0 price units
• codes 3, 6, 9 → family 18 → 18.0 price units
3 — Level grid
From the pivot, the script draws N levels above and N below, each exactly one family step apart. The pivot line itself is highlighted.
4 — Structure filter
Market bias is read from the same higher timeframe using swing sequence: higher high plus higher low is bullish, lower high plus lower low is bearish, anything else is neutral. Longs are only allowed in a bullish structure, shorts only in a bearish one, and no signals are produced when structure is neutral.
5 — Entry
On the chart timeframe, a signal requires two events in order. First a candle closes through a grid level. Then price returns to that same level and closes back in the direction of the break. The setup is discarded if price closes back on the wrong side, or if the retest does not occur within the configured bar window.
6 — Risk map
Entry is placed at the broken level itself, which makes every distance a whole number of family steps:
• Stop loss — one step back (the previous level)
• Target 1 — one step forward, 1:1
• Target 2 — two steps forward, 1:2
• Target 3 — three steps forward, 1:3
A red box marks the risk zone and a green box the reward zone. When Target 1 is touched, a "SL → BE" marker appears and the script switches its own stop tracking to breakeven.
SETTINGS
• Level timeframe — where the pivot and grid come from (15 / 30 / 60 / 120 / 240)
• Pivot length — left/right bars required to confirm a swing
• Manual pivot price — type a swing price yourself to override auto-detection
• Levels per side — how many grid lines to draw above and below
• Structure filter — enable or disable the directional filter
• Max bars to wait for retest — how long a break stays valid
• Enable Target 3
• Colors for levels, pivot, risk zone and reward zone
An on-chart table shows the pivot price, its first four digits, the digit sum, the core code, the family, the step in price units, and the current structure.
ALERTS
Four alerts are available through "Any alert() function call": long signal, short signal, Target 1 touched (move stop to breakeven), and stop loss hit.
HOW TO USE
Open a 3-minute chart, leave the level timeframe on 60 minutes, and wait for the grid and structure to settle. When a signal prints, the entry, stop and targets are already drawn at exact grid prices — no measuring required.
IMPORTANT NOTES
The family steps of 12, 15 and 18 are absolute price units, not percentages or ATR multiples. This makes the script meaningful on gold, where those values correspond to 120, 150 and 180 points, and meaningless on instruments quoted at a very different scale such as major FX pairs. Adjust your expectations accordingly, or use the manual pivot input to experiment.
The source method does not define how market structure should be measured, so a standard swing-sequence read is used here. It can be turned off if you prefer to set the bias yourself.
Only one position is tracked at a time. A new signal is not accepted until the current one resolves at its stop or final target.
This script draws levels and setups for study and execution assistance. It does not place orders and it is not financial advice.
CREDITS
The digital-levels method — core code extraction, the three spacing families, and the step-based stop and target map — comes from the "Lost Balance" chapter of the SOVEREIGN trading book. The Pine implementation, structure filter, break-and-retest state machine and trade tracking are original work.
نظرة عامة
يرسم المؤشر شبكة أسعار مشتقة من جمع أرقام سعر بيفوت، ثم يبحث عن دخول بكسر وإعادة اختبار عند تلك المستويات مع خريطة مخاطرة كاملة.
آلية العمل
1. الشفرة المركزية — يرصد آخر قمة أو قاع مؤكد على فريم أعلى، يأخذ أول 4 أرقام من اليسار، يجمعها، ثم يبسّط الناتج لرقم واحد بين 1 و 9.
مثال: 4065.33 ← 4065 ← 4+0+6+5 = 15 ← 1+5 = 6.
2. قانون العائلات — الشفرات 1-4-7 تعطي عائلة 12، والشفرات 2-5-8 عائلة 15، والشفرات 3-6-9 عائلة 18. وهذه هي المسافة الثابتة بين المستويات.
3. الشبكة — من البيفوت تُرسم مستويات فوق وتحت، المسافة بينها خطوة العائلة بالضبط.
4. الهيكلة — قمة أعلى مع قاع أعلى = صاعد، وقمة أدنى مع قاع أدنى = هابط. الشراء مسموح في الصاعد فقط والبيع في الهابط فقط، ولا إشارات في العرضي.
5. الدخول — إغلاق شمعة خارج المستوى، ثم عودة السعر للمستوى نفسه وإغلاقه في اتجاه الكسر.
6. خريطة المخاطرة — الدخول عند المستوى المكسور، والوقف عند المستوى السابق، والأهداف الثلاثة عند المستويات التالية بنسب 1:1 و 1:2 و 1:3. عند لمس الهدف الأول يظهر وسم SL → BE.
ملاحظة مهمة
خطوات العائلة (12 و 15 و 18) قيم سعرية مطلقة وليست نسباً، فهي ذات معنى على الذهب حيث تعادل 120 و 150 و 180 نقطة، وبلا معنى على أدوات ذات تسعير مختلف كلياً مثل أزواج العملات الرئيسية.
المؤشر أداة رسم ومساعدة تنفيذ، لا ينفّذ أوامر ولا يُعد نصيحة مالية.
المصدر
منهج المستويات الرقمية مأخوذ من فصل "التوازن المفقود" في كتاب SOVEREIGN. التنفيذ بلغة Pine وفلتر الهيكلة وآلة حالة الكسر وإعادة الاختبار ومتابعة الصفقة عمل أصلي. Indicator

Range Budget [AFD]
Range Budget answers one question at a glance: **how much of a
typical session's range has today already used?**
A day that has spent 40% of its typical range and a day that has spent 130% are different trading environments. This indicator measures which one you are in, from this chart's own price history, and says so in one number, onecolour, and one word.
###What it does###
- **Headline percentage** — today's realized range so far, divided by thetypical completed-session range. Never clamped: a wide day reads 130%, not100%.
- **State word and meter** — ROOM → PAST HALF (50%) → NEAR FULL (80%) → OVER
TYPICAL (100%). The word, the meter and every state colour come from the same thresholds, so they cannot disagree.
- **Envelope levels** — session low + typical range, and session high − typicalrange, drawn as glowing lines with a gradient band between them. Aconditional identity, not a projection: IF the session finishes at itstypical size AND the low holds, the high lands exactly on the upper level. Once the day crosses its typical range, the levels take the state colour.
- **Percentile ladder** (optional) — where a finished day of each size (p25 /p50 / p75 / p90 of the lookback window) would top out, measured up fromtoday's low. Nearest-rank percentiles: every rung is a session range thatactually occurred, never an interpolation.
- **Dashboard** — distance left to (or past) typical in both price points andpercent, how many of the last N sessions ran wider than typical, and optional detail rows (range so far, typical range, percentile standing,widest/narrowest, envelope and ladder values). Compact by default; everycryptic cell explains itself on hover; the whole panel can be switched off.
###How it works###
- **Typical range is user-selectable**, and the chart always names the activestatistic:
- **ADR** — the average of the last N completed session ranges (high − low).
- **ATR RMA** — the average true range, so overnight gaps count. Seeded withthe first true range rather than an initial SMA, which is why it is labelled "ATR RMA" and will not match `ta.atr()` to the last digit. Under ATR the numerator is the live session's true range too, so the percentageis never a ratio of two different measures.
- **Median** — the middle completed session range, which is also theladder's p50 rung.
- The three are identical on a symbol that never gaps and diverge as gaps grow — on heavily gapping symbols ATR can run near 2.5× ADR. That is why the choice exists and why the active one is named on the chart.
- **Completed sessions only.** The live day never feeds its own denominator —a partial day would drag the typical range down as the day progressed and bias the percentage upward with no symptom. Statistics update when a session completes; the live day contributes only its running range.
- **One session rule for everything.** Regular hours or regular + extended:history and the live day follow the same rule, and if the filter cannot change anything on your chart (no extended-hours bars loaded), the dashboard says so instead of staying silent.
- **The sample is what your chart holds.** n is capped by the sessions actually loaded — roughly 64 completed regular-hours sessions on a 5-minute chart from 5,000 bars on a Basic plan, more on higher plans and higher timeframes. The dashboard shows the n actually in use, plus a spread figure ((p90 − p25) ÷ p50) that says whether recent sessions were similar in size
or mixed.
- Eleven plotted values sit in the Data Window (percentage, ranges, envelope percentiles, sample size and more), so every number on the panel can be read, checked and exported.
###How to use it###
1. Add it to a liquid intraday chart. The defaults are the intended reading: compact dashboard, ADR(20), regular hours.
2. Read the headline first. ROOM means the day is still small next to its recent finished sessions; OVER TYPICAL means it has already run further than a typical one.
3. Use the envelope as context for the day's remaining room under the stated conditions — the tooltip on every input spells those conditions out.
4. Turn on the ladder to see today against the whole recent distribution instead of one average: price between p50 and p75 means today has already matched a mid-sized finished day.
5. Hover the bottom row of the dashboard whenever a figure is unclear — the statistic, the sample and any active caveat (gap counted, filter inert, no completed session yet) are explained there.
###What it deliberately does not do###
**Realized range from OHLCV — not an implied or expected move.** Every number is measured from this chart's own price history. Nothing comes from options pricing, and the typical range describes completed sessions — a description of what happened, not a statement about what happens next.
- No alerts, no signals, no entries or exits.
- Counts stay counts — "Sessions over typical: 4 of last 20" describes this chart's history, and the indicator never converts a count into odds.
- The percentage is never capped at 100%, because a day past its typical range is the most informative reading the tool produces.
###Why it is original###
Range tools usually hand you one number (an ADR level pair) or one overlay (an ATR band). Range Budget treats the session range as a budget and reports its consumption: one percentage against a user-chosen, chart-named statistic, computed from completed sessions only, with its sample size, its spread and every degeneracy disclosed on the panel itself. The three statistics are not interchangeable and the tool is built around that fact rather than hiding it: the active one is named on the chart, the ATR path measures true range on both sides of the ratio, and the ladder shows the whole recent distribution so one average never has to stand in for it.
Open source under the Mozilla Public License 2.0. All calculations are native
Pine v6 — no security() calls, no external data. Indicator

Virgin RTH Levels with Alerts# Virgin RTH Levels with Alerts
If you're looking to trade breakouts or breakdowns and/or fake-outs without having to be glued to the screens, or manually drawing the levels every day, then this is the script for you!
## What it does
This indicator automatically marks the Regular Trading Hours (09:30–16:00 New York) High and Low of every prior day — plus the prior day's Halfback (50% of the RTH range), prior week's and prior month's RTH High/Low, and the year-to-date RTH High/Low — and keeps each level on the chart only while it remains **virgin**.
A level is *virgin* if price has never traded back to it during a subsequent RTH session. These untested levels often act as magnets and reaction zones: old session extremes that were never revisited during regular hours tend to get sought out later, and the first touch frequently produces a tradeable reaction.
## The core rule: RTH touches clear, ETH touches alert
The defining feature of this script is how it separates the two sessions:
- **Touch during RTH (09:30–16:00 NY):** the level is considered tested. An alert fires and the level is removed from the chart (or optionally kept as a dotted line).
- **Touch during ETH (overnight/extended hours):** an alert fires so you know price is interacting with the level, but **virgin status is preserved** — only regular-session trade can "spend" a level.
This lets you run alerts around the clock on futures and extended-hours equities while keeping the level logic strictly RTH-based.
## Levels drawn
- **PDH / PDL** — each prior day's RTH High and Low (all of them, as far back as your lookback setting)
- **PD50** — prior day's Halfback: the midpoint of the prior day's RTH range
- **PWH / PWL** — prior weeks' RTH High and Low (thicker line by default)
- **PMH / PML** — prior months' RTH High and Low (thicker still)
- **YTDH / YTDL** — the year's running RTH High and Low (thickest). These update in place as new yearly extremes are made and reset at the new year.
Every line begins at the 09:30 open of the session that created it and extends right until it is touched during RTH. Optional labels show the level name and price.
## Alerts
Create one alert on the indicator and choose either:
- **"Any alert() function call"** — one alert covers everything, with dynamic messages naming the symbol, the exact level (e.g. "virgin PWH 7,554.00"), the session it was touched in, and whether the level was cleared or preserved.
- **A specific condition** — twelve individual conditions are available: any level (any session / RTH only / ETH only), Prior-Day High, Prior-Day Low, Prior-Day Halfback, Prior-Week High/Low, Prior-Month High/Low, and YTD High/Low. Messages are fully editable and support PulseWire placeholders such as {{ticker}} and {{close}}.
Alerts fire in **all** sessions, so overnight tags of untested levels reach you even though they do not clear the level.
## Settings
- **Session** — RTH window and timezone are configurable (defaults 09:30–16:00 America/New_York), so the script works on any instrument and any regular session definition.
- **Lookback** — how far back to keep levels: trading days for daily levels (minimum 1 = prior session only), weeks for weekly, months for monthly.
- **Visuals** — independent color, line width (1–10), and line style (solid/dashed/dotted) for each of the nine level types; label on/off and label size; toggles for weekly, monthly, YTD, and Halfback levels; option to keep touched levels as dotted lines instead of deleting them.
- **Alerts** — RTH and ETH touch alerts can be enabled independently.
## How it works
The script accumulates the High/Low of each RTH session bar-by-bar using the configured session and timezone (it does not rely on higher-timeframe requests, so levels match exactly what printed during regular hours on your chart's symbol). When a session, week, or month completes, its extremes are stored as level objects and drawn from that period's 09:30 anchor. On every bar, each stored level is checked against the bar's range: an RTH touch clears it, an ETH touch only alerts. Weekly levels finalize at the first bar of the new week, so on futures they are already in place for the Sunday evening open.
## Usage notes
- Use an **intraday** chart. For ETH alerts, enable extended hours on the chart; on an RTH-only chart the script still works, but ETH touches obviously cannot fire.
- If long lookbacks distort your price scale, right-click the price scale and enable **"Scale price chart only"** — the chart will fit the candles and ignore the lines.
- Works on futures, stocks, and ETFs; set the session/timezone to match your instrument's regular hours. Indicator

Flag Pattern Breakout [Dots3Red]█ FLAG PATTERN BREAKOUT
This script detects bull and bear flag patterns using two structural components: the staff (the impulsive pole) and the edge (the consolidation channel). Rather than relying on generic pivot-to-pivot zigzag lines, both components are built from regression-fitted geometry so the drawn shapes reflect the actual price structure rather than an approximation.
█ THE STAFF
The staff is the sharp, near-straight-line impulsive move that starts a flag. Two checks work together to identify it:
Structural continuity — instead of checking candle color (green vs red), the script checks whether each bar's wick still overlaps the bar before it. For a rising staff, a bar whose high fails to reach the previous bar's low counts as a break in the move. This catches genuine gaps in the advance while tolerating a normal red pullback candle that still overlaps the prior bar.
Straightness (R²) — a linear regression is fit through the closing prices of the candidate window, and its R² (coefficient of determination) is required to clear a minimum threshold (default 0.85). An R² of 1.0 would mean the closes sit exactly on a straight line; lower values reflect real curvature. Since real price data rarely produces a perfectly straight move, the threshold is adjustable rather than fixed at 1.0.
The search checks the longest possible window first and works down to shorter ones. A long window is only accepted if it clears both the wick-overlap test and the R² threshold — so the result favors the longest staff that still qualifies as straight, rather than the first short segment that happens to pass.
The staff line itself is drawn using the actual price at the two boundary bars (not the highest/lowest price found anywhere inside the scanning window), so it sits flush against the real candle wicks at both ends.
█ THE EDGE
The edge is the flag itself — a channel that runs opposite to the staff's direction. It is built as follows:
Slope — a running linear regression is fit through the highs (for a bull flag's falling edge) or the lows (for a bear flag's rising edge) of every bar since the staff ended. This produces one slope value that updates each bar as more data arrives.
Direction and steepness constraints — the edge's slope must run opposite to the staff (negative for a bull flag, positive for a bear flag) and must be shallower than the staff's own slope by a configurable ratio (default 60%). A flag that slopes as steeply as its pole is not behaving like a consolidation.
Width cap — the vertical distance between the tracked high and low extremes of the edge cannot exceed a percentage of the staff's height (default 60%). This is measured in absolute price distance, not bar count, so a slow-forming edge and a fast-forming edge are held to the same physical size constraint.
Breakout confirmation — the pattern is not finalized as soon as it meets minimum criteria. It keeps extending, bar by bar, for as long as price stays inside the channel. Confirmation only happens when price closes beyond the channel boundary by a configurable ATR buffer, in the direction that continues the original staff move (upward for a bull flag, downward for a bear flag). This means the edge is drawn at its full, longest actual duration rather than being cut short at an arbitrary minimum.
Envelope construction — once a pattern confirms, the two boundary lines are built by taking the regression-fitted line and shifting it by the maximum deviation observed on each side across every bar in the edge. The upper boundary is shifted up by the largest high-to-line distance seen; the lower boundary is shifted down by the largest line-to-low distance seen. Both lines share the identical slope, so they are parallel by construction, and together they contain the full price range of the consolidation rather than only touching two points.
█ VISUALS
The staff is drawn with a glow layer behind a sharp core line, color-coded green for bull and red for bear. The edge channel is filled with a soft translucent tint between its two boundary lines. A label at the breakout point shows the staff's height in ATR units, the edge's duration in bars, and the channel's width in ATR units.
█ SETTINGS
Staff
• Min Staff Height (×ATR) — minimum impulsive move size relative to ATR
• Min/Max Staff Duration (bars) — bounds on how many bars the staff can span
• Max Opposite-Direction Bars — structural wick-overlap tolerance
• Min Straightness (R²) — how closely the staff must fit a straight line
Edge
• Min Bars Before Breakout Eligible — minimum edge duration before a breakout can confirm
• Max Edge Duration (bars) — safety cap; abandons the pattern if no breakout occurs in time
• Max Channel Width (% of Staff Height) — absolute-distance cap on the edge's vertical size
• Max Edge Slope (× staff slope) — how much shallower the edge must be than the staff
• Min Edge Slope (×ATR per bar) — minimum slope magnitude so the edge counts as genuinely sloped
• Breakout Buffer (×ATR) — margin required beyond the boundary to confirm a breakout
█EXAMPLE ( DAILY APPLE STOCK )
█ NOTES
Because confirmation only happens at breakout, the pattern appears on the chart once the move has already resumed — this script identifies completed flag-and-breakout structures for review and study, not an early-warning signal before the breakout occurs. Works on any timeframe; behavior depends on how the ATR-based thresholds interact with the instrument's typical volatility.
However (!), with the ATR Breakout setting, it is possible to set a lower value, and by doing so we might "anticipate" Flag Development and consequent Breakout.
█ DISCLAIMER
This is a pattern visualization tool. It does not generate trade signals and does not constitute financial advice. Historical pattern detection does not guarantee that similar structures will behave the same way in the future. Indicator

crypto signals -Breakout Targets# 🚀 Crypto Signals (Breakout Targets)
**Crypto Signals (Breakout Targets)** is an enhanced breakout trading indicator designed to identify high-probability breakout opportunities while providing automatic trade management with multiple profit targets and a dynamic stop loss.
This version is based on the original open-source **Breakout Targets** indicator by **AlgoAlpha**, with numerous enhancements focused on customization, usability, performance tracking, and professional alert automation.
---
## ✨ Features
✅ Automatic detection of bullish and bearish breakout opportunities.
✅ Up to **3 configurable Take Profit levels (TP1, TP2, TP3).**
✅ Dynamic Stop Loss calculated using **ATR** or **Percentage (%).**
✅ **Auto Symbol Profiles** for storing different settings across multiple trading pairs.
✅ Advanced Statistics Dashboard displaying:
* Win Rate
* Total Winning Trades
* Total Losing Trades
* Net Performance
* TP1 / TP2 / TP3 Statistics
✅ Fully customizable colors and display settings.
✅ Clean and intuitive chart visualization suitable for all timeframes.
---
## 🔔 Smart Alert System
The indicator includes a professional built-in alert system fully compatible with **PulseWire Alerts**, making it easy to integrate with Telegram bots, Discord, webhooks, or automated trading systems.
Available alert events:
* 🟢 Buy Signal
* 🔴 Sell Signal
* 🎯 TP1 Hit
* 🚀 TP2 Hit
* 🏆 TP3 Hit
* 🛑 Stop Loss Hit
Each alert is delivered in a clean, mobile-friendly format and includes essential trade information such as the trading pair, timeframe, entry price, target levels, and stop loss, allowing traders to monitor positions efficiently in real time.
---
## 📈 How It Works
The indicator continuously analyzes price action to identify potential breakout opportunities.
Once a breakout is confirmed, it automatically plots:
* Entry Price
* Stop Loss
* Take Profit 1 (TP1)
* Take Profit 2 (TP2)
* Take Profit 3 (TP3)
The trade is then monitored automatically while the statistics dashboard keeps track of overall performance and target achievements.
---
## 🎯 Best For
* Cryptocurrency
* Forex
* Stocks
* Indices
The indicator works on all timeframes and delivers the best results when combined with proper market structure analysis, confirmation tools, and sound risk management.
---
## 🙏 Credits
This project is based on the open-source **Breakout Targets** indicator created by **AlgoAlpha**.
The original concept has been extended with additional features, profile management, enhanced dashboards, professional alerts, customization options, and various usability improvements while respecting the original open-source license and giving full credit to the original author.
---
# ⚠️ Disclaimer
This indicator is provided for **educational and informational purposes only**.
It does **not** constitute financial or investment advice and should not be interpreted as a recommendation to buy or sell any financial instrument.
Trading financial markets involves substantial risk and may result in the partial or total loss of your capital. Always perform your own analysis, use proper risk management, and never rely solely on any indicator when making trading decisions.
Past performance does **not** guarantee future results.
Indicator

Adaptive Trend Rails [NICK789]Adaptive Trend Rails
OVERVIEW
Adaptive Trend Rails is a market-structure and break-and-retest framework built around one shared price channel. It is designed to answer four practical questions:
1. Which direction currently controls the chart?
2. What exact price level would confirm continuation or a trend change?
3. Is pressure building against the active trend before that change is confirmed?
4. Has price completed a valid breakout, retest and rejection sequence that can be turned into a structured trade plan?
This is not a collection of unrelated indicators placed on the same chart. The rail engine is the foundation of the script, and every additional component—equilibrium, reversal pressure, trend-change quality, multi-timeframe context and the break-and-retest plan—uses information derived from that same structure.
CORE RAIL ENGINE
The script builds an upper and lower rail from the highest high and lowest low of an adaptive lookback. The lookback changes according to the chart timeframe, while the user-selected Narrow, Medium or Wide setting adjusts how quickly the rails react.
A bullish break occurs when price crosses above the previous upper rail. A bearish break occurs when price crosses below the previous lower rail.
The script then classifies each break according to the existing trend state:
• A break in the current direction is treated as continuation.
• A break against the current direction is treated as a trend change.
Because the decision level is taken from the previous rail value rather than the rail currently expanding with price, users can see the actual level that must be crossed. The live “Continue?” and “Trend Change?” guides therefore act as decision levels, not predicted targets.
ADAPTIVE EQUILIBRIUM
The centre line is not a simple midpoint or fixed moving average.
First, the script measures where price is positioned between the active upper and lower rails. That normalized position is then smoothed using EMA and volume-weighted information, with a WMA fallback when volume-weighted data is unavailable. The accepted position is shifted toward the centre and constrained so the equilibrium cannot sit directly on the outer rails.
The resulting line represents an adaptive accepted-value area inside the current structure.
Equilibrium is used throughout the script:
• Its slope helps determine whether internal momentum is rising or falling.
• Its curl helps identify a possible change in pressure.
• Retest plans require price to remain on the correct side of equilibrium.
• Optional entry filtering can require equilibrium to slope in the proposed trade direction.
• A pending retest is cancelled when price loses the required equilibrium relationship.
For this reason, equilibrium is part of the calculation engine and not merely a decorative average.
REVERSAL-PRESSURE WARNINGS
The yellow reversal dots are early warnings, not reversal signals.
While a trend is active, the script measures opposing pressure using a weighted combination of:
• Candle closing location
• Upper or lower wick rejection
• Directional candle-body strength
• Relative volume participation
• Relative candle-range expansion
• Equilibrium slope or curl
• Price location within the rail structure
A bearish warning is only considered while the rail trend is bullish and price is positioned in the upper portion of the structure. A bullish warning is only considered while the rail trend is bearish and price is positioned in the lower portion.
The warning means pressure is building against the current trend. It does not change the trend by itself. Price must still close through the displayed Trend Change level before the rail state is considered reversed.
A cooldown is applied to prevent repeated warning dots from being printed on every nearby candle.
TREND-CHANGE QUALITY
When a confirmed trend change occurs, the script assigns a compact quality reading based on the breakout candle.
The score combines:
• Relative volume
• Relative candle range
• Directional body strength
• Closing location in the breakout direction
The resulting label is shown as Weak, Moderate, Good or Strong.
The tooltip also describes the character of the breakout, such as Clean Break, Expansion, Absorption, Weak Close or Low Participation. This is intended to provide context, not to guarantee that a strong-rated break will continue.
MULTI-TIMEFRAME CONTEXT
The horizontal trend strip rebuilds the same rail-state method across nine timeframes:
1 minute, 5 minutes, 15 minutes, 30 minutes, 1 hour, 2 hours, 4 hours, 1 day and 1 week.
This is important because the table is not mixing unrelated moving-average or oscillator definitions. Every timeframe is evaluated with the same upper-rail/lower-rail breakout method used on the chart.
The script also assigns a practical paired timeframe to the active chart—for example, a 1-minute chart is paired with 5 minutes, a 5-minute chart with 15 minutes, and a 15-minute chart with 1 hour.
Paired-timeframe information is warning-only. It does not silently block, delay or change an entry. When a plan triggers against the paired rail trend, the table and dedicated alert identify that conflict so the trader can make the final decision.
BREAK-AND-RETEST PLAN
The optional trade-plan engine does not enter immediately when a rail breaks.
Its sequence is:
1. Price closes through a continuation or trend-change level.
2. The exact broken rail level is stored.
3. Price must return on a later candle and touch or sweep that level.
4. The candle must reject the level and close back through it in the breakout direction.
5. Price must remain on the correct side of equilibrium.
6. Optional filters check equilibrium slope and whether the rail structure is wide enough relative to the configured stop distance.
All confirmed setups are labelled simply as “RETEST” to avoid implying that one setup carries a guaranteed grade or outcome. The tooltip still identifies whether the retest followed a Trend Change or a Continuation break.
The user may enable both setup types or restrict the engine to trend changes, continuations, longs or shorts.
Pending setups expire after the selected number of bars. They are also cancelled when the rail trend changes or price invalidates the required equilibrium relationship. This prevents an old breakout level from remaining armed after its original context has disappeared.
RISK AND PLAN DISPLAY
When a retest entry is confirmed, the script can display:
• Entry level
• ATR-adaptive or fixed-tick stop
• Reward/risk or fixed-tick target
• Active-plan direction
• Target-hit or stop-hit result
The default ATR Adaptive method scales the stop to current volatility and calculates the target from the selected reward/risk ratio. This makes the plan transferable across forex, metals, crypto, stocks and futures even when their price increments differ. A Fixed Ticks mode remains available for traders who intentionally use exchange tick distances on instruments such as futures. All values remain examples and must be adjusted for the instrument, timeframe and personal risk limits.
The tool is an indicator, not an automated strategy. It does not calculate position size, brokerage fees, commissions, spread or slippage, and it does not place orders.
HISTORICAL REVIEW
Historical plans and review statistics are optional and disabled by default.
The review panel counts completed target and stop outcomes visible in the loaded chart data and reports the net result in R-multiples. Replaced plans are excluded. If both the target and stop are touched within the same ordinary chart candle, the script records the stop first because the true intrabar sequence cannot be known from standard OHLC data.
Win rate is hidden until a minimum sample is available. These statistics are intended for chart review and configuration comparison only. They are not a full strategy backtest and should not be presented as expected future performance.
HOW TO USE
A simple workflow is:
1. Select Narrow, Medium or Wide rails according to the desired reaction speed.
2. Read the active rail colour to identify the current structural direction.
3. Use the Continue and Trend Change levels as the prices that would confirm the next structural event.
4. Treat reversal dots as preparation warnings only.
5. Use the quality label to inspect the participation and candle character of a confirmed trend change.
6. Check the multi-timeframe strip for broader alignment or conflict.
7. Enable the Break & Retest Plan when structured retest signals, ATR-adaptive or fixed-tick levels and review tools are required.
8. Adjust stop and target ticks for the traded symbol rather than assuming the defaults fit every market.
DEFAULT DISPLAY
The default view focuses on the rails, adaptive equilibrium, live decision levels, trend-change quality and multi-timeframe context.
Candle colouring, the trade-plan engine, historical plans and review statistics are optional so users can keep the chart clean and enable only the tools relevant to their workflow.
ALERTS
Alerts are provided for:
• Bullish and bearish continuation
• Bullish and bearish trend change
• Bullish and bearish reversal pressure
• Long and short break-and-retest entries
• Entries against the paired timeframe
• Replacement of an unresolved plan by an opposite valid setup
• Target hit
• Stop hit
Confirmed continuation, trend-change and retest-entry alerts are intended for candle-close use. Reversal-pressure warnings are intentionally earlier and should always be treated as unconfirmed until the relevant Trend Change level is closed through.
LIMITATIONS
Adaptive Trend Rails is a structure and planning tool, not a prediction engine.
Rail breaks can fail, strong breakout candles can reverse, and multi-timeframe alignment does not guarantee continuation. ATR-based distances expand and contract with recent volatility, while fixed-tick distances behave differently across instruments and feeds. Historical review results are displayed in R-multiples and depend on the loaded chart, selected settings and available OHLC data.
Users should combine the tool with their own risk management, market-session awareness and execution rules.
ORIGINAL CONTRIBUTION
The original purpose of this script is to turn one adaptive rail structure into a complete decision sequence:
current trend → live confirmation level → opposing-pressure warning → confirmed structural break → quality context → multi-timeframe comparison → delayed retest validation → risk-plan display → optional historical review.
Each component exists to explain or validate another part of that sequence. The script is therefore designed as one integrated framework rather than a mashup of independent indicators. Indicator

HTF Session Sweep ModelHTF Session Sweep Model
The HTF Session Sweep Model is a session-based market structure tool designed to help traders observe how price interacts with the previous confirmed higher-timeframe candle during active trading sessions.
This script was created because session trading can become messy when traders manually mark multiple highs, lows, opens, boxes, sweeps, breakouts, and traps across different timeframes. Instead of adding unrelated indicators together, this model uses one central reference point: the previous confirmed HTF candle. Once an enabled session begins, the script maps that HTF candle’s high, low, midpoint, and optional session open level onto the chart. Price action during that session is then classified around that reference range.
The purpose of the script is not to predict price. The purpose is to provide a clean framework for reading session behaviour around a higher-timeframe range.
Core Concept
The script is built around the idea that the previous higher-timeframe candle can provide useful reference levels for intraday price behaviour. Its high and low can act as areas where liquidity may be taken, where breakouts may develop, or where failed breakouts may occur.
The model does not project the HTF candle before the session opens. It activates when an enabled session opens. At that point, it takes the most recent fully confirmed HTF candle and uses it as the active session reference.
This creates a consistent question for the trader:
How is price reacting around the previous confirmed HTF candle during the current session?
What Makes This Script Original
This script is not designed as a simple combination of unrelated indicators. The components are connected through one session-based model:
1. Session engine
The script allows users to enable Asia, London, and New York sessions. Each session can use its own time window and timezone setting.
2. HTF reference map
At the start of an enabled session, the script maps the previous confirmed HTF candle. This includes the HTF high, low, midpoint, optional candle body, and optional session open level.
3. Sweep model
The script checks whether price sweeps above the HTF high or below the HTF low. Users can choose between a basic wick sweep or a stricter sweep that requires price to close back inside the HTF range.
4. Delivery shift confirmation
After a sweep occurs, the script can wait for a delivery shift confirmation before marking a sweep entry. A bearish confirmation requires price to break below a recent low range after a high sweep. A bullish confirmation requires price to break above a recent high range after a low sweep.
5. Breakout model
If price closes and holds outside the HTF range, the script can classify the move as a breakout. Users can set how many bars price must hold beyond the range.
6. Displacement filter
The breakout model can optionally require stronger candle movement by comparing the candle body against ATR. This helps filter weaker breaks that do not show meaningful displacement.
7. Failed breakout trap model
If price breaks beyond the HTF high or low and then returns back inside the range, the script can classify that move as a failed breakout trap. A Bull Trap means price broke above the HTF high and failed back inside. A Bear Trap means price broke below the HTF low and failed back inside.
These parts work together because they all answer the same question: did price sweep the HTF range, accept beyond it, or fail after breaking it?
How The Script Calculates The Model
When a new enabled session begins, the script requests the previous confirmed candle from the selected higher timeframe. The selected HTF may be adjusted by the user, such as 1H, 2H, 4H, Daily, or Weekly.
The script then stores the following values:
* Previous HTF open
* Previous HTF high
* Previous HTF low
* Previous HTF close
* Previous HTF midpoint
* Current session open
These values become the session reference map.
During the active session, the script checks price against the HTF high and low.
High Sweep:
A high sweep is detected when price trades above the previous HTF high.
Low Sweep:
A low sweep is detected when price trades below the previous HTF low.
Close Back Inside Sweep Mode:
When this stricter mode is selected, a high sweep requires price to close back below the HTF high. A low sweep requires price to close back above the HTF low.
Sweep Entry:
A sweep entry is not triggered by the sweep alone. After a sweep, the script waits for a delivery shift confirmation using the selected lookback length.
Breakout Long:
A breakout long is detected when price closes above the HTF high and holds above it for the selected number of bars.
Breakout Short:
A breakout short is detected when price closes below the HTF low and holds below it for the selected number of bars.
Bull Trap:
A bull trap is detected when price breaks above the HTF high but later closes back below the HTF high.
Bear Trap:
A bear trap is detected when price breaks below the HTF low but later closes back above the HTF low.
Volume Filter:
The optional volume filter compares current volume against a moving average of volume multiplied by the selected volume multiplier. When enabled, sweep and breakout conditions must also pass the volume filter.
Bar Close Confirmation:
The script includes an option to confirm signals only after the bar closes. This is enabled by default to make signals more stable for alerts and historical review.
How To Use This Script
1. Choose the reference timeframe
Select the HTF candle you want to use as the session reference. Intraday traders may use 1H, 2H, or 4H. Higher-timeframe traders may prefer Daily or Weekly.
2. Enable the sessions you trade
The script supports Asia, London, and New York sessions. Users can enable or disable each session and adjust the session window and timezone.
3. Watch the HTF range during the session
Once the session opens, the script draws the previous confirmed HTF candle range. The high and low are the main reaction levels.
4. Read price behaviour around the range
If price sweeps a level and returns inside, it may indicate a liquidity sweep.
If price closes and holds outside the range, it may indicate breakout continuation.
If price breaks outside and then returns inside, it may indicate a failed breakout trap.
5. Use the labels as classifications, not automatic trade commands
The labels are designed to classify price behaviour. They are not guaranteed buy or sell signals.
6. Combine with your own confirmation
Users should combine this model with their own market context, risk management, higher-timeframe bias, and execution plan.
Main Visual Elements
HTF Range Box:
Shows the previous confirmed HTF candle range during the active session.
HTF Candle Display:
Optionally displays the previous HTF candle body and wick on the chart.
High and Low Lines:
Marks the previous HTF high and low.
Midpoint Line:
Marks the midpoint of the HTF range.
Session Open Line:
Marks the price at the open of the active session.
Sweep Marks:
Marks when price sweeps above or below the HTF range.
Sweep Entry Marks:
Marks when a sweep is followed by delivery shift confirmation.
Breakout Marks:
Marks when price closes and holds outside the HTF range.
Trap Marks:
Marks failed breakout conditions as Bull Trap or Bear Trap.
Dashboard:
Optional compact dashboard showing the current session, HTF reference, confirmation mode, state, high, low, and midpoint.
Important Settings
Reference HTF Candle:
Controls which higher timeframe is used for the previous confirmed candle reference.
Sweep Mode:
Choose between Wick Sweep or Wick Sweep + Close Back Inside.
Confirm Signals On Bar Close:
When enabled, signals confirm after candle close. This is recommended for cleaner historical review and alerts.
Delivery Shift Lookback:
Controls how many bars are used to confirm a shift after a sweep.
Breakout Hold Bars:
Controls how many bars price must remain outside the HTF range before a breakout is confirmed.
Displacement Filter:
Requires the candle body to be large enough compared with ATR before confirming a breakout.
Volume Filter:
Optional filter requiring current volume to exceed average volume by the selected multiplier.
Keep Historical Sessions:
When disabled, the chart stays cleaner by only showing the current/latest session map. When enabled, historical session maps can remain visible, with a limit to reduce chart clutter.
Visual Modes:
Clean mode is designed for normal use.
Stealth mode reduces visual intensity.
Debug mode makes internal reference levels easier to inspect.
Alerts
The script includes alert conditions for:
* HTF high swept
* HTF low swept
* Sweep short
* Sweep long
* Breakout long
* Breakout short
* Bull trap
* Bear trap
* Master alert for any model event
The master alert is included so users can create one alert condition instead of setting up many separate alerts.
Recommended Use
This script is best suited for traders who use session timing, higher-timeframe ranges, liquidity sweeps, breakout continuation, and failed breakout concepts.
It may be useful on intraday charts where Asia, London, and New York session behaviour matters. It can also be adjusted for different markets and timeframes by changing the reference HTF and session settings.
Limitations
This script does not predict future price movement. It classifies how price behaves around the previous confirmed HTF candle during active sessions.
A sweep does not guarantee a reversal.
A breakout does not guarantee continuation.
A trap does not guarantee a full trend change.
Volume data may behave differently depending on the market and symbol.
Session behaviour can vary across forex, crypto, futures, indices, and stocks.
This tool should be used as a market structure framework, not as a standalone trading system.
Originality And Usefulness Statement
The originality of this script is in how it combines session timing, previous confirmed HTF candle mapping, sweep classification, breakout confirmation, and failed breakout detection into one connected workflow.
The script is useful because it gives traders a structured way to observe whether price is taking liquidity, accepting outside a higher-timeframe range, or failing after a breakout attempt. Each component supports the same central model rather than acting as an unrelated indicator mashup.
Disclaimer
This indicator is for educational and analytical use only. It is not financial advice and does not guarantee trading results. Users are responsible for their own trading decisions, testing, and risk management.
Indicator

Strong Range Breakouts | ProjectSyndicateStrong Range Breakouts
Strong Range Breakouts power-ranks the consolidations your market keeps coiling into — and tells you, before the move, which one is loaded and which way it's likely to break. For every tightening range it builds a clean, equal-logic zone, scores that consolidation 0–10 from real, measurable compression quality, and stamps a directional probability on it (▲ likely UP / ▼ likely DOWN). It then projects Buy-Stop / Sell-Stop breakout levels with a buffer and full SL / TP1 / TP2 / TP3 targets — and tracks every breakout's outcome live in a win-rate dashboard, so the chart is constantly grading its own edge instead of asking you to take it on faith.
🎯 Power-Ranking System (0–10) — every consolidation earns a live grade from five sign-stable, self-calibrating factors: trend flatness (ADX percentile — is the market genuinely going nowhere?), volatility squeeze (Bollinger-width percentile — is range compressing vs its own recent history?), range tightness (N-bar range percentile — how coiled is price?), volume dry-up (low participation = accumulation), and price balance (RSI sitting near 50 = no directional pressure yet). Each factor is a smooth percentile rank, not a crude on/off flag, so the score spreads cleanly across the full 0–10 range and adapts to any instrument with no re-tuning. Prototyped and validated across FX datasets (EUR/USD, GBP/USD, USD/CHF) — higher-scored ranges produced cleaner, higher-win-rate breakouts than low-scored ones, so the number reflects genuine edge, not decoration.
🧭 Directional Probability — each zone carries a live ▲/▼ breakout bias built from where price sits in the range, top-vs-bottom edge-touch asymmetry, time spent in the upper vs lower half, and momentum lean. In validation this prediction landed correct 77–81% of the time vs a 50% coin-flip — so the bias on the box is a real tell, not a guess.
🏷️ Strength-Rank Label Above Every Box — each range carries its grade on top of the zone, impossible to miss: stars · X.X/10 · tier (FORMING → MODERATE → STRONG → VERY STRONG → ELITE) plus the directional bias. Quality and likely direction read instantly, no separate panel needed.
🎨 Direction-Coloured, Strength-Shaded Zones — boxes are tinted by their predicted break direction (bullish-bias teal, bearish-bias red/purple), and the shade deepens with strength tier, so the chart shows which ranges carry weight and which way they lean before you read a single number. The label freezes tinted to the actual break direction once it fires.
🚧 Buy / Sell Stop & SL / TP Levels — dashed Buy-Stop and Sell-Stop lines sit a configurable buffer beyond each range edge to define a genuine breakout. On a fired breakout the indicator projects a structure- or ATR-based Stop-Loss and TP1 / TP2 / TP3 at your chosen R-multiples, framing the trade the moment it triggers.
📊 Live Win-Rate Dashboard — an institutional gold-on-dark panel that tracks outcomes, not just signals: overall win rate (with █░ meter), total breakouts, wins/losses, Long WR vs Short WR, Strong-Zone WR (≥8), TP1/TP2/TP3 hit counts, expectancy (R per trade), total R, best/worst streak, the live zone score meter, and the current breakout bias. You see the system's measured performance on your symbol and timeframe in real time.
🔒 Non-Repainting — all detection and scoring run only on confirmed candles. A zone forms, extends, and breaks on closed-bar logic; once a breakout fires the level and its label lock in and never repaint.
🔔 Native Alerts — fires on a confirmed Buy breakout and Sell breakout, with the zone's score and entry level embedded in the message, so you're notified the instant a graded range gives way.
🔧 Fully Customizable — minimum score to display, minimum/maximum range span, scoring weights for all five factors, breakout confirmation (close vs wick), stop buffer, SL basis (opposite edge / zone mid / ATR), the three R-multiple targets, what counts as a "win" (TP1/2/3), the full institutional colour palette, transparency, label size, and dashboard position/size — all adjustable.
🎯 Why this is different — most "breakout" tools draw a box and fire an arrow the moment price pokes out, with no sense of whether the range was even worth trading or which way it should go. Strong Range Breakouts quantifies the consolidation first, predicts the direction, frames the trade, and then keeps score — so a high-grade zone with a strong bias is one to trade with, and a low-grade or counter-bias break is one to treat with suspicion. The validation behind the score even informs how you trade each one (see below).
🚀 Apply to Gold (XAUUSD), Silver, Forex, Crypto, and Indices on any intraday or higher timeframe.
🎯 How To Trade It — Quick Overview
The score decides whether a setup is worth taking; the directional bias decides which way; the levels frame the trade. In validation, high-scored ranges broke cleaner and counter-bias breaks failed more often — so play them differently.
1) Trade-With Breakout (the primary play) — use on STRONG / ELITE zones (≥7) that break with their bias
Best when a range is rated STRONG or ELITE and the breakout fires in the same direction the ▲/▼ bias predicted.
Wait for a confirmed close beyond the Buy-Stop (long) or Sell-Stop (short) line — not a single wick.
Confirmation is strongest when the break direction matches the zone's directional bias (the ~77–81% edge).
Entry: on the close beyond the stop level, or on a retest of the broken edge (broken top flips to support; broken bottom flips to resistance).
Stop: the projected SL (opposite range edge / zone mid / ATR — your choice).
Targets: TP1 first (in testing TP1 hit by far the most often — bank or de-risk there), then trail toward TP2 / TP3 as the move extends.
Use the Buy/Sell breakout alert to catch the trigger the moment a graded range gives way.
2) Fade the False Break — use on WEAK / MODERATE zones, or breaks against a strong bias
Best when a low-scored range pokes out, or price breaks opposite to a high-confidence bias — statistically the more likely failure.
Wait for price to push just beyond the range edge and fail to hold (no decisive close beyond, momentum stalling).
Entry: on the reversal back inside the range (a close back through the broken edge).
Stop: just beyond the level that was swept — if price reclaims and holds it, the fade is wrong and it's a real breakout.
Targets: the opposite range edge first, then the measured range height.
Rule of thumb: ⭐ STRONG/ELITE + break with bias → trade the breakout. ⭐ WEAK/MODERATE, or break against a strong bias → suspect a trap, fade it. Let the dashboard win-rate on your symbol tell you which behaviour is paying on the instrument you actually trade.
⚠️ IMPORTANT NOTICE: This indicator power-ranks consolidations, predicts likely breakout direction, and frames breakout-vs-fade scenarios. It should NOT be used as a standalone signal for entering trades. The dashboard statistics are measured on historical, closed-bar data and describe past behaviour only. Always combine it with your own strategy, price-action analysis, and risk management to confirm setups. Past statistical behaviour does not guarantee future results. Indicator

Pullback Sniper Method [trade_w_samet]🎯 Pullback Sniper Method
Pullback Sniper Method is a free open-source pullback, breakout, and trade-visualization indicator designed to help traders analyze structured trend-continuation setups directly on the price chart.
This script combines:
📈 EMA-based trend context
🚀 breakout detection
🎯 pullback confirmation logic
✅ Fast / Balanced / Strict confirmation modes
🧠 optional McGinley and RSI filters
📦 ATR-based TP/SL projection boxes
🎯 TP1 / TP2 / TP3 tracking
🛑 SL tracking
🏷️ result labels
⭐ signal quality tooltip information
📊 statistics table
💎 premium-style dashboard
🎨 multiple visual themes
🚨 alert conditions
The goal of Pullback Sniper Method is not to predict the future or provide guaranteed buy/sell instructions.
Its purpose is to help users visually study:
⚡ trend continuation behavior
🎯 pullback quality
📈 breakout-following structure
🧠 confirmation strength
📦 projected risk/reward zones
📊 historical visual outcomes
💎 dashboard-based system feedback
🚨 alert-based monitoring
Pullback Sniper Method should be treated as a structured chart-analysis and educational decision-support tool, not as financial advice, not as an automated trading system, and not as a guarantee of profitable results.
━━━━━━━━━━━━━━━━━━━━━━
🔓 OPEN-SOURCE PUBLICATION NOTE
━━━━━━━━━━━━━━━━━━━━━━
This script is published as an open-source educational and visual market-analysis tool.
The source code is visible so users can inspect, review, understand, and learn from the logic.
The description is intentionally detailed because many users do not inspect every part of the Pine Script code line by line.
The purpose of this page is to explain:
✅ what the script does
✅ how the main logic works
✅ how signals are created
✅ what the trend engine checks
✅ how pullbacks are validated
✅ how confirmation modes differ
✅ how TP/SL projections are drawn
✅ how historical trade visuals are managed
✅ what the statistics table means
✅ what the premium dashboard means
✅ what the quality score tooltip represents
✅ what the limitations are
✅ how the indicator should and should not be used
Pullback Sniper Method is designed to support structured analysis.
It does not promise profitable results.
It does not remove market risk.
It does not execute trades.
It does not place broker orders.
It should not be used as a blind buy/sell system.
It is best used as a visual framework for reviewing trend, breakout, pullback, confirmation, and projected risk/reward behavior.
━━━━━━━━━━━━━━━━━━━━━━
📌 OVERVIEW
━━━━━━━━━━━━━━━━━━━━━━
At a high level, Pullback Sniper Method does the following:
📈 Calculates a trend engine using Fast EMA, Slow EMA, and EMA slope.
🚀 Detects breakout conditions after trend alignment.
🎯 Waits for price to pull back toward the Pullback EMA.
✅ Confirms entries using Fast, Balanced, or Strict confirmation logic.
🧠 Applies optional McGinley Dynamic distance filtering.
📊 Applies optional RSI directional filtering.
🧊 Uses a cooldown system to reduce signal clustering.
📦 Draws ATR-based TP/SL projection boxes.
🎯 Tracks TP1, TP2, TP3, and SL visually.
🏷️ Displays active TP labels and final result labels.
🗂️ Keeps historical TP/SL visuals on the chart.
⭐ Displays a Quality Score only inside the STRONG label tooltip.
📊 Builds a statistics table for TP1, TP2, TP3, SL, Total, and Win Rate.
💎 Builds a premium dashboard with deeper internal performance metrics.
🎨 Includes three visual themes.
🚨 Includes alert conditions for strong signals and trade outcomes.
This makes the script more than a simple signal label tool.
It is a complete pullback-analysis framework built around trend context, breakout confirmation, pullback behavior, ATR-based visual planning, and historical result review.
━━━━━━━━━━━━━━━━━━━━━━
🧠 CORE IDEA
━━━━━━━━━━━━━━━━━━━━━━
The core idea behind Pullback Sniper Method is simple:
A trend continuation setup should not be judged from one isolated candle.
A single breakout, one EMA touch, one candle close, or one label is usually not enough by itself.
Market context matters.
For that reason, Pullback Sniper Method combines several layers:
📈 trend alignment
🚀 breakout structure
🎯 pullback location
✅ confirmation candle behavior
📏 ATR-based distance filtering
🧠 optional McGinley distance filtering
📊 optional RSI direction filtering
📦 projected TP/SL structure
📊 visual statistics
💎 dashboard feedback
The indicator does not attempt to mark every possible move.
Instead, it attempts to make pullback-based trend continuation conditions easier to read, compare, and review.
The purpose is not to create more signals.
The purpose is to make signal conditions more structured and understandable.
━━━━━━━━━━━━━━━━━━━━━━
🧩 WHY THIS SCRIPT IS NOT A SIMPLE BUY/SELL INDICATOR
━━━━━━━━━━━━━━━━━━━━━━
Pullback Sniper Method is not intended to behave like a simple “buy here / sell here” script.
It is built as a structured workflow:
Trend Engine
→ Breakout Detection
→ Pullback Wait
→ Confirmation Mode
→ Optional Filters
→ STRONG Signal Label
→ Quality Tooltip
→ TP/SL Projection
→ Active Trade Visualization
→ Result Tracking
→ Statistics Review
→ Dashboard Review
→ Alerts
Each part has a specific role.
📈 The Trend Engine defines directional context.
🚀 The Breakout Engine identifies fresh movement beyond recent highs or lows.
🎯 The Pullback Engine waits for price to return toward the pullback EMA.
✅ The Confirmation Engine decides whether the reaction is strong enough.
🧠 The optional filters reduce signals that do not meet additional conditions.
⭐ The Quality Score tooltip gives extra signal context without changing the signal.
📦 The TP/SL boxes provide projected visual structure.
📊 The statistics table summarizes historical visual outcomes.
💎 The dashboard gives a broader state and performance-style overview.
🚨 The alert system helps monitor the script without constantly watching the chart.
This makes the script a full review environment, not a one-condition signal tool.
━━━━━━━━━━━━━━━━━━━━━━
⚙️ HOW THE SCRIPT WORKS
━━━━━━━━━━━━━━━━━━━━━━
📈 TREND ENGINE
The Trend Engine is based on three key components:
⚡ Fast EMA
🐢 Slow EMA
📐 Fast EMA slope
The default structure uses:
Fast EMA = 50
Slow EMA = 200
Pullback EMA = 21
Slope Lookback = 5
For bullish context, the script checks whether:
🟢 Fast EMA is above Slow EMA
🟢 Price is above Slow EMA
🟢 Fast EMA is rising compared to previous bars
For bearish context, the script checks whether:
🔴 Fast EMA is below Slow EMA
🔴 Price is below Slow EMA
🔴 Fast EMA is falling compared to previous bars
This helps the script avoid treating every price move as a valid pullback opportunity.
The trend engine creates the directional foundation for the rest of the logic.
━━━━━━━━━━━━━━━━━━━━━━
🚀 BREAKOUT ENGINE
━━━━━━━━━━━━━━━━━━━━━━
After trend alignment is detected, the script looks for a breakout.
For bullish setups, price must close above the recent breakout high.
For bearish setups, price must close below the recent breakout low.
The breakout engine uses:
🚀 Breakout Lookback
🛑 Invalidation Lookback
🔥 Minimum Breakout Body / ATR
The breakout candle must also have enough body size relative to ATR.
This is important because very small breakouts can create low-quality setup conditions.
The breakout does not immediately create a STRONG label.
Instead, it activates a setup state.
After that, the script waits for a pullback.
━━━━━━━━━━━━━━━━━━━━━━
🎯 PULLBACK SETUP ENGINE
━━━━━━━━━━━━━━━━━━━━━━
Once a breakout setup is active, the script waits for price to return toward the Pullback EMA.
For a bullish setup:
🟢 Price must pull back toward the Pullback EMA.
🟢 The setup must not be invalidated.
🟢 Enough bars must have passed after breakout.
For a bearish setup:
🔴 Price must pull back toward the Pullback EMA from the opposite direction.
🔴 The setup must not be invalidated.
🔴 Enough bars must have passed after breakout.
The script also includes a maximum number of bars to find the pullback.
If no valid pullback appears within that window, the setup expires.
This prevents old breakout conditions from staying active forever.
━━━━━━━━━━━━━━━━━━━━━━
✅ CONFIRMATION ENGINE
━━━━━━━━━━━━━━━━━━━━━━
After a valid pullback touch, the script waits for confirmation.
There are three confirmation modes:
⚡ Fast
⚖️ Balanced
🛡️ Strict
⚡ Fast Mode
Fast mode is the earliest and simplest confirmation style.
It checks whether price closes back in the expected direction relative to the Pullback EMA.
This mode can react faster but may produce more noise.
Useful for:
• faster review
• active chart monitoring
• lower-timeframe analysis
• users who prefer earlier signals
⚖️ Balanced Mode
Balanced mode is the default middle-ground profile.
It requires directional candle behavior and also considers either a break of the previous candle level or wick/rejection behavior.
This helps the signal feel more structured than a basic close-based trigger.
Useful for:
• general chart review
• balanced signal frequency
• intraday analysis
• users who want neither too many nor too few signals
🛡️ Strict Mode
Strict mode is the most selective confirmation profile.
It requires stronger candle body behavior and a more decisive close.
This can reduce signal frequency.
Useful for:
• cleaner setups
• fewer signals
• higher selectivity
• users who prefer stricter confirmation
Important note:
A stricter mode does not guarantee better future outcomes.
It only applies stricter internal confirmation logic.
━━━━━━━━━━━━━━━━━━━━━━
📏 ATR-BASED DISTANCE FILTERING
━━━━━━━━━━━━━━━━━━━━━━
ATR is used in several areas of the script.
The script uses ATR to evaluate:
📌 breakout body strength
📌 confirmation candle body strength
📌 entry distance from Pullback EMA
📌 stop-loss projection distance
📌 TP/SL visual structure
The Max Entry Distance / ATR setting helps block entries that are too far away from the Pullback EMA.
This is important because a pullback system generally works best when the signal appears close enough to the pullback reference area.
If price runs too far away before confirmation, the setup may become less efficient from a risk/reward perspective.
━━━━━━━━━━━━━━━━━━━━━━
🧠 MCGINLEY DYNAMIC FILTER
━━━━━━━━━━━━━━━━━━━━━━
Pullback Sniper Method includes an optional McGinley Dynamic filter.
The purpose of this filter is to avoid signals that appear too close to the McGinley Dynamic line.
This distance is measured using ATR.
When enabled, the script checks whether price has enough distance from the McGinley line.
This can help reduce low-quality signals in crowded or compressed areas.
The McGinley filter is optional.
Users can turn it off if they prefer to use only the main trend/pullback logic.
━━━━━━━━━━━━━━━━━━━━━━
📊 RSI DIRECTION FILTER
━━━━━━━━━━━━━━━━━━━━━━
The script also includes an optional RSI direction filter.
When enabled:
🟢 Long signals require RSI to be above the selected long threshold.
🔴 Short signals require RSI to be below the selected short threshold.
By default, the RSI filter is turned off.
This keeps the base system cleaner and allows users to decide whether they want additional oscillator-style directional filtering.
The RSI filter should be treated as context, not as a guarantee.
━━━━━━━━━━━━━━━━━━━━━━
🧊 SIGNAL COOLDOWN SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
The script includes a cooldown system to prevent signals from appearing too close to each other.
After a signal appears, the script waits for the selected number of bars before allowing another signal.
This helps reduce visual clutter and prevents the chart from printing too many labels in a short period.
The cooldown system is especially useful on lower timeframes or volatile assets.
━━━━━━━━━━━━━━━━━━━━━━
💪 STRONG SIGNAL LABELS
━━━━━━━━━━━━━━━━━━━━━━
When all required conditions align, the script can display a STRONG label on the chart.
A STRONG label appears only after the script detects:
📈 valid trend context
🚀 valid breakout setup
🎯 valid pullback touch
✅ valid confirmation
🧠 optional filter approval
🧊 cooldown approval
📦 no active trade conflict
The STRONG label does not mean the future outcome is guaranteed.
It simply means the script’s internal conditions aligned at that point.
━━━━━━━━━━━━━━━━━━━━━━
⭐ QUALITY SCORE TOOLTIP
━━━━━━━━━━━━━━━━━━━━━━
Pullback Sniper Method includes a Quality Score tooltip on the STRONG label.
This score does not filter signals.
It does not change entries.
It does not block or approve trades.
It is only informational.
To view it, hover your mouse over the STRONG label.
The tooltip can show:
⭐ Quality Score
🌟 Star rating
📌 Direction
📈 Trend alignment
🔥 Body / ATR ratio
📍 EMA Distance / ATR
Example tooltip:
Quality Score: 82/100 ⭐⭐⭐⭐ | Quality: HIGH | Direction: LONG | Trend: Bullish | Body/ATR: 0.48 | EMA Distance/ATR: 0.32
Star guide:
⭐⭐⭐⭐⭐ = very strong internal quality
⭐⭐⭐⭐ = high internal quality
⭐⭐⭐ = good internal quality
⭐⭐ = medium internal quality
⭐ = lower internal quality
Important note:
A score of 82 does not mean there is an 82% chance of winning.
The score only summarizes internal signal quality according to the script’s own visual model.
━━━━━━━━━━━━━━━━━━━━━━
📦 TP / SL PROJECTION SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
Pullback Sniper Method includes an ATR-based TP/SL projection system.
When a STRONG signal appears, the script can draw:
📦 TP box
📦 SL box
🎯 TP1 line
🎯 TP2 line
🎯 TP3 line
🏷️ TP price labels
🏁 final result label
The system uses ATR-based risk.
Default structure:
🛡️ SL ATR Multiplier = 2.0
🎯 TP3 Reward R = 2.0R
🥉 TP1 = 25% of TP3 distance
🥈 TP2 = 50% of TP3 distance
🏆 TP3 = final target distance
This creates a clean visual projection of the potential trade structure.
The boxes are not broker orders.
They are visual projections based on the script’s internal logic.
━━━━━━━━━━━━━━━━━━━━━━
🎯 TP1 / TP2 / TP3 / SL TRACKING
━━━━━━━━━━━━━━━━━━━━━━
The script tracks projected trade progress visually.
Possible outcome states include:
🥉 TP1 reached
🥈 TP2 reached
🏆 TP3 reached
🛑 SL reached
If price reaches TP3, the result is marked as TP3.
If price hits SL before reaching any TP level, the result is marked as SL.
If price reaches TP1 and later returns to SL, the result can be treated as a TP1-style protected outcome.
If price reaches TP2 and later returns to SL, the result can be treated as a TP2-style protected outcome.
This allows the visual projection to remember the best target reached before the trade closes.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ SAME-CANDLE TP/SL HANDLING
━━━━━━━━━━━━━━━━━━━━━━
If TP and SL are both touched on the same candle, there is ambiguity.
The script cannot know the true intrabar sequence from standard OHLC data.
For that reason, Pullback Sniper Method uses a conservative rule:
🔴 If TP and SL are both touched on the same candle, the script treats it as SL.
This avoids overly optimistic visual outcomes when the true intrabar order is unknown.
This conservative approach is useful when reviewing historical visual performance.
━━━━━━━━━━━━━━━━━━━━━━
🙈 EARLY SL HIDING LOGIC
━━━━━━━━━━━━━━━━━━━━━━
The script includes an early SL hiding feature.
If a projected trade hits SL within the first selected number of bars, the visual trade can be hidden and excluded from statistics.
Default:
🙈 Hide Early SL Bars = 3
This feature is designed to reduce extremely fast failed projections from cluttering the visual history.
Users should understand that this affects the visual/statistical display of the script.
It is not a broker-side execution rule.
━━━━━━━━━━━━━━━━━━━━━━
🗂️ HISTORICAL TRADE VISUALS
━━━━━━━━━━━━━━━━━━━━━━
Pullback Sniper Method can keep historical TP/SL visuals on the chart.
This includes:
📦 previous TP boxes
📦 previous SL boxes
🎯 TP1 / TP2 / TP3 lines
🛑 SL lines
🏷️ result labels
🏷️ TP price labels
The script also includes a maximum historical trade limit.
Default:
🧮 Max Historical Trades = 40
This helps prevent PulseWire object-limit issues while still allowing users to review past signals visually.
━━━━━━━━━━━━━━━━━━━━━━
📊 STATISTICS TABLE
━━━━━━━━━━━━━━━━━━━━━━
The statistics table summarizes visual trade outcomes.
It can display:
🥉 TP1 count
🥈 TP2 count
🏆 TP3 count
🛑 SL count
📊 Total closed trades
✅ Win Rate
The statistics are calculated internally using the script’s visual TP/SL logic.
They are not broker execution results.
They do not include real slippage, spread, commission, liquidity, partial fills, or order execution issues.
They should be used for visual review and educational analysis only.
━━━━━━━━━━━━━━━━━━━━━━
💎 PREMIUM DASHBOARD
━━━━━━━━━━━━━━━━━━━━━━
Pullback Sniper Method includes a premium-style dashboard.
The dashboard can display:
📈 Trend
📡 Current status
📊 Total trades
✅ Win rate
📈 Total R
📉 Average R
🧮 Profit Factor
🎯 Expectancy
🔥 Max win streak
❄️ Max loss streak
🔁 Current streak
⏱️ Average bars in trade
🏆 TP3 rate
🛑 SL rate
🧭 Best direction
🟢 Long win rate
🔴 Short win rate
📌 Active trade state
🧾 Last signal
🎯 Best TP reached
The dashboard is designed to give users a structured overview of the script’s internal visual results.
Important note:
These dashboard values are not official PulseWire Strategy Tester results.
They are internally calculated visual-analysis metrics.
They should not be interpreted as guaranteed performance.
━━━━━━━━━━━━━━━━━━━━━━
🎨 VISUAL THEME SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
The script includes three visual themes:
🔵 Neon Pro
🧊 Ice Blue
🟡 Gold Black
The theme system affects:
🎨 STRONG label colors
📦 TP/SL box colors
🎯 TP/SL line colors
🏷️ TP price labels
📊 statistics table colors
💎 premium dashboard colors
🟢 long-side visuals
🟠 short-side visuals
Color settings are handled internally to keep the Inputs tab cleaner and more organized.
━━━━━━━━━━━━━━━━━━━━━━
🏷️ TP PRICE LABELS
━━━━━━━━━━━━━━━━━━━━━━
TP labels are displayed next to the TP levels rather than inside the boxes.
This helps keep the projection boxes cleaner.
The labels can show:
TP1 price
TP2 price
TP3 price
Example:
TP1 102450.5
TP2 103120.0
TP3 104300.0
This makes it easier to visually read the projected target levels without opening the settings or manually checking each line.
━━━━━━━━━━━━━━━━━━━━━━
🏁 RESULT LABELS
━━━━━━━━━━━━━━━━━━━━━━
When a projected trade closes, the script can display a result label.
Examples:
🏆 TP3 HIT WIN +2R
🥈 TP2 EXIT WIN +1R
🥉 TP1 EXIT WIN +0.5R
🛑 SL HIT LOSS -1R
The exact value depends on the selected TP/SL structure and the highest TP reached before closure.
These labels are visual summaries only.
They do not represent broker execution.
━━━━━━━━━━━━━━━━━━━━━━
🚨 ALERT SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
Pullback Sniper Method includes alert conditions for:
🟢 Strong Long
🟠 Strong Short
🏆 TP3 Hit
🛑 SL Hit
🎯 Protected TP Exit
Users can create PulseWire alerts from these alert conditions.
Alerts can help monitor the chart without constantly watching every candle.
Important note:
Alerts are based on the script’s conditions.
They are not trade execution instructions.
Users are responsible for validating alerts and applying their own risk management.
━━━━━━━━━━━━━━━━━━━━━━
🧪 HOW TO USE THE INDICATOR
━━━━━━━━━━━━━━━━━━━━━━
A practical workflow:
Add Pullback Sniper Method to your chart.
Start with the default settings.
Review the overall trend direction.
Wait for a valid breakout setup.
Let the script wait for a pullback toward the Pullback EMA.
Watch for a STRONG label after confirmation.
Hover over the STRONG label to review the Quality Score tooltip.
Review the TP/SL projection box.
Check TP1, TP2, TP3, and SL levels.
Observe whether the projected trade reaches TP levels or SL.
Use the statistics table for visual outcome review.
Use the premium dashboard for deeper internal metrics.
Use alerts if you want automated signal notifications.
Validate the behavior on the exact symbols and timeframes you personally study.
This indicator is best used as a structured review tool.
It should not be used as a blind execution system.
━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS REFERENCE
━━━━━━━━━━━━━━━━━━━━━━
📈 Trend Engine
⚡ Fast EMA Length
Controls the fast trend EMA. Lower values react faster, while higher values are smoother.
🐢 Slow EMA Length
Controls the broader trend EMA used for directional context.
🎯 Pullback EMA Length
Defines the EMA area where price is expected to pull back before confirmation.
📐 Trend Slope Lookback
Checks whether the fast EMA is sloping in the expected trend direction.
━━━━━━━━━━━━━━━━━━━━━━
🎯 Pullback Setup Engine
🚀 Breakout Lookback
Defines how many bars are used to detect a fresh breakout level.
🛑 Invalidation Lookback
Defines the invalidation level for the active pullback setup.
⏳ Min Bars After Breakout
Controls how many bars must pass after breakout before pullback detection begins.
⌛ Max Bars To Find Pullback
If no valid pullback appears within this range, the setup expires.
━━━━━━━━━━━━━━━━━━━━━━
✅ Confirmation Engine
✅ Confirmation Mode
Available modes:
⚡ Fast
⚖️ Balanced
🛡️ Strict
📏 ATR Length
ATR used for body-size and distance filters.
🔥 Min Breakout Body / ATR
Minimum breakout candle body size compared to ATR.
💪 Min Confirm Body / ATR
Minimum confirmation candle body size compared to ATR. Mainly used in Strict mode.
📍 Max Entry Distance / ATR
Blocks entries that are too far away from the Pullback EMA.
🧊 Use Signal Cooldown
Prevents too many signals from appearing too close to each other.
⏱️ Cooldown Bars
Number of bars to wait after a signal before allowing another one.
━━━━━━━━━━━━━━━━━━━━━━
🧠 Optional Filters
🧲 Block Signals Near McGinley
Avoids entries too close to the McGinley Dynamic line.
〽️ McGinley Length
Length used for the McGinley Dynamic filter.
📐 Min McGinley Distance / ATR
Minimum distance required between price and McGinley Dynamic.
📊 Use RSI Direction Filter
Filters long/short signals based on RSI direction.
📈 RSI Length
RSI length used for the optional direction filter.
🟢 RSI Long Minimum
Long signals are allowed only when RSI is above this value.
🔴 RSI Short Maximum
Short signals are allowed only when RSI is below this value.
━━━━━━━━━━━━━━━━━━━━━━
📦 Trade Visual Engine
📏 Show TP / SL Lines
Shows TP1, TP2, TP3, and SL lines.
📦 Show TP / SL Boxes
Shows TP and SL projection zones.
🏷️ Show Active TP Label
Shows the latest touched TP label while the projected trade is active.
🗂️ Show Historical TP / SL Trades
Keeps previous TP/SL boxes, lines, and labels on the chart.
🧮 Max Historical Trades
Limits historical visual trades to help avoid object-limit issues.
🛡️ SL ATR Length
ATR length used for stop-loss calculation.
🛑 SL ATR Multiplier
ATR multiplier used for stop-loss distance.
🎯 TP3 Reward R
Final TP target multiple based on the initial risk distance.
🥉 TP1 % Of TP3
TP1 distance as a percentage of final TP3 distance.
🥈 TP2 % Of TP3
TP2 distance as a percentage of final TP3 distance.
↔️ Initial TP / SL Length
Initial visual length of TP/SL lines and boxes.
🙈 Hide Early SL Bars
If SL is reached within this number of bars, the projection can be hidden and excluded from statistics.
📊 Show Statistics Table
Shows TP1, TP2, TP3, SL, total trades, and win rate.
💎 Show Premium Dashboard
Shows the extended dashboard with deeper internal metrics.
━━━━━━━━━━━━━━━━━━━━━━
🎨 Visual Settings
🎭 Color Theme
Available themes:
🔵 Neon Pro
🧊 Ice Blue
🟡 Gold Black
💪 Show STRONG Labels
Shows the main STRONG labels on the chart.
🔠 Signal Label Size
Controls the size of STRONG signal labels.
━━━━━━━━━━━━━━━━━━━━━━
🧠 WHAT MAKES THIS SCRIPT ORIGINAL
━━━━━━━━━━━━━━━━━━━━━━
Pullback Sniper Method uses familiar concepts such as:
📈 EMA trend context
🚀 breakout detection
🎯 pullback confirmation
🧠 optional technical filters
📦 ATR-based TP/SL projection
📊 dashboard metrics
🚨 alerts
These components are not unique by themselves.
The originality of the script lies in how these components are organized into one workflow:
Trend Engine
→ Breakout Detection
→ Pullback Validation
→ Confirmation Mode
→ Optional Filters
→ STRONG Label
→ Quality Tooltip
→ TP/SL Projection
→ Historical Trade Visualization
→ Statistics Table
→ Premium Dashboard
→ Alerts
This structure is intended to give users a cleaner way to review pullback-based trend continuation setups.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT PRACTICAL NOTES
━━━━━━━━━━━━━━━━━━━━━━
The script’s behavior depends heavily on settings.
Signal frequency and visual output may change based on:
🎛️ selected confirmation mode
📈 EMA lengths
🎯 pullback EMA length
🚀 breakout lookback
🛑 invalidation lookback
📏 ATR settings
🧠 McGinley filter
📊 RSI filter
🧊 cooldown setting
📦 TP/SL settings
📊 market
⏱️ timeframe
📉 symbol volatility
📚 available historical bars
A configuration that looks cleaner on one market may not behave the same way on another.
The TP/SL boxes are visual projections based on script rules.
They are not broker orders.
They do not account for real execution conditions.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ LIMITATIONS AND SHORTCOMINGS
━━━━━━━━━━━━━━━━━━━━━━
This script has important limitations:
❌ It does not guarantee profitable trades.
❌ It does not predict future price movement.
❌ It does not replace risk management.
❌ It does not execute trades.
❌ It does not place orders.
❌ It does not include broker slippage.
❌ It does not include commissions.
❌ It does not include spreads.
❌ It uses bar-based chart data.
❌ Same-candle TP/SL order cannot be known from standard OHLC data.
❌ Same-candle TP/SL is handled conservatively as SL.
❌ Quality Score is not a win-rate prediction.
❌ Dashboard statistics are internal visual metrics, not broker results.
❌ ATR-based TP/SL projections are visual analysis tools, not trade instructions.
❌ Strong labels can still fail in choppy or low-quality market conditions.
❌ Historical visual behavior does not ensure future behavior.
For these reasons, Pullback Sniper Method should be used as an educational decision-support tool, not as a standalone trading strategy.
━━━━━━━━━━━━━━━━━━━━━━
👤 WHO THIS SCRIPT MAY BE USEFUL FOR
━━━━━━━━━━━━━━━━━━━━━━
This script may be useful for traders who:
✅ study pullback-based trend continuation
✅ want structured breakout/pullback confirmation
✅ want ATR-based TP/SL visualization
✅ want historical visual trade review
✅ want a clean statistics table
✅ want a premium-style dashboard
✅ want signal quality information without changing signal logic
✅ want configurable confirmation strictness
✅ want visual themes
✅ want alert-based monitoring
✅ prefer organized chart-based analysis
✅ want an open-source educational PulseWire tool
It may be less suitable for users who:
❌ want guaranteed buy/sell signals
❌ want a fully automated trading bot
❌ do not use technical analysis
❌ do not want chart visuals
❌ expect one setting to work on every market
❌ want an indicator that replaces their own decision-making
❌ expect internal visual statistics to match broker execution results
━━━━━━━━━━━━━━━━━━━━━━
🧭 BEST PRACTICE SUGGESTIONS
━━━━━━━━━━━━━━━━━━━━━━
For cleaner review:
✅ Start with the default settings.
✅ Use Balanced confirmation first.
✅ Test Fast and Strict modes only after understanding the default behavior.
✅ Review STRONG labels together with market structure.
✅ Hover over labels to inspect Quality Score context.
✅ Use TP/SL boxes as visual planning tools, not automatic orders.
✅ Review dashboard metrics as internal script feedback only.
✅ Avoid treating every signal as a trade.
✅ Test the indicator on the symbols and timeframes you actually use.
✅ Combine the tool with independent analysis and risk management.
✅ Keep expectations realistic.
━━━━━━━━━━━━━━━━━━━━━━
🚨 ALERT USAGE
━━━━━━━━━━━━━━━━━━━━━━
The script includes alert conditions for important events.
Available alert types include:
🟢 Strong Long
🟠 Strong Short
🏆 TP3 Hit
🛑 SL Hit
🎯 Protected TP Exit
A practical alert workflow:
Add the indicator to your chart.
Open PulseWire’s alert window.
Select Pullback Sniper Method as the condition.
Choose the alert condition you want.
Configure frequency according to your preference.
Use alerts as monitoring tools only.
Confirm all alerts manually with your own analysis.
Alerts do not execute trades.
Alerts are not financial advice.
━━━━━━━━━━━━━━━━━━━━━━
🔓 OPEN-SOURCE NOTE
━━━━━━━━━━━━━━━━━━━━━━
This script is published open-source for educational review, transparency, and community learning.
Users can inspect how the indicator works, study the logic, modify it for personal learning, and understand the internal conditions behind the visual output.
Please respect PulseWire’s House Rules when reusing or republishing open-source code.
The purpose of open-source publication is to support learning and transparent script review.
━━━━━━━━━━━━━━━━━━━━━━
🛡️ DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━
Pullback Sniper Method is provided for educational and informational purposes only.
It does not constitute financial, investment, or trading advice.
No indicator can guarantee future results.
Markets are uncertain, conditions change, and historical behavior does not ensure future performance.
Every user is responsible for their own analysis, validation, risk management, position sizing, and trading decisions.
The TP/SL boxes, labels, dashboard statistics, Quality Score, and alerts are visual analysis tools only.
Use this script as a structured decision-support and visual review framework, not as a promise of profitability. Indicator

Volume-Weighted S/R Zones [WillyAlgoTrader]📊 Volume-Weighted S/R Zones is an overlay indicator that automatically detects support and resistance zones from price pivots, scores them by volume and price reaction, tracks breaks and retests, and instantly places a full risk-management plan on the chart with a stop-loss and three take-profits. No manual lines — everything is calculated and drawn automatically.
The core idea: not all levels are equal. A level where price reversed on heavy volume and ran far from it is dozens of times more valuable than a level formed on thin volume with no reaction. The indicator assigns each zone a Strength Score from 0 to 100 , combining volume at the pivot bar, price reaction strength, and touch count — and displays only the zones that actually work.
The indicator is completely free and open-source . Works on any instrument (crypto, forex, stocks, futures, indices) and any timeframe.
🧩 WHY THESE COMPONENTS WORK TOGETHER
A classic pivot indicator draws lines on every local high and low — the chart turns into a mess of dozens of levels, and it's impossible to tell which ones matter. Volume profiles show where heavy trading happened, but don't tie that to specific reversal levels. Pure Price Action gives the right zones, but requires manual markup.
This indicator solves all three problems with one integrated pipeline:
Pivot Detection → Volume Score + Reaction Score → ATR clustering of nearby pivots → Strength Score 0..100 → Age Decay → Break Detection (with filters) → Retest Detection → Zone-Aware SL/TP → Trade Statistics
Each step adds something the previous one cannot. Pivot Detection finds raw reversal points. Volume Score answers the question "was there heavy trading here". Reaction Score answers "did price bounce off the level". ATR clustering merges pivots into a single zone if they sit within N×ATR — giving zone width instead of a thin line. Age Decay gradually reduces the weight of old zones. Break/Retest turn zones into trade signals. Zone-Aware SL places the stop behind the broken zone instead of at an abstract ATR distance. Trade Stats show whether your settings actually work on your instrument.
Remove any component and the system breaks: pivots without scoring are noise, scoring without clustering produces dozens of thin lines, clustering without break/retest gives no signals, signals without zone-aware SL get stopped out on noise.
🔍 WHAT MAKES THIS INDICATOR ORIGINAL
1️⃣ Strength Score 0..100 — three-component zone quality measurement.
Each zone receives a strength score by the formula:
Score = VolScore + ReactionScore + 10 (base bonus), then clamp(0, 100)
Where:
— VolScore (0..40) : computed as min(40, volumeRatio × 20) , where volumeRatio = volume on the pivot bar / average volume over N bars (default 20). On instruments without volume (some forex pairs) a base value of 20 is assigned.
— ReactionScore (0..30) : measured as min(30, max_move / ATR × 10) , where max_move is the maximum price movement AWAY from the pivot in the first N bars after it (default 5). Computed against ATR at the pivot bar, not current ATR — this is the correct normalization.
When the same zone is touched again (a new pivot within ATR × MergeDistance radius, default 0.5), zones merge, the touch counter grows, and a bonus of min(20, √touches × 4) × 0.5 is added to the score. This means: 4 touches give +4, 9 touches +6, 16 touches +8. Logarithmic growth to avoid over-weighting.
Zones are divided into 4 tiers by score: ★ (weak, 0-30), ★★ (medium, 30-60), ★★★ (strong, 60-85), 🔥 (very strong, 85+) . The tier is shown directly on the zone label and affects box transparency — stronger zones are more visually prominent.
2️⃣ Age Decay — old zones lose strength gradually, not abruptly.
Each bar the zone score is reduced by ageDecayRate × 0.1 . By default (0.5) that's −0.05 per bar, so a zone loses about 25 points over 500 bars. This gives an honest forgetting mechanism: a level from last week matters, but not as much as a level from last hour. Can be disabled (set to 0) or made aggressive (1.0 = −0.10 per bar).
Additionally zones are removed by three conditions: age exceeds Max Zone Age (default 30 Days, measured independently of timeframe), score drops below MIN_VIABLE_SCORE = 5.0 , or zone is broken and more than 2×ReactionWindow bars have passed since the break (nobody will retest a stale broken zone).
3️⃣ Break Detection with a dual-volume filter (floor + cap).
The standard "break volume ≥ N×average" filter is easily bypassed by news spikes and gaps. Solution:
— Volume Floor : volume ≥ avg × VolMult (default 1.3) — filters thin-volume breakouts.
— Volume Cap (optional) : volume ≤ avg × VolCap (default 5.0) — filters abnormally large candles (opening gaps, news spikes). Especially important on stocks.
Additionally: Momentum Filter requires the break candle's range to be ≥ N×ATR (default 1.0). This filters "doji breaks" where the candle body barely crossed the level.
4️⃣ Retest Detection with reaction validation.
After a break, the indicator waits for a retest within a Min..Max bars window (default 2..30). A retest counts only if:
— Price touched the broken zone (low ≤ zoneTop for a bullish break)
— Price closed back in trend direction (close > zoneTop)
— Reaction from the zone ≥ ATR × ReactionMin (default 0.5×ATR)
Optionally enable Mitigation Filter , which skips a retest if the zone was already tested once — for traders who only want the first retest.
5️⃣ Zone-Aware Stop-Loss — stops behind real structure, not in thin air.
With Zone-Aware SL enabled, the stop is placed not just at ATR×Mult distance, but by formula:
— For long: SL = max(close − ATR×SLMult, zoneBot − ATR×0.2)
— For short: SL = min(close + ATR×SLMult, zoneTop + ATR×0.2)
The LESS aggressive stop is chosen: either the standard ATR stop, or "behind the zone with a 0.2×ATR buffer". Logic: if the zone is broken, it became resistance (for longs) or support (for shorts). If price returns back INTO the zone — the breakout idea is invalidated, you should exit. This gives a clear exit criterion and usually a wider but more meaningful stop.
6️⃣ Risk presets and three take-profits with partial scaling.
Four ready-made risk presets:
— Conservative : SL 2.5×ATR, TP 1R / 2R / 4R
— Balanced (default): SL 1.5×ATR, TP 1R / 2R / 3R
— Aggressive : SL 1.0×ATR, TP 1.5R / 2.5R / 4R
— Scalping : SL 0.8×ATR, TP 0.8R / 1.5R / 2R
— Custom : configure manually
The model assumes splitting the position into three equal parts: 1/3 on TP1, 1/3 on TP2, 1/3 on TP3. When a TP is touched, the line turns solid cyan with a ✓ checkmark.
7️⃣ Break-Even Trail — after TP1 the stop automatically moves to entry.
With Break-Even After TP1 enabled, on first touch of TP1 the SL is pulled to the entry price. Only TP2 and TP3 remain in play — but the risk is now zero. If price reverses, the trade closes at break-even instead of the original stop. Classic "protect profit, let winners run" model.
Implemented carefully: BE activates only after a confirmed TP1 touch (with no SL break on the same bar), and on the same bar TP1 + SL is always resolved as a stop (conservative model — real brokers don't guarantee limit fills before stops on the same wick).
8️⃣ Session Trade Statistics — tracking real effectiveness.
The dashboard tracks stats right on the chart:
— Trades : total closed trades
— W/L : wins vs losses
— Win Rate : % of wins. A WIN = TP1 reached . This is a deliberate classification: if the idea worked and TP1 closed — that's a success, even if TP2/TP3 didn't fill and exited at BE.
— BE saves : diagnostic counter. How many wins closed via BE-stop rather than TP3. High BE saves ratio → TP3 is set too far.
— Avg R : average R-multiple per trade. Calculated assuming partial scaling (1/3 at each TP).
Stats reset on any settings change (including a dedicated Reset Stats Counter input made specifically for manual resets).
9️⃣ Fully adaptive theme and WCAG-contrast colors.
All colors are calculated for both PulseWire themes (Dark/Light) with WCAG AA contrast verification (4.5:1 minimum). Label text on tinted backgrounds is chosen so it remains readable on both themes. Auto-detection by chart background color, or manual Dark/Light selection in settings.
🔟 TF-independent zone aging.
Max Zone Age can be set in Bars / Hours / Days . This means "30 Days" is always 30 calendar days regardless of timeframe (on 5m it's 8640 bars, on 1h — 720, on 1D — 30). Legacy indicators use bars only, which makes them break when you switch TFs — fixed here.
🧠 HOW IT WORKS — step-by-step calculation flow
Step 1 — Pivot Detection: on each bar, ta.pivothigh and ta.pivotlow are checked with equal left/right lookback (default 21). A pivot is confirmed only after N bars pass — so the indicator does NOT repaint already-drawn zones.
Step 2 — Volume Score: for a confirmed pivot, VolScore is computed against the volume on the pivot bar itself (not the current bar).
Step 3 — Reaction Score: the maximum price movement AWAY from the pivot is measured over the next N bars. ATR at the pivot bar is used for correct normalization.
Step 4 — Merge or Create: if there's already a same-type zone within ATR × MergeDistance — the pivot merges into it (zone widens, score updates, touch counter increments). Otherwise a new zone is created with boundaries ±0.15×ATR from the pivot price.
Step 5 — Age Decay & Cleanup: a reverse pass over the zone array applies decay, removes too-old, too-weak, and stale broken zones. If active zones exceed Max Active Zones — the weakest is removed.
Step 6 — Break Detection: on every confirmed bar, every unbroken zone is checked for a break. Volume Floor, Volume Cap, and Momentum Filter are applied if enabled.
Step 7 — Retest Detection: after a break, a retest with confirmed reaction is searched for in the Min..Max bars window.
Step 8 — Risk Management: on a signal (Break or Retest), with risk management enabled, a virtual position opens with SL and three TPs calculated.
Step 9 — Trade Lifecycle: on each bar, SL/TP touches are checked. TP1 → BE activates. SL or TP3 → position closes, stats update.
Step 10 — Visual & Alerts: zone boxes, SL/TP lines, BRK/RT markers, dashboard — all refresh on the last bar. Alerts fire on bar close.
📖 HOW TO USE — EVEN IF YOU'RE NEW
🎯 Quick start (3 minutes):
1. Add the indicator to your chart (any instrument, any timeframe).
2. Wait 30–50 bars — the indicator needs history for calculations. Zones will appear after that.
3. Look at the dashboard in the top-right corner — it shows current trend, active signal, and position state.
4. Don't change settings on day one. Work with defaults to understand how the indicator "breathes" on your instrument.
5. When you see a BRK or RT signal — look at the horizontal SL/TP1/TP2/TP3 lines. That's your trade plan.
👁️ Reading the chart:
— 🟢 Green box = support zone (Demand). Price approaches from below.
— 🔴 Red box = resistance zone (Supply). Price approaches from above.
— Box transparency = zone strength. The more opaque, the stronger.
— Icon on the label : ★ weak, ★★ medium, ★★★ strong, 🔥 very strong.
— ×N on label = number of zone touches.
— ✕ on label = zone already broken (you can hunt for a retest).
— BRK green below bar = resistance broken upward.
— BRK red above bar = support broken downward.
— RT = confirmed retest of broken level.
— Dotted blue line = entry price of the active trade.
— Solid red line = stop-loss. When it becomes dimmed + ENTRY label says "→ SL (BE)" — stop has moved to break-even.
— Dashed green lines = TP1, TP2, TP3. When they turn solid cyan with ✓ — that TP is reached.
📊 Dashboard (top-right by default):
— Trend : Bullish / Bearish / Neutral. Calculated as weighted difference of zone strength above vs below price.
— Signal : current status (BREAK ▲, RETEST ▼, Long Active, Wait, etc.).
— Score : strength of active signal or strongest zone.
— Zones : number of active zones on chart.
— TF : timeframe.
— SL / TP1 / TP2 / TP3 : risk management prices for the active trade.
— R:R : risk/reward ratio to TP1.
— Risk : % of price you risk to the stop.
— Trades / W/L / Win Rate / BE saves / Avg R : session stats.
🔧 Tuning — what to change and when:
— Too many zones, chart cluttered: raise Min Score to Display to 30–40. Raise Zone Merge Distance to 0.7–1.0.
— Too few zones: lower Pivot Lookback to 10–15. Lower Min Score to 0–10.
— Scalping 1m–5m: use Scalping preset, Pivot Lookback 5–8, ATR Length 10.
— Swing 1h–4h: Balanced preset, Pivot Lookback 21 (default), Max Zone Age 30 Days.
— Position trading 1D: Conservative preset, Pivot Lookback 10–15, Max Zone Age 90 Days.
— False breakouts eat your account: enable Volume Filter for Breaks + Momentum Filter.
— Trading stocks/indices with gaps: keep Volume Cap on (it's on by default).
— Want only the first retest: enable Mitigation Filter for Retests.
— Frequently closing at BE without profit: check BE saves in dashboard. If >50% of wins — TP3 is too far, shorten it.
💡 Trading ideas:
— Most reliable setup: retest of a strong zone (★★★ or 🔥) in the dashboard trend direction .
— Don't trade against the strongest zone (🔥) in your path — wait for it to break first.
— A zone touch without confirmed reaction is NOT a signal. The indicator filters this for you, but don't try to "guess" the bounce in advance.
— Use Trade Stats as feedback. If after 50 trades Win Rate < 40% and Avg R < 0 — change settings or timeframe.
⚙️ KEY SETTINGS
⚙️ Main Settings:
— Pivot Lookback (default 21): how many bars on each side must be lower/higher for a pivot
— Max Active Zones (default 8): max number of active zones on chart
— Zone Merge Distance (default 0.5×ATR): merge radius for nearby pivots
— Min Score to Display (default 15): hide zones weaker than this
📦 Zone Detection:
— ATR Length (default 14): ATR period for all calculations
— Volume Avg Lookback (default 20): average volume window
— Reaction Window (default 5): bars to measure reaction after a pivot
— Age Decay Rate (default 0.5): zone aging speed
— Max Zone Age (default 30 Days): maximum zone age
— Max Zone Age Unit (Bars / Hours / Days)
🔍 Filters (optional):
— Volume Filter for Breaks (default off): require volume ≥ N×average on break
— Volume Multiplier (default 1.3)
— Volume Cap (default on, 5.0): filter abnormal spikes
— Momentum Filter (default off): require candle range ≥ N×ATR
— Mitigation Filter (default off): first retest only
🎯 Signals:
— Show Break Signals / Show Retest Signals
— Min/Max Bars for Retest (default 2 / 30)
— Min Retest Reaction (default 0.5×ATR)
🛡️ Risk Management:
— Enable Risk Management (default on)
— Risk Preset (Conservative / Balanced / Aggressive / Scalping / Custom)
— SL ×ATR , TP1/TP2/TP3 ×Risk (for Custom)
— Zone-Aware SL (default on): place stop behind the zone
— Break-Even After TP1 (default on)
— Show SL/TP Lines / Labels
— Show % Distance on Labels
— Entry/SL/TP Line Style (Solid / Dashed / Dotted)
🎨 Visual:
— Theme (Auto / Dark / Light)
— Show Zones / Score Labels / Watermark
— Zone Forward Bars (default 5): how many bars to project zones forward
— SL/TP Label Font Size , Signal Marker Size
📊 Dashboard:
— Show Dashboard , Position
— Show Trade Stats (W/L, Win Rate, Avg R, BE saves)
— Reset Stats Counter : changing the value resets stats
🔔 ALERTS
— 🟢 BREAK UP — resistance broken upward, with price, score, SL, and three TPs
— 🔴 BREAK DOWN — support broken downward
— 🟢 RETEST LONG — confirmed long retest
— 🔴 RETEST SHORT — confirmed short retest
— 🎯 TP1 / TP2 / TP3 HIT — target reached (optional)
— 🛑 SL HIT / 🛡️ BE STOP-OUT — stop-loss hit or break-even close
— 🛡️ BREAK-EVEN ACTIVATED — stop moved to entry
All alerts available in two formats: plain text (readable for Telegram/Discord) and JSON (for webhook automation). Fire on bar close (alert.freq_once_per_bar_close) — no intra-bar flooding.
⚠️ IMPORTANT NOTES
— 🚫 No repainting. All signals use barstate.isconfirmed. Pivots are confirmed with equal left/right lookback — meaning the pivot point is always N bars in the past. This is delayed confirmation, not repainting of future values. Zones don't move after they appear.
— 📐 Zones are built from confirmed pivots. This means a zone appears on the chart N (Pivot Lookback) bars after the extreme formed. On the most recent 21 bars to the right there will be no zones — this is normal and correct.
— ⚖️ On instruments without volume (some forex pairs, some indices) VolScore defaults to 20 out of 40. Zone quality scoring is lower than on crypto/stocks with real volume.
— 🛠️ This is an analysis tool, not an automated bot. The indicator finds zones, marks signals, and proposes a structured trade plan — but entry decisions are YOURS. Past performance does not guarantee future results.
— 📊 Trade Stats counts virtual trades based on indicator signals, without slippage, commissions, or real liquidity. Use as a reference, not as a promise of results.
— 🌐 Universal compatibility: works on any ticker and timeframe. On tick/Renko charts, Hours/Days options for Max Zone Age automatically fall back to 500 bars.
— 💯 Completely free, open-source. Study the code, fork it, modify it for yourself.
If you found this indicator useful — leave a 🚀 and follow the author profile to see updates and new publications. Questions and feedback welcome in the comments. Indicator

Adaptive Support and Resistance Zones [BigBeluga]🔵 OVERVIEW
Adaptive Support and Resistance Zones is a high-performance technical analysis tool designed to identify, manage, and visualize key supply and demand areas. Unlike static pivot indicators that clutter the chart with every minor high and low, this script employs volatility-adjusted logic (ATR) to ensure only the most significant structural levels are maintained.
The indicator treats support and resistance not as thin lines, but as dynamic zones , accounting for market "noise" and providing a clearer picture of where institutional interest actually lies.
🔵 CONCEPT
Volatility-Aware Detection — Uses ATR-based filtering to qualify pivot points. A level is only created if the price rejection is strong enough relative to current market volatility.
Smart Level Merging — Automatically consolidates levels that are too close to one another, preventing "line spaghetti" and identifying high-confluence zones.
Dynamic Zone Rendering — Visualizes S/R as shaded boxes. The width of these zones adapts to market volatility, providing a realistic representation of supply and demand.
Real-Time Breakout Tracking — Monitors price action in real-time to detect when a level is definitively breached, switching its status from "Active" to "Broken."
Automatic Pruning — Cleans the chart by removing levels that have exceeded a maximum age, ensuring your focus remains on current market structure.
🔵 HOW IT WORKS (IN-DEPTH)
1️⃣ Advanced Swing Detection
The indicator scans for Pivot Highs and Lows based on a user-defined Pivot Length.
The Strength Filter: It applies a "Min ATR Strength" check. For a pivot to be valid, the distance between the pivot point and its immediate neighbors must exceed a mathematical threshold of volatility. This filters out "fake" pivots during low-volume consolidation.
2️⃣ Adaptive Level Management
Merge Logic: Before a new level is drawn, the script checks if an existing level already exists within the "Merge Threshold." If it does, the indicator skips the new level, effectively treating the existing zone as the dominant area of interest.
Active vs. Broken: Levels remain "Active" as solid lines/zones as long as price respects them. Once price closes beyond the level (controlled by Break Sensitivity), the level is moved to the "Broken" category.
Visual Transition: Broken levels can be kept on the chart as muted, dotted lines—a crucial feature for traders who look for "S/R Flip" opportunities (where old resistance becomes new support).
3️⃣ The S/R Dashboard
A dedicated on-screen table provides a birds-eye view of the current structural state.
Nearest Resistance/Support: Displays the exact price of the closest active levels.
Last Break: Identifies the direction of the most recent volatility-confirmed breakout.
Active Counter: Keeps track of how many structural levels are currently being monitored by the system.
🔵 KEY FEATURES
ATR-Based Zone Width: Zones expand and contract based on market volatility, ensuring your stop-loss or entry buffers are mathematically sound.
Price Labels: Optional labels at the end of active lines provide the exact price for quick order entry.
Customizable Break Sensitivity: Define how much "daylight" price needs to show above or below a level before a breakout is confirmed.
Historical Record: Retain a specific number of recently broken levels to identify long-term historical confluence.
Clean Visuals: High-contrast colors for Support (Cyan) and Resistance (Orange), with fully customizable transparency.
🔵 HOW TO USE
Trading the Rejection: Look for price to enter a shaded Support or Resistance Zone. Wait for a reversal candle within the zone for a high-probability entry back toward the mean.
Trading the Breakout: When the "< Break" label appears, it confirms that price has closed beyond the zone with enough momentum to overcome the "Break Sensitivity" threshold.
The S/R Flip: Monitor "Broken" (dotted) levels. If price returns to a dotted Resistance line and treats it as Support, it confirms a structural shift in the market.
Volatility Buffers: Use the vertical height of the Zone Boxes to determine your "No-Trade Zone" or to help place stop-losses outside of the immediate area of market noise.
🔵 CONCLUSION
Adaptive Support and Resistance Zones transforms raw price action into an organized, data-driven roadmap. By automating the detection and management of key levels—while accounting for the ever-changing nature of market volatility—it allows traders to focus on execution rather than manual charting. Indicator

Premarket High/Low - KermezHere's a description you can paste into PulseWire's publish form. It follows their publication guidelines (clear explanation, no vague claims, no promotion) and is structured how experienced publishers format theirs.
---
**Premarket High/Low**
This indicator tracks the highest high and lowest low made during the US equity premarket session (04:00–09:00 ET by default) and projects those two levels as horizontal lines across the regular trading session (09:30–16:00 ET). Many traders use premarket extremes as intraday support and resistance — breaks above the PM high or below the PM low often coincide with momentum moves during regular hours.
**How it works**
During premarket, the script records the running high and low of that window. Once premarket closes at 09:00, the levels lock in and are drawn as horizontal lines that extend through to the 16:00 close. Lines do not carry over past the close — each trading day gets its own fresh PM range.
**Features**
- Timezone-aware session detection — works correctly regardless of your chart timezone (default America/New_York, configurable to major exchange zones).
- Live range building during premarket so you can watch the levels form in real time.
- Projected horizontal lines from 09:00 to 16:00, drawn even before the current bar catches up to 16:00.
- Labels at the regular-session open showing the exact PM high and PM low prices.
- Optional premarket background tint to visually highlight the session window.
- Two built-in alert conditions: **Break above Premarket High** and **Break below Premarket Low**, both restricted to regular trading hours so you aren't woken up by overnight prints.
- All colors, line width, and toggles exposed as inputs.
**How to use**
Apply to any US equity, ETF, or index on an intraday timeframe — 1, 5, or 15-minute charts work best. The indicator will not draw on daily or higher timeframes (by design). Once applied, right-click either plotted line and select "Add alert on…" or use the chart-level Alerts dialog to wire up breakout notifications.
**Settings**
- *Premarket Window* — default 04:00–09:00. Adjust if you trade a different session.
- *Regular Session* — default 09:30–16:00. Used to detect the open bar and restrict alerts.
- *Timezone* — set this to match the instrument you're trading.
- *Style* — colors, line width, background tint, and label visibility.
- *Alerts* — toggle breakout alerts on/off.
**Notes**
This is an informational tool, not a trading system — the PM high and PM low are reference levels, not signals on their own. Breakouts can and do fail; always combine with your own risk management. Works on any symbol that has meaningful premarket activity; low-volume instruments may produce noisy ranges.
Pine Script v6.
---
A few practical tips for the rest of the publish form:
- **Title** — keep it short, something like `Premarket High/Low`. PulseWire rejects titles that sound marketing-y.
- **Tags/Categories** — pick Volatility or Trend Analysis; tag with `premarket`, `support`, `resistance`, `breakout`, `day-trading`.
- **Screenshot** — PulseWire requires one. Take a clean chart shot with the indicator applied, ideally on a liquid name like SPY or QQQ on a 5-min chart showing both lines and a label. Avoid screenshots with other indicators or personal annotations cluttering the view.
- **Release notes** — leave blank on first publish; you'll use this field later if you update the script. Indicator

Trend Pulse [BigBeluga]🔵 OVERVIEW
Trend Pulse is a structure-driven trend detection indicator that identifies bullish and bearish regime shifts using confirmed pivot breaks and an adaptive volatility-aware trend band.
Instead of relying on momentum oscillators or fixed moving averages, Trend Pulse focuses on market structure, price expansion, and trend aging to determine when a trend starts, matures, and potentially exhausts.
The indicator is designed to visually communicate trend state directly on price using adaptive bands and progressive color transitions.
🔵 CONCEPT
Structure First — Trend direction is defined by confirmed pivot lows and their breaks, not by indicators crossing indicators.
Adaptive Trend Band — A volatility-adjusted SMA band expands over time during bearish phases, making late trend reversals harder to trigger.
Break-Based Trend Shifts — Bullish trends are confirmed only when price breaks above the adaptive band; bearish trends are confirmed by breaking below structural pivots.
Trend Aging — Trend strength is visualized by time-based color gradients that reflect how long a trend has been active, not momentum.
🔵 KEY FEATURES
Pivot-Based Bearish Detection
A bearish trend is triggered only after a confirmed pivot low is broken. This avoids reacting to temporary pullbacks or intrabar noise.
Real-time pivot low level tracking
During a bullish trend, the indicator displays the most recent pivot low level and extends it to the latest bar. This helps identify a potential level where the bullish trend may reverse into a downtrend.
Adaptive Volatility Band
The trend band is built from:
A dynamically expanding SMA length
ATR-based offset for volatility normalization
As the bearish trend matures, the band widens, requiring stronger price expansion to flip the trend back bullish.
Bullish Trend Confirmation via Band Break
A bullish trend is confirmed only when price breaks above the adaptive band, signaling genuine upside expansion rather than a weak bounce.
Automatic Band Reset
On bullish trend shifts, the adaptive band resets to a shorter length, allowing faster reaction to early trend stages.
Time-Based Trend Coloring
Trend color transitions from:
Fresh → Mature
Bullish → Bearish
based purely on how long the trend has persisted since the last flip.
Clear Structural Markers
The indicator plots:
- Confirmed pivot lows
- Bearish breakdown points
- Bullish breakout points
directly on the chart for structural clarity.
Full Candle Coloring
Candles inherit the current trend color, allowing instant visual recognition of market regime without additional indicators.
🔵 HOW TO USE
Use bearish trend shifts to identify structural breakdowns, not just momentum pullbacks.
Treat bullish breaks as confirmation of real trend reversals, not early counter-trend signals.
Use trend color aging to gauge whether a move is early-stage or potentially mature.
Avoid fading trends solely based on color maturity — use it as context, not a reversal signal.
Combine Trend Pulse with structure tools (order blocks, liquidity zones, volume) for higher-confidence entries.
🔵 CONCLUSION
Trend Pulse is a structure-aware trend engine built around confirmed pivots, adaptive volatility logic, and time-based trend visualization.
By separating trend direction from trend age , it avoids common indicator pitfalls such as over-sensitivity and late momentum signals.
This makes Trend Pulse especially effective for traders who want clear regime definition, disciplined trend confirmation, and visual clarity directly on price — without relying on lagging oscillators or fixed moving average systems. Indicator

Strong Gold Breakouts M5 | ProjectSyndicate⚙️ Gold short-term entries off M5 timeframe using dynamic consolidation zones with ADR-based TP targets.
📦 Advanced Consolidation Structure: The indicator detects and plots high-probability consolidation zones using a multi-dimensional 0–10 scoring algorithm. Only the strongest zones (score 6+) that span at least 10 candles are displayed, providing a robust breakout structure based on pure price compression. This is the default setting and is designed for intraday trading.
🎯 Precision Entry & Exit Levels: A color-coded consolidation box is plotted, with Buy Stop and Sell Stop dashed lines automatically placed 2 USD away from its borders. This buffer creates a neutral zone and helps filter out fakeouts.
💰 ADR-Based Profit Targets: Three Take Profit (TP) lines are plotted for both long and short trades (TP1, TP2, TP3). These levels are dynamically calculated as a percentage of the 10-day Average Daily Range (ADR), ensuring targets adapt to current market volatility.
⚙️ Fully Customizable Levels: Every element is adjustable. You can change the buffer between the consolidation box and stop lines, and customize the exact ADR percentages for TP1 (10%), TP2 (15%), and TP3 (20%) to suit your risk profile.
🔔 M5 Breakout Alerts: The indicator includes a powerful alerts module that triggers when an M5 candle closes above the Buy Stop level or below the Sell Stop level. This provides real-time notifications with full trade details for potential entries.
🎨 Clean Visuals & Clear Labels: The zones are color-coded based on strength — White=6, Yellow=7, Orange=8, Red=9–10 — for instant recognition. The Buy Stop, Sell Stop, and TP lines are fully labeled with exact price levels, ensuring zero confusion.
⚙️ Trading Strategy & Logic
This strategy is designed for precision and requires patience. The core idea is to wait for the market to confirm a breakout of an established high-scoring consolidation zone before entering a trade.
📌 Entry Logic
🕒 Wait for a Strong Zone: Allow the indicator to detect and plot a new high-scoring consolidation zone. Do not trade old or expired zones.
🔔 Set Your Alerts: In PulseWire, create a new alert and select the indicator. For the condition, choose "Any alert() function call". This will notify you the moment an M5 candle closes across a stop level.
👀 Wait for the M5 Close: For a Long Buy Trade, wait for an M5 candle to close above the Buy Stop line. For a Short Sell Trade, wait for an M5 candle to close below the Sell Stop line.
✅ Enter on Confirmation: Once you receive the alert and visually confirm the M5 candle has closed past the level, you can enter the trade targeting the dynamic ADR levels. Indicator

Smooths Trend BreakerSmooths Trend Breaker
Overview
Smooths Trend Breaker is a trend identification and entry timing tool that combines an adaptive ATR-based supertrend, a higher timeframe EMA trend filter, volume confirmation, an RSI gate, a price compression range detector, and FVG-gated star candlestick pattern recognition. Each component was chosen to address a specific weakness in standalone supertrend systems — noise in choppy markets, late entries, and signals that contradict the larger trend — and all components work together as a single decision framework rather than as separate overlapping indicators.
Component Methodology
Adaptive Supertrend Engine
The core engine uses an ATR-based supertrend calculation. True Range is computed on each bar as the maximum of the current high-low range, the absolute distance from the prior close to the current high, and the absolute distance from the prior close to the current low. ATR is then derived using Wilder's smoothing method — a modified exponential moving average with a smoothing factor of 1/N — rather than a simple average, which gives more weight to recent volatility while maintaining memory of past conditions.
The upper and lower bands are calculated as the midpoint of the bar's high-low range plus or minus the ATR multiplied by a user-defined multiplier. Bands are then locked directionally — the lower band can only move upward and the upper band can only move downward — preventing the line from retreating when price moves against the trend. The trend direction flips only when a closing price crosses the opposite band, not on intrabar wicks, ensuring signals are close-confirmed.
Rather than using fixed ATR settings across all timeframes, the indicator auto-selects ATR length and multiplier based on the chart's timeframe in seconds. Shorter timeframes receive a shorter ATR period and higher multiplier to account for proportionally larger noise relative to signal. Longer timeframes receive a longer period and lower multiplier to avoid over-sensitivity on slower-moving instruments. This eliminates the need to manually adjust parameters when switching timeframes.
Higher Timeframe EMA Filter
When enabled, the indicator uses `request.security()` to retrieve a 50-period EMA from a higher timeframe selected automatically based on the chart timeframe — for example a 15-minute EMA is referenced when viewing a 5-minute chart, and a 4-hour EMA is referenced when viewing a 1-hour chart. A Buy label is only confirmed when price closes above this EMA and a Sell label is only confirmed when price closes below it, aligning entries with the larger structural trend.
Volume Confirmation
The volume filter computes a 20-bar simple moving average of volume. A signal is confirmed only when the flip bar's volume exceeds this average by a user-defined threshold, defaulting to 1.2 times the average. This filters out supertrend flips that occur on low-participation bars, which have historically higher failure rates.
RSI Gate
A 14-period RSI using Wilder's smoothing is computed on each bar. Buy signals are blocked when RSI exceeds a user-defined overbought level (default 70) and Sell signals are blocked when RSI falls below a user-defined oversold level (default 30). This prevents chasing exhausted moves at extremes.
Range Breaker
The Range Breaker compares the current N-bar rolling range (highest high minus lowest low) against the prior N-bar rolling range from the equivalent lookback window shifted N bars back. When the current range is less than a defined ratio of the prior range — meaning price has compressed significantly relative to its recent volatility — a consolidation zone is declared. Horizontal lines are drawn at the highest high and lowest low of the active zone and extend forward with the current bar. When a closing price breaks outside either level the zone is sealed and a breakout marker fires.
Star Pattern Detection with FVG Gate
Morning Star, Morning Doji Star, Evening Star, and Evening Doji Star patterns are detected using strict 3-candle criteria. The first candle must be a strong directional bar with a body filling at least 50% of its range. The middle candle — the star — must have a body of 25% or less of its range and a total range smaller than 80% of the first candle's body. The confirmation candle must be directionally opposite to the first candle with a body filling at least 40% of its range, closing past the midpoint of the first candle's body.
Additionally, a Fair Value Gap check is applied to the candle immediately before the star. A bearish FVG exists when the high of bar N is below the low of bar N+2, creating a downward price gap. A bullish FVG exists when the low of bar N is above the high of bar N+2, creating an upward price gap. An Inverse FVG check scans back 45 bars for a prior FVG zone whose price range overlaps with the pre-star candle, indicating price has returned to fill an old imbalance. If neither an FVG nor an IFVG is present on the candle before the star, the pattern does not fire regardless of candle structure. This ensures every star signal is anchored to a real price imbalance.
How to Use It
The highest probability setups occur when the supertrend line has already established direction, the range detector is not showing an active chop zone, and a signal fires with volume and HTF agreement. The Range Breaker lines are a caution flag — while they are active and unbroken, the supertrend will produce lower quality signals due to market compression. The star patterns provide a precision entry trigger that can be used to time entries at reversal points, particularly when a star fires near an active Range High or Range Low level.
Trend continuation
Wait for a pullback toward the supertrend line, then enter when the next Buy or Sell label prints in the direction of the established trend.
Breakout entries
When a range zone has been active for several bars and the supertrend is already pointing in one direction, a range breakout marker firing in that same direction is a high-quality entry trigger.
Star entries
A star pattern firing at or near a Range High or Range Low, with the supertrend already in agreement, represents the highest confluence setup available in the indicator.
What to avoid
Do not enter trend signals while a range zone is active with no breakout. Do not take signals that contradict the HTF EMA. Do not enter late into an extended trend where price is far from the supertrend line.
Settings
ATR Length and Multiplier auto-scale by timeframe but can be manually overridden. Volume threshold multiplier defaults to 1.2× the 20-bar average. RSI overbought and oversold levels default to 70 and 30. Range sensitivity has three modes controlling lookback period, compression ratio, and minimum bar count. Past zones to display defaults to 5, maximum 20.
Indicator

Strategy

Indicator

ATR Trend Strategy with Moving Average | Fixed TP/SL version📈 ## ATR Trend Strategy with Moving Average
# Overview
This strategy combines a **Moving Average trend filter** with an **ATR-based breakout channel** to identify directional market movements. It is designed for traders who prefer **systematic trend-following strategies with clearly defined risk management**.
The script builds an adaptive channel around a selected Moving Average using **Average True Range (ATR)**. When price moves beyond the ATR band and the move is confirmed for a defined number of bars, a trend state is established. Trade entries can then occur either on the initial breakout or on a pullback to the Moving Average.
The strategy also includes **fixed percentage Take Profit and Stop Loss levels**, allowing users to evaluate performance under consistent risk parameters.
---
⚙️ # Key Features
• **Multiple Moving Average types**
Supports EMA, SMA, WMA, Hull MA, VWMA, RMA, and TEMA.
• **ATR-based dynamic channel**
Uses ATR to create adaptive upper and lower boundaries around the Moving Average.
• **Two entry methods**
Users can choose between breakout entries or Moving Average pullback entries.
• **Trend confirmation filter**
Signals are confirmed only after a configurable number of bars remain beyond the ATR boundary.
• **Built-in risk management**
Includes fixed percentage Take Profit and Stop Loss levels.
• **Trade visualization**
Displays the TP/SL zone directly on the chart for each trade.
• **Performance statistics panel**
Shows key strategy metrics such as:
* Total trades
* Win rate
* Profit factor
* Net profit
* Expectancy
* Average R
* Maximum drawdown
---
🧠 # Strategy Logic
The strategy follows a simple **trend-following structure** :
1️⃣ A Moving Average defines the market's baseline trend.
2️⃣ An ATR multiplier builds a dynamic volatility channel around the Moving Average.
3️⃣ When price breaks above or below this channel and remains there for a specified number of bars, a trend is confirmed.
4️⃣ Entries can occur via:
**Breakout Mode**
* Long when price breaks above the upper ATR band.
* Short when price breaks below the lower ATR band.
**MA Cross Mode**
* After a confirmed trend, entries occur on pullbacks that cross the Moving Average.
5️⃣ Risk is controlled using **fixed percentage Take Profit and Stop Loss levels**.
---
⚙️ # Inputs
Moving Average
* MA Type
* MA Length
* MA Source
ATR Signal
* ATR Type
* ATR Length
* ATR Multiplier
Trend Confirmation
* Number of confirmation bars
* Confirmation price source (Close or High/Low)
Entry & Risk Management
* Entry method (Breakout or MA Cross)
* Take Profit (%)
* Stop Loss (%)
---
📊 ## Usage Notes
This strategy is designed for **trend-following market conditions** and may perform best in environments with sustained directional movement.
Users are encouraged to **experiment with different Moving Average types, ATR multipliers, and confirmation settings** to adapt the strategy to different markets and timeframes.
---
⚠️ ## Disclaimer
This script is provided for **educational and research purposes only**.
Past performance does not guarantee future results.
---
Strategy

MNM Market Narrative Map [v6]Market Narrative Map (Clean) is a multi-component market structure indicator designed to help traders read price action in a cleaner, more organized way. It maps the story of the market by combining swing structure, supply and demand zones, breakout behavior, liquidity activity, trend flow, and volume-weighted visual emphasis into one streamlined tool.
The indicator is built for traders who want more than isolated signals. Instead of focusing on a single condition, it helps frame the full market narrative: where price has turned before, where it may react again, whether a breakout is holding or failing, where liquidity may sit, and how momentum is evolving through the ribbon structure.
Core Features
1. Swing Highs and Swing Lows
Automatically detects structural pivot points to highlight important turning areas in price. These swing points help define trend continuation, reversals, and key reaction levels.
2. Supply and Demand Zones
Plots adaptive zones around confirmed pivot highs and lows to show likely areas of resistance and support. Zone thickness is volatility-aware, helping the script stay relevant across different market conditions.
3. Breakout Classification
Separates successful breakouts from failed breakouts using confirmation logic. This helps distinguish genuine expansion from fakeouts and weak participation.
4. Liquidity Mapping
Optional liquidity pool tracking at swing levels helps identify areas where price may seek stops, trigger sweeps, or reverse after clearing obvious highs and lows.
5. Money Noodle Ribbon
A clean trend ribbon built around smoothed price structure. It helps visualize directional flow, slope change, and trend continuity without cluttering the chart.
6. Breaker Blocks from Failed Breaks
When enabled, failed breakout zones can be projected as breaker blocks, giving traders additional context for future reactions and retests.
7. Volume Weighting
Visual zone emphasis can be adjusted based on relative volume, making stronger activity areas stand out more clearly.
Why Use It
This indicator is useful for traders who want a more complete market map instead of relying on isolated indicators. It can assist with:
Identifying key structural highs and lows
Locating likely supply and demand reaction zones
Spotting breakout continuation versus failed expansion
Tracking potential liquidity sweep areas
Reading short-term trend flow more clearly
Keeping chart analysis clean and visually organized
Best Use Case
Market Narrative Map works best as a chart-reading and decision-support tool. It is especially useful for traders who combine market structure, liquidity concepts, breakout behavior, and contextual price action in their analysis.
It is not designed to replace trade management or risk management. Instead, it provides a cleaner structural framework so traders can make better-informed decisions based on how price is behaving.
Design Philosophy
The script is built with a clean-chart approach in mind. Every major module can be enabled or disabled, allowing traders to keep the chart minimal or expand it into a more complete structural map depending on preference. Indicator

Indicator

Indicator

ORB Scalper Pro (9:30 NY)ORB Scalper Pro is a comprehensive Opening Range Breakout indicator
designed for intraday scalpers, optimized for the 9:30–10:30 AM NY
session window. Works on equities, ETFs, and futures (ES, NQ, MES, MNQ).
FEATURES
• ORB High/Low tracked live from the 9:30 opening range (configurable window)
• Visual ORB formation box with range size label
• 1× and 2× extension targets (measured move projections)
• ORB Midline for gauging breakout strength
• RTH VWAP (resets at 9:30 AM — accurate for futures)
• EMA 9 / EMA 21 trend filter
• Prior Day High / Low levels
SIGNAL TYPES
• Break signals — confirmed close above/below ORB High/Low
• Retest signals — pullback to ORB level after confirmed break
• Failed ORB / Fade signals — breakout reversal trap setups
• All signals include SL and TP levels based on ORB range multiples
SETUP GRADING (A+ / A / B / C)
Every signal is automatically scored out of 7 points:
+2 RTH VWAP alignment
+1 Volume boost (above average)
+1 Early break (before 10:00 AM)
+1 Gap direction match
+1 EMA 9/21 trend alignment
+1 Normal ORB range size
Grades: A+ = 6-7 pts | A = 4-5 | B = 2-3 | C = 0-1
SCORECARD TABLE
Compact bottom-corner table showing last signal fired, score, and grade
for both long and short — visible even on lower timeframes.
ALERTS
Six alert conditions: Break Long/Short, Retest Long/Short,
Failed ORB Long/Short.
DISCLAIMER
For educational purposes only. Does not constitute financial advice.
Trading involves substantial risk of loss. Past performance is not
indicative of future results. Indicator

Indicator
