Perrin Polygons Shape Engine | ProjectSyndicatePerrin Polygons — Shape Engine
Ten tabs of real dot-lattice mathematics, constructed live on your chart. Not a picture of figurate numbers — the actual construction, built dot by dot, every bar.
What it is
Most "Fibonacci" tools draw three lines and call it geometry. This one builds the geometry.
Perrin Polygons renders figurate numbers — the ancient dot-lattices that gave us triangular, square, pentagonal and hexagonal numbers — as living constructions on a chart canvas. Every dot is placed by the formula that defines it. Nothing is an image, nothing is hardcoded, nothing is traced.
The polygonal number
(s-2)·n² − (s-4)·n
P(s,n) = ──────────────────────────
2
is built here the way it is drawn, not the way it is written: as n nested gnomons. Gnomon k is the path W₁→W₂→…→W₍ₛ₋₁₎ of a regular s-gon of side k anchored at the origin, and it carries exactly (s-2)k + 1 dots. Stack k = 0 … n-1 and the total is P(s,n) — exactly, for every s and every n.
That construction is the engine. Everything else is what you can see once you have it.
The idea: why Perrin and polygons belong together
The Perrin sequence
P(n) = P(n-2) + P(n-3), P(0)=3, P(1)=0, P(2)=2
→ 3 · 0 · 2 · 3 · 2 · 5 · 5 · 7 · 10 · 12 · 17 · 22 · 29 · 39 · 51 · 68 …
is the plastic ratio's answer to Fibonacci — it grows by ρ = 1.3247179572, the real root of x³ = x + 1, where Fibonacci grows by φ = 1.618.
It looks like an unrelated curiosity. It isn't. It touches polygons twice, and both are shapes:
1 · The Perrin sequence is a list of polygons.
Read the terms as side counts: 3, 5, 7, 10, 12, 17, 22, 29 → triangle, pentagon, heptagon, decagon, dodecagon, 17-gon, 22-gon, 29-gon. The sequence doesn't describe polygons. It enumerates them.
2 · The Perrin numbers count polygons.
P(n) is exactly the number of maximal independent sets of the n-vertex cycle graph — and a cycle graph is a polygon. Choose vertices so no two are adjacent and no vertex is left uncovered; the number of ways is the nth Perrin number.
Tabs 02 and 05 draw those two facts. They are the reason this indicator exists.
The ten tabs
#TabWhat it draws01ATLASThe whole polygonal family. s = 3…8 across, n = 1…4 down. Every dot the same size, so the shapes grow with n — the sequence made visible.02PERRIN POLYGONSThe Perrin sequence as side counts: eight lattices from triangle to 29-gon.03GNOMONSOne shape, then the same shape taken apart ring by ring — (s-2)k+1 dots at a time.04CENTEREDCentered polygonal numbers: concentric rings of s·k dots around a single centre.05CYCLE GRAPHC(n) plus every one of its maximal independent sets, each drawn as a highlighted polygon. The count is brute-forced live and checked against P(n) on screen.06ROSETTEs = 12→3 nested, each radius divided by a power of ρ.07SPIRALSPlastic spiral (ρ per 120°) beside the golden spiral (φ per 90°) — why the plastic whirl is ~3× tighter.08RADAR ▸ liveThe market as a polygon: one vertex per Perrin-length RSI.09MARKET LATTICE ▸ liveThe last P(s,n) bars poured into a lattice — oldest at the centre, newest on the outer ring, coloured by direction.10IDENTITYA proof you can see: P(s+1,n) − P(s,n) = T(n-1). Three lattices, one shared pitch, counts checked live.
The formula panel
The dead chart space to the left of the shapes carries 30 formula cards — three per tab, switching with the tab.
Pine has no LaTeX. But its labels are monospace, so the panel renders genuine fraction bars instead of collapsing everything into (...)/2:
√( 8(s-2)·x + (s-4)² ) + (s-4)
n = ──────────────────────────────────
2(s-2)
Every card carries live values substituted in, not just symbols — the identity and its evaluation at your current settings. Set the atlas to n=4 and the gnomon card reads rings: 1 + 7 + 13 + 19 = 40.
Font size is yours (up to huge). Nothing is locked small.
Why it's unique
It computes; it doesn't illustrate. The gnomon construction, the plastic ratio, the maximal independent sets, the inverse of P(s,n) — all evaluated on your chart, from first principles.
It checks itself in public. Tab 05 brute-forces every maximal independent set of C(n) across all 2ⁿ subsets, counts them, and prints the result against the Perrin number with a ✓ or ✗. It isn't asserting the theorem at you. It's demonstrating it, and it would show you if it failed.
Every claim was verified before it was drawn. The gnomon construction was checked against P(s,n) for s = 3…12, n = 1…6 (dot counts and totals). MIS(Cₙ) = P(n) was brute-forced for n = 2…13. The inverse formula was checked to be exact for s = 3…12, n = 3…8. None of it was transcribed on trust.
The lattice actually reads. Dots are drawn in canvas units as a fraction of the lattice pitch, not in fixed pixels — so a 40-dot octagon stays legible instead of collapsing into a blob. Comparison tabs share one pitch across every shape, which is what makes a figurate sequence look like a sequence rather than a row of unrelated blobs.
Colour carries information. Five perceptual ramps (Magma, Viridis, Plasma, Ember, Ice) run inner→outer, so ring colour encodes gnomon order rather than fighting it.
Practical applications
1 · A non-Fibonacci lookback family.
Everyone uses 8/13/21/34/55. The Perrin sequence gives 5, 7, 10, 12, 17, 22, 29, 39, 51, 68, 90, 119 — a different, slower-growing ladder (ρ = 1.325 vs φ = 1.618), so the periods are more tightly spaced and sample the middle horizons that Fibonacci skips.
2 · RADAR — read many horizons as one shape.
Instead of stacking eight RSI panes, read the polygon. A swollen shape means every horizon is extended the same way — broad-based pressure. A shrunken shape is the mirror. A lopsided shape — fast vertices pushed out, slow vertices pulled in — is short-term extension against a slower base, which is the geometry of a divergence. One glance replaces eight readings.
3 · MARKET LATTICE — regime texture at a glance.
The last P(s,n) bars, oldest at the centre. Directional runs appear as coloured arcs; chop appears as speckle. The up-fraction is printed underneath. It's a compact way to see whether recent history is trending or shuffling.
4 · Reference geometry for plastic-ratio work.
Exact constants and identities for anyone building ρ-based levels: ρ³ = ρ+1, and the exact "plastic pocket" 1/ρ² + 1/ρ³ = 1 (0.569840 + 0.430160), the plastic analogue of the golden pocket.
5 · Teaching and content.
Figurate numbers, gnomon growth, the plastic ratio, and a graph-theory identity, all on one canvas with the formulas beside them. For educators, students, and anyone publishing.
Settings that matter
◧ Shape aspect (x per y) — the one dial you must set.
Pine cannot read a pane's pixel size, so nothing can automate this. Set it to:
aspect = (Canvas width / 100) × (pane height ÷ pane width)
Default 1.80 = a 440-bar canvas on a pane roughly 2.4× wider than tall. Shapes squashed flat → raise it. Stretched tall → lower it. They are only true polygons when this is right.
Everything else is optional: Lattice dot size (× pitch), five palettes, independent heading / caption / tab / formula text sizes, manual text colours, panel widths, and per-tab shape parameters.
On the tab strip: it is an index, not a button bar. Pine Script exposes no click, mouse or hover events — no PulseWire indicator can have a working on-chart button. Tabs switch in Settings → Canvas → Tab.
What this is not
Stated plainly, because the space is full of tools that won't:
It generates no signals. No buy/sell arrows, no alerts, no strategy, no entries, no targets.
It reports no performance. No win rate, no profit factor, no backtest, no equity curve — because it makes no claims that would need them. Nothing here has been shown to have an edge, and nothing here pretends to.
The two live tabs are readouts, not forecasts. RADAR is RSI across Perrin lookbacks. MARKET LATTICE is bar direction. Neither predicts anything.
The plastic ratio is not magic. ρ is a real constant with real mathematics behind it. That it appears in a market tool does not mean markets obey it.
This is an instrument and a teaching engine. It shows you mathematics and it shows you your data. What you conclude is yours.
Pine Script® v6 · separate pane · no repainting · no external data. Indicator

Darwin 40-40 MidlineThe Darwin 40-40 Midline is a custom overlay indicator designed to track and display a dynamic midpoint of price action, anchoring to a specific time interval. Rather than using standard hourly or daily resets, this script resets its tracking specifically at the 40th minute of every hour, providing a unique intra-hour perspective on price equilibrium.
How It Works (The Logic)
This indicator utilizes a dynamic high/low range calculation to plot a continuous midline:
The Reset: The script monitors the timestamp of each bar. As soon as the time hits the 40th minute of the hour (e.g., 09:40, 10:40, 11:40), the indicator resets its internal high and low anchor points to the high and low of that specific bar.
The Dynamic Midpoint: For every subsequent bar following the 40-minute mark, the script checks if price has broken the anchored high or low. If a new high or low is established, the range is updated.
The Plot: The indicator dynamically draws a line at the exact mathematical center of this expanding range (Highest High + Lowest Low) / 2. The line extends forward with each new bar, visually adjusting its level in real-time as the range expands.
How to Use It
Traders often use dynamic midpoints as shifting zones of support, resistance, or trend bias:
Trend Bias: When the price sustains itself above the active midline, the intra-hour bias can be interpreted as bullish. Conversely, trading below the midline suggests a bearish bias.
Mean Reversion: In ranging environments, extended moves away from the midline might be viewed as overextended, with the midline acting as a natural magnet for mean-reversion trades.
Breakouts: A sudden expansion of the range (which shifts the midline drastically) can highlight increasing volatility and potential breakout direction following the 40-minute reset.
Settings & Customization
The indicator includes a dedicated "Midline Settings" group in the configuration menu, allowing users to fully customize the visual appearance of the line to fit any chart theme. Users can adjust:
Midline Color: Change the color of the dynamic line (defaults to yellow).
Midline Width: Adjust the thickness of the line (1 to 5).
Style: Choose between Solid, Dashed, or Dotted line styles.
happy Trading!!!! Indicator

BTC DCA Strategy [3Commas & QuantPilot]BTC Smart DCA Strategy
🔷 What it does:
This is a long-only DCA (Dollar-Cost Averaging) strategy for BTC / USDT that opens a position only in oversold conditions and then averages down on a fixed safety-order ladder. A base order fires when 4h RSI(14) drops below the entry threshold; if price keeps falling, five averaging orders add to the position at fixed deviations from the base entry, each larger than the last. The full position is closed at a fixed take-profit above the blended average entry. There is no trailing exit and no stop loss — the position is structurally bounded by the five-order ladder.
- Single entry filter: 4h RSI(14) below 38 (oversold).
- Five averaging orders at fixed deviations (−2%, −5%, −9.5%, −16%, −25%) with 1.8× size scaling per rung.
- Fixed take-profit (5.5%) on the blended average entry; no trailing, no stop loss.
- Every fill and close emits a webhook-ready JSON alert payload for a DCA Bot.
🔷 What changed — two parameters, tuned with QuantPilot:
This strategy started from a baseline configuration (RSI entry below 28, 3% take-profit). Running the same script, on the same market, over the same period through the QuantPilot Pine Script optimizer, two parameters were swept and re-selected: the RSI entry threshold moved from 28 to 38, and the take-profit moved from 3% to 5.5%. Everything else was left untouched — same five-order ladder, same deviations, same 1.8× sizing, same fees.
- Baseline (RSI < 28, TP 3%): Net +3,078.29 USDT (+3.08%), Max Drawdown 3.79%, 62 closed trades, 70.97% profitable, Profit Factor 4.028.
- Optimized (RSI < 38, TP 5.5%): Net +9,250.25 USDT (+9.25%), Max Drawdown 3.67%, 93 closed trades, 76.34% profitable, Profit Factor 10.454.
The result: net profit roughly 3× higher (+3.08% → +9.25%), profit factor up from 4.0 to 10.5, win rate up from 71% to 76% — all while maximum drawdown stayed essentially flat (3.79% → 3.67%). The looser RSI entry (38) lets the strategy engage the dip earlier and more often, while the wider 5.5% target lets each recovery run further before the position is banked. The published defaults use the optimized values; the baseline metrics are shown here purely so the effect of the two parameter changes is transparent.
🔷 Who is it for:
- Swing traders accumulating BTC on RSI pullbacks rather than chasing momentum.
- Bot operators who want a chart-driven signal source with base / safety-order / close webhook JSON ready to drive a DCA Bot.
- Traders comfortable with martingale-style averaging who size their capital to the worst-case ladder fill.
- Range / mean-reversion traders who prefer mechanical oversold entries over discretionary timing.
🔷 How does it work:
Entry (Base Order): On each closed 4h bar the strategy reads RSI(14). When RSI falls below 38 and there is no open position, it opens the base order at market (or limit, optionally) and dispatches the entry webhook.
Averaging Orders: Once in a position, the strategy watches price relative to the original base entry. The five safety orders are armed at fixed deviations from that base entry — not cumulatively — at −2%, −5%, −9.5%, −16%, and −25%. As each threshold is crossed on bar close, the corresponding averaging order fires. Order sizes scale 1.8× per rung ($900 → $1,620 → $2,916 → $5,249 → $9,448 from a $500 base), pulling the blended average entry down toward the latest fill.
Exit (Take Profit): While in a position, the strategy computes a take-profit price 5.5% above the current average entry. When price closes at or above that level, the entire position is closed at market and the close webhook fires. There is no trailing and no stop loss.
Capital Bounds: Total deployed capital cannot exceed the base order plus the five safety orders. Once all five averaging orders are filled, no further adds occur — the position simply waits for the take-profit. This ladder cap is the strategy's primary risk control.
🔷 Why it's unique:
- Optimizer-Tuned Parameters: The RSI threshold (38) and take-profit (5.5%) are not arbitrary — they are the values the QuantPilot Pine Script optimizer selected as best-performing on the historical sample, with every other parameter held constant.
- Fixed-Deviation Martingale Ladder: Safety orders are placed at fixed percentages from the base entry with deliberate 1.8× size scaling, so each rung has progressively more influence on the average — a transparent, fully-specified averaging schedule rather than an opaque adaptive grid.
- Full Webhook Chain: Base order, each safety order, and the close all emit dedicated JSON payloads, driving a DCA Bot end-to-end with no glue layer.
- On-Chart Transparency: The AO ladder, average entry, and take-profit target are plotted live, and the status table reports RSI, AOs filled, base/average entry, TP target, and max deployable capital.
🔷 Considerations Before Using the Strategy:
Optimization / Overfitting Risk: The RSI threshold and take-profit were selected by sweeping those parameters over the same historical window shown in the results. Values that were best in-sample are not guaranteed to be best out-of-sample — this is the standard caveat for any optimized parameter. Treat the optimized metrics as the ceiling of what this configuration achieved historically, not as a forward expectation, and re-validate on fresh data before committing capital.
Trade Volume — Near the Statistical Floor: The optimized configuration produced 93 closed trades over ~30 months (62 on the baseline). This is approaching but still below the ~100-trade threshold often used as a floor for statistical relevance, so treat the win rate and the high profit factor as indicative rather than conclusive.
Martingale Tail Risk: Order sizes scale 1.8× per rung, so the deepest fills are by far the largest. If BTC trends hard below the −25% AO5 level without recovering to take-profit, the position sits fully loaded with no further adds and no stop — unrealized loss can grow until price reverts.
No Stop Loss Justification: There is no exit on adverse moves. Per-order risk is bounded by the fixed ladder allocation; aggregate exposure is capped at base + five AOs (≈ $20,633 on the default $100k account, ~20.6% of equity). Size the base/AO inputs down to match the worst-case exposure you are willing to hold.
Fees: The default commission (0.06% per trade) should be matched to your exchange's actual taker fees.
Demo Testing: Always demo-test before going live. Past results do not guarantee future performance, particularly for martingale-style averaging strategies whose risk profile is dominated by rare deep drawdowns.
🔷 STRATEGY PROPERTIES
Symbol: BYBIT:BTCUSDT.P (Perpetual) — strategy is portable to any BTC / USDT pair.
Timeframe: 4H (RSI sampled on 4h).
Test Period: January 1, 2024 — July 17, 2026 (~30 months).
Initial Capital: 100,000 USDT.
Base Order Size: 500 USDT.
Averaging Orders: 5, at −2% / −5% / −9.5% / −16% / −25% from base entry.
AO Sizing: 1.8× per rung — 900 / 1,620 / 2,916 / 5,249 / 9,448 USDT.
Max Deployed Capital: ≈ 20,633 USDT (~20.6% of equity, all AOs filled).
Commission: 0.06% per trade.
Slippage: 3 ticks.
Entry Filter: 4h RSI(14) below 38 (optimizer-tuned from 28).
Take Profit: 5.5% above average entry (optimizer-tuned from 3%).
Stop Loss: None — ladder allocation is the structural risk cap.
Trailing: None.
Strategy: Long Only.
🔷 STRATEGY RESULTS (Optimized — RSI < 38, TP 5.5%)
⚠️ Remember, past results do not guarantee future performance.
Net Profit: +9,250.25 USDT (+9.25%)
Max Equity Drawdown: 3,980.36 USDT (3.67%)
Total Closed Trades: 93
Percent Profitable: 76.34% (71 / 93)
Profit Factor: 10.454
🔷 STRATEGY RESULTS (Baseline — RSI < 28, TP 3%, for comparison)
Net Profit: +3,078.29 USDT (+3.08%)
Max Equity Drawdown: 3,852.12 USDT (3.79%)
Total Closed Trades: 62
Percent Profitable: 70.97% (44 / 62)
Profit Factor: 4.028
🔷 How to Use It:
🔸 Adjust Settings: Open the strategy inputs and confirm the RSI level (default 38), the five AO deviations and sizes, and the Take Profit (default 6%) match your risk profile. Scale the base/AO sizes down for lower exposure.
🔸 Results Review: Run a full-period backtest and confirm Max Drawdown stays within your personal risk band — note the optimized configuration reached 3.67%. Keep in mind the 93-trade sample is just below the ~100-trade floor for statistical confidence, and the high profit factor reflects that small, optimized sample.
🔸 Create alerts to trigger the DCA Bot: Add one alert on the strategy using "Any alert() function call". Paste your DCA Bot's webhook URL into the alert's Webhook field, and fill the Bot ID, Email Token, and Pair inputs on the script. The base order, each safety order, and the close will each emit a dedicated JSON payload.
🔷 INDICATOR SETTINGS
Base Order Size: Capital committed on the first (base) entry.
AO Deviations: Fixed percentage distances from the base entry where each safety order fires.
AO Sizes: Capital per safety order (1.8× scaling by default).
RSI Timeframe / Length / Level: Oversold filter for the base entry (default 4h, 14, below 38 — optimizer-tuned).
Take Profit (%): Distance above average entry where the full position closes (default 5.5%, optimizer-tuned).
Bot ID / Email Token / Pair: Webhook fields injected into every alert payload.
Visualization: Toggle the AO ladder, fill labels, avg/TP lines, and status table.
Brand Watermark: Configurable text, position, size, and transparency.
👨🏻💻💭 We hope this tool helps enhance your trading. Your feedback is invaluable, so feel free to share any suggestions for improvements or new features you'd like to see implemented.
__
The information and publications within the 3Commas PulseWire account are not meant to be and do not constitute financial, investment, trading, or other types of advice or recommendations supplied or endorsed by 3Commas and any of the parties acting on behalf of 3Commas, including its employees, contractors, ambassadors, etc. Strategy

Key Levels - By DukleKEY LEVELS — current day dH / dO / dL and previous day pdH / pdL
WHAT IT DOES
Draws the five reference levels most day traders check first, as clean horizontal lines with small tags to the right of each line: the current day's Open (dO), High (dH) and Low (dL), plus the previous day's High and Low (pdH, pdL) in a second color.
HOW IT WORKS
The levels are computed directly from the chart's own intraday bars — no higher-timeframe security calls. The day boundary follows the symbol's exchange trading day, the same boundary the built-in daily candles use. dO is fixed at the session open. dH and dL update in real time: the moment price prints a new high or low of the day, the line moves with it — that is by design, since "today's high so far" is a moving value until the session closes. At the daily rollover, the finished day's high and low become the new pdH and pdL, and the current-day lines reset to the new open.
HOW TO USE IT
Works on any intraday timeframe (it deliberately draws nothing on Daily and above, where the current candle already is the day). Typical uses: pdH/pdL as breakout or rejection zones for the session, dO as the intraday bull/bear line, dH/dL as the developing range. All five lines can be toggled individually; colors, line width and how far the lines extend to the right of price are configurable in the settings.
NOTES
The current-day lines updating with new highs/lows is intended behavior, not lookahead — the previous-day levels never change during the session. Nothing here is financial advice.
Indicator

5m Wick Test5M WICK TEST SETUP
A 3-candle liquidity-sweep and reversal pattern detector with automatic entry, stop, and target levels.
WHAT IT DOES
This indicator scans for a specific 3-candle price action pattern often referred to as a "wick test" or liquidity sweep setup — where price sweeps a recent high or low with a wicked candle, gets engulfed by a strong reversal candle, and then retests that swept level before continuing in the new direction.
When the full pattern confirms, the script automatically plots:
Entry — Bar 1's wick extreme (the level Bar 3 must retest)
Stop Loss — Bar 2's opposite extreme
Breakeven — a reference line at your chosen distance from entry
Target 1 — a 1:1 risk-to-reward level
Target 2 — a fixed point distance from entry (fully adjustable, so it works across different instruments and volatility)
Target 2R — a 1:2 risk-to-reward level
HOW THE PATTERN WORKS
Bar 1 (Setup Bar): Closes in the direction opposite the anticipated move (red for a bullish setup, green for a bearish setup) and has a wick on both sides — signaling a rejection at that level.
Bar 2 (Engulfing Bar): A strong reversal candle that engulfs Bar 1's body and closes beyond Bar 1's wick, confirming a shift in momentum.
Bar 3 (Execution Bar): Must be the bar immediately following Bar 2, and must retest back into Bar 1's wick level. If the very next candle doesn't retest, the setup is invalidated — no late or delayed "retests" get marked.
Both bullish and bearish setups are detected independently and can overlap — including cases where the same candle serves as Bar 3 of one setup and Bar 1 of the opposite setup.
Features
Configurable strictness — toggle whether Bar 1 needs a directional close, whether Bar 2 must close beyond Bar 1's full wick, and whether Bar 2's open must fully engulf Bar 1's close (the textbook engulfing-candle definition), so you can dial the pattern between a loose and a strict interpretation.
Optional swing-point filter — require Bar 1 or Bar 2 to represent a genuine local swing high/low, filtering out reversals that occur randomly mid-trend.
Individually toggleable levels — show or hide each of the six lines independently, with full color, width, and style customization.
Rolling chart history — keeps your last several confirmed setups visible on the chart (configurable count), automatically removing the oldest as new ones confirm, so your chart stays readable without manual cleanup.
Built-in alerts — separate alert conditions for setup confirmation and valid Bar 3 retests, for both directions.
HOW TO USE
Add the indicator to a 5-minute chart (or any timeframe — the logic is timeframe-agnostic). When a BUY or SELL label appears on Bar 2, watch the very next candle for a retest of the marked entry level. If price retests, the full level set draws automatically. If it doesn't, the setup silently invalidates and no levels are drawn.
Use the Pattern Rules settings to match the strictness of the pattern to your own trading style, and the Visuals settings to customize the look to fit your chart.
DISCLAIMER
This script is for educational and informational purposes only. It does not constitute financial advice, and past pattern behavior is not indicative of future results. Always use proper risk management and backtest thoroughly before trading any strategy live. Indicator

Indicator

MJ Automatic Support and ResistanceMJ Automatic Support & Resistance
MJ Automatic Support & Resistance is a chart-based indicator designed to automatically identify and display key support and resistance levels using confirmed pivot highs and pivot lows.
The indicator recalculates based on the active chart timeframe, so the levels automatically update when switching between intraday, daily, or higher timeframes.
Key Features
. Automatically detects support and resistance levels
. Works across all chart timeframes
. Uses confirmed pivot highs and lows
. Separate color controls for support and resistance
. Separate line-thickness controls for support and resistance
. Adjustable pivot sensitivity
. Optional merging of nearby levels
. Adjustable maximum number of displayed levels
. Minimum-touch filter for stronger levels
. Solid, dashed, and dotted line options
. Adjustable line transparency
. Optional price labels
. Optional removal of broken levels
. Adjustable ATR-based breakout confirmation buffer
. Ability to show or hide support and resistance independently
How It Works
Resistance levels are created from confirmed pivot highs, while support levels are created from confirmed pivot lows.
When multiple pivots form near the same price, the indicator can merge them into one level using an ATR-based distance filter. The level price is then averaged as additional touches are detected.
Users can also require a minimum number of touches before a level becomes visible, helping reduce weaker or less-tested levels.
Important Note
Pivot-based levels require future candles to confirm. Because of this, a new support or resistance level will appear only after the selected pivot-strength period has passed.
A higher Pivot Strength generally produces fewer but stronger levels. A lower Pivot Strength produces more levels and reacts faster to short-term price structure.
Suggested Settings
For a balanced chart:
Pivot Strength: 5
Maximum Levels: 30–50
Merge Nearby Levels: Enabled
Merge Distance: 0.20 ATR
Minimum Touches: 1–2
Support Thickness: 2
Resistance Thickness: 2
Lower pivot-strength settings may be more suitable for short-term trading, while higher settings may be better suited for swing trading and higher-timeframe analysis.
Disclaimer
This indicator is intended for technical analysis and educational purposes only. Support and resistance levels are not guaranteed to hold. Traders should combine the indicator with proper risk management, price action, volume, market structure, and other forms of confirmation before making trading decisions Indicator

Points from open price marker**Points From Open Price Marker**
The Points From Open Price Marker is a customizable tool designed to help traders visualize how far price moves above and below a selected candle's opening price.
The indicator identifies a user-selected reference candle and marks:
• The exact opening price
• The highest price reached above the open
• The lowest price reached below the open
• The total point expansion in both directions from the opening price
Each marker displays the actual price level and the number of points gained or lost from the candle's open, allowing traders to quickly measure volatility, expansion, and range development.
Features include:
✅ Select any candle timeframe
✅ Select any reference candle start time
✅ Measure upward and downward price expansion from the open
✅ Display price values, point distance, or both
✅ Customizable marker colors and sizes
✅ Optional open price bubble for quick reference
This tool can be used for studying opening ranges, session behavior, volatility expansion, market structure, and price movement patterns. Traders can apply it to futures, stocks, forex, or crypto to analyze how far price typically travels from important opening levels.
The indicator does not predict direction or provide trade signals. It is designed as a visual measurement tool to help traders understand price movement relative to a key candle open.
Indicator

Drawdown [WynTrader]Drawdown
Hello my friend
Before trading an unfamiliar asset, it's worth seeing how it survived its toughest moments — including major market crashes. This indicator reveals every significant decline a security has experienced: how far it dropped, and how long it took. Seeing a past drawdown of -54% over 13 months makes the next correction far less intimidating.
Use it to measure real risk, set realistic expectations, and trade with more confidence.
█ CONCEPTS
A drawdown is the decline from a price peak to the lowest point that follows. The indicator automatically detects every peak and trough, filtering out noise to keep only declines at or above your chosen threshold (default: 20%).
█ FEATURES
Threshold — Set the minimum decline to display, so only meaningful crashes appear.
Boxes & Labels — Each drawdown is highlighted on the chart from peak to trough, labeled with its duration and amplitude (e.g., 13M -54%).
History Table — Lists every recorded drawdown with start/end dates, span, and decline %. Sortable and adjustable in size.
█ CONCLUSION
Before investing, check an asset's drawdown history: how deep, how long, did it recover? These questions reveal its true volatility and resilience. A chart without this history tells only half the story.
█ WYNTRADER
I'm not a Pine Script programmer — just a trader building tools for my own analysis. A few rough edges may remain. Enjoy!
WynTrader Indicator

ICT IRL ERL Liquidity Rotation Indicator v1This indicator automates a full ICT-style liquidity rotation model: it builds dealing ranges for the Daily, London, and NY AM sessions, plots OTE (Optimal Trade Entry) fib zones on each, locates a confirming Fair Value Gap inside that OTE zone across multiple timeframes (1H → 15m → 5m), and then tracks a full setup lifecycle — tap, manipulation leg, inversed-1m-FVG or CISD confirmation, and entry — from IDLE through HUNTING to TRIGGERED. A second, independent engine does the reverse: it watches key session highs/lows (London and Asia) for a liquidity sweep and runs the same manipulation-leg / iFVG / CISD confirmation logic in the opposite direction (ERL → IRL).
What it plots
Session highs/lows (Asia, London, NY AM, NY PM) with live and locked untaken-liquidity levels
NDOG/NWOG opening gaps
Daily, London, and NY Killzone dealing ranges with OTE fib levels (0, 0.5, 0.62, 0.705, 0.79, 1)
The specific FVG (labelled by timeframe and range) sitting inside each range's OTE zone
LONG/SHORT labels the moment a setup's entry trigger fires
How to use it
Run the indicator on a 1-minute chart — the entry-trigger logic is designed specifically for 1m confirmation.
Watch the two status tables (top-right: IRL→ERL per session; bottom-right: ERL→IRL per level) to see each setup's current state: IDLE (nothing happening), HUNTING (tapped and watching for confirmation), TRIGGERED (entry signal fired), or COMPLETED.
A LONG/SHORT forecast appears on the chart when a setup triggers — that's your entry signal.
All key parameters — session times, swing sensitivity, FVG timeframe priority, minimum displacement for a valid trigger — are adjustable in the settings.
Note: This is a decision-support tool, not signal-and-forget automation — always apply your own judgment and risk management before acting on any label. Indicator

Candle Majick - Booby Trap Detector mk1CANDLE MAJICK - BOOBY TRAP DETECTOR mk1
INTRODUCTION
Candle Majick - Booby Trap Detector mk1 is an educational market-context indicator that evaluates apparent bullish and bearish reversal candles as developing hypotheses rather than automatic trade signals.
A reversal candle can look persuasive while still forming in a location where the market has not completed the structural work normally needed to support a genuine turn. This script was designed to examine that distinction.
Instead of asking only, “Is this a hammer, engulfing candle, pin bar, outside reversal, morning star, or evening star?”, the indicator asks a more useful question:
Has the surrounding market context earned the reversal thesis, or is the candle vulnerable to becoming a continuation trap?
WHAT THE SCRIPT ANALYZES
The indicator combines candle geometry with several independent context layers:
• Named intraday key-level zones:
- Previous-Day High and Low
- Developing Session High and Low
- Session VWAP
- Nearest configured Round Number
• Named swing key-level zones:
- Previous-Week High and Low
- Previous-Month High and Low
- Confirmed Swing High and Low
- Two optional user-defined manual levels
• Key-level distance and confluence
• Repeated-level testing and level-fatigue proxy
• Nearby confirmed swing references that may represent probable unswept liquidity
• Round-number surface-bounce behavior
• Relative-volume and true-range expansion used as a News-Like Event Proxy
• Three configurable higher-timeframe trend contexts:
- Tactical
- Structural
- Macro
• Persistent candidate memory
• Early retail-trap warnings
• Confirmed reversal-failure events
HOW THE ENGINE WORKS
1. A supported reversal pattern is detected.
2. The pattern receives a raw geometry score based on measurable candle proportions.
3. Setup quality is adjusted according to location. A strong-looking candle that forms away from every enabled key level is downgraded.
4. Trap risk is calculated from contextual warnings, including poor location, nearby unswept swing references, repeated testing, round-number behavior, abnormal expansion, and higher-timeframe contradiction.
5. The candidate is preserved for a configurable evaluation window rather than being recreated on every bar.
6. A WARN event can appear when the reversal candle is contextually vulnerable but has not yet failed.
7. A confirmed BT event appears only when price later violates the stored reversal thesis.
This separation matters. A warning is not treated as a confirmed trap, and candle geometry is not treated as reversal proof.
HOW TO USE
Apply the indicator to the chart timeframe used for execution.
Configure the three higher timeframes so they represent the context relevant to your trading horizon. For example, a lower-timeframe trader may use 15 minutes, 1 hour, and 4 hours.
Keep the named zones visible while learning the chart map. The script can display abbreviated names such as PDH, PDL, PWH, PWL, PMH, PML, SH, SL, VWAP, and RN, or spell the names out fully.
The available chart-label modes are:
• Off — hides event labels.
• Stealth — shows confirmed booby traps only.
• Icon Only — uses minimal symbols while preserving hover explanations.
• Compact — shows short event codes and associated higher timeframes.
• Verbose — prints classifications, scores, and higher-timeframe conflict directly on the chart.
Interpret the events as follows:
• Grey candidate marker:
A reversal pattern has been detected. This is an observation, not an entry signal.
• WARN:
Contextual trap risk is elevated, but the candidate has not yet been invalidated.
• BT:
The stored reversal thesis failed during its evaluation window.
Hover over labels for the exact reasons that contributed to the event.
WHY THIS SCRIPT IS VALUABLE
Many candlestick scanners stop at pattern recognition. That can encourage traders to react to appearance without evaluating location, unfinished liquidity work, repeated level testing, abnormal expansion, or higher-timeframe continuation pressure.
Candle Majick - Booby Trap Detector mk1 is designed to fill that gap.
Its value is not that it finds more reversal candles. Its value is that it:
• downgrades unsupported reversal setups;
• distinguishes warnings from confirmed failures;
• preserves the original candidate context;
• associates trap events with three higher-timeframe regimes;
• provides named key-level zones for faster chart cognition;
• and explains why a candle received its classification.
ORIGINALITY AND SOURCE DISCLOSURE
This implementation was independently written for this project in Pine Script v6.
No third-party or previously published Pine source code was copied, adapted, translated, or incorporated into this implementation. The script uses PulseWire’s documented Pine built-ins, standard mathematical operations, and original project-specific logic for candidate memory, scoring, key-level zoning, higher-timeframe context, event classification, visual presentation, and explanations.
EDUCATIONAL TOOLTIP NOTICE
The tooltips are included for education, transparency, and auditability. They explain which measured facts and explicitly identified proxies contributed to a warning or trap classification.
The tooltips are not advertising, financial advice, performance guarantees, or claims of predictive certainty.
IMPORTANT LIMITATIONS
This script does not have direct access to:
• resting orders;
• institutional intent;
• real stop orders;
• confirmed economic-news causation;
• bid/ask delta;
• cumulative volume delta;
• footprint imbalance;
• or market-by-order data.
Accordingly, terms such as Probable Liquidity, News-Like Event, Level Fatigue, and Trap Risk describe analytical proxies—not directly observed order-flow facts.
Higher-timeframe requests use lookahead disabled for trend calculations. Swing references use confirmed pivots. Candidate markers remain on their original bars, while warnings and confirmed failures appear only when those events are observed.
This indicator is an analytical and educational tool. It should be combined with independent judgment, risk management, and appropriate market knowledge.
Indicator

QT_Mehr_Aria V5Here's a publish-ready description — it presents the tool's features and how to use it, while keeping every proprietary rule out (consistent with the sanitized script). I'll save it in the repo docs too.
Saved to pulsewire-description.md. Here's the text to paste into the PulseWire publication:
QT_Mehr_Aria V5 — Quarterly Theory Cycles + Triad SMT
WHAT IT DOES
This indicator maps the market's time structure into nested cycles based on Quarterly Theory — from 22/23-minute micro cycles up to yearly and 4-year cycles — and scans a triad of three correlated instruments for SMT divergence at every scale. It draws cycle boundaries, quarter labels and True Opens, and prints signal and entry marks with configurable triggers and alerts.
CYCLES
Nine nested scales: Micro (22/23 min), 90-Minute, 6H, Daily, Weekly, Monthly, Quarterly, Yearly and 4-Year — all anchored to the New York 18:00 session open, DST-safe. On every chart timeframe the indicator works three tiers (LTF / MTF / HTF); higher scales can be shown optionally. Supported chart timeframes: 1m, 5m, 15m, 1h, 4h, Daily, Weekly and Monthly.
SMT DETECTION
Choose a triad preset (NQ/ES/YM · DXY/EU/GU · NQ/ES/NKD · BTC/ETH/SOL · DXY/6E/6B · GC/SI/HG · ZB/TN/ZF) or set three custom symbols. Each symbol is evaluated against its own reference level inside the cycle structure; when the triad disagrees, a divergence mark prints on the bar where it happened:
▽ bearish SMT · △ bullish SMT · ▼ / ▲ entry marks · ✕ invalidated signal · Ts true sweep (optional) · ▽? / △? forming on the live bar (optional)
Inverse-correlated triads (e.g., DXY against EU/GU) are handled automatically — custom triads get per-symbol inverse switches. Detection basis is selectable (wick, close, or wick+close confluence), and the entry trigger can be immediate or CISD close-through. A quarter-pair panel controls which quarter relationships are evaluated, and an optional True-Open premium/discount gate is included (off by default).
TRUE OPENS
TMSO, TSO (session), TDO (daily), TWO (weekly), TMO (monthly), TQO (quarterly) and TYO (yearly) — each drawn from the true opening price of its cycle, on the chart timeframes where it is tradeable.
QUARTER LABELS
A label row names each timeframe's quarters — micro quarters on 1m, up through days, weeks, months, calendar quarters and years on higher charts. One label per window, centered in the window.
SIGNAL CONTROL
The Signals group shows exactly what you want and nothing more: SMT marks, entry marks, invalidation ✕, TS marks, forming marks, and whether scales above your HTF tier draw at all. Per-cycle and per-tier visibility switches are separate. An experimental time-based signal filter is included (off by default).
ALERTS
Four static alert conditions (SMT bearish/bullish, CISD entry bearish/bullish) plus detailed alert() payloads carrying the scale, pair, symbols and cause — create the alert with "Any alert() function call". Alerts can be scoped to one scale or all.
NOTES
Chart one of the triad symbols for the cleanest reading; with an inverse member in the triad (e.g., DXY), signal direction reads from the other two symbols.
Time anchors are New York based; built around futures sessions and also usable on FX, crypto and stocks.
The top-right readout always shows the active triad and configuration.
Educational tool for time-based market analysis — not financial advice.
What it deliberately does not contain: how divergence is judged inside the quarters, the pair semantics, the close/wick reference rule, the inverse-mirroring mechanics, and the experimental filter's rules — those stay only in your local repo docs. It names features (which anyone can see in the settings panel anyway) and explains usage, which is what PulseWire moderators require for protected-source publications.
خلاصه: متن توضیحات برای انتشار در تریدینگویو آماده شد — فقط قابلیتها و طرز استفاده را میگوید، هیچ قاعدهای از منطق پشت ابزار لو نمیرود. متن در docs/pulsewire-description.md ذخیره شده؛ کافی است همین را در صفحهی انتشار کپی کنی.Here's a publish-ready description — it presents the tool's features and how to use it, while keeping every proprietary rule out (consistent with the sanitized script). I'll save it in the repo docs too.
Saved to pulsewire-description.md. Here's the text to paste into the PulseWire publication:
QT_Mehr_Aria V5 — Quarterly Theory Cycles + Triad SMT
WHAT IT DOES
This indicator maps the market's time structure into nested cycles based on Quarterly Theory — from 22/23-minute micro cycles up to yearly and 4-year cycles — and scans a triad of three correlated instruments for SMT divergence at every scale. It draws cycle boundaries, quarter labels and True Opens, and prints signal and entry marks with configurable triggers and alerts.
CYCLES
Nine nested scales: Micro (22/23 min), 90-Minute, 6H, Daily, Weekly, Monthly, Quarterly, Yearly and 4-Year — all anchored to the New York 18:00 session open, DST-safe. On every chart timeframe the indicator works three tiers (LTF / MTF / HTF); higher scales can be shown optionally. Supported chart timeframes: 1m, 5m, 15m, 1h, 4h, Daily, Weekly and Monthly.
SMT DETECTION
Choose a triad preset (NQ/ES/YM · DXY/EU/GU · NQ/ES/NKD · BTC/ETH/SOL · DXY/6E/6B · GC/SI/HG · ZB/TN/ZF) or set three custom symbols. Each symbol is evaluated against its own reference level inside the cycle structure; when the triad disagrees, a divergence mark prints on the bar where it happened:
▽ bearish SMT · △ bullish SMT · ▼ / ▲ entry marks · ✕ invalidated signal · Ts true sweep (optional) · ▽? / △? forming on the live bar (optional)
Inverse-correlated triads (e.g., DXY against EU/GU) are handled automatically — custom triads get per-symbol inverse switches. Detection basis is selectable (wick, close, or wick+close confluence), and the entry trigger can be immediate or CISD close-through. A quarter-pair panel controls which quarter relationships are evaluated, and an optional True-Open premium/discount gate is included (off by default).
TRUE OPENS
TMSO, TSO (session), TDO (daily), TWO (weekly), TMO (monthly), TQO (quarterly) and TYO (yearly) — each drawn from the true opening price of its cycle, on the chart timeframes where it is tradeable.
QUARTER LABELS
A label row names each timeframe's quarters — micro quarters on 1m, up through days, weeks, months, calendar quarters and years on higher charts. One label per window, centered in the window.
SIGNAL CONTROL
The Signals group shows exactly what you want and nothing more: SMT marks, entry marks, invalidation ✕, TS marks, forming marks, and whether scales above your HTF tier draw at all. Per-cycle and per-tier visibility switches are separate. An experimental time-based signal filter is included (off by default).
ALERTS
Four static alert conditions (SMT bearish/bullish, CISD entry bearish/bullish) plus detailed alert() payloads carrying the scale, pair, symbols and cause — create the alert with "Any alert() function call". Alerts can be scoped to one scale or all.
NOTES
Chart one of the triad symbols for the cleanest reading; with an inverse member in the triad (e.g., DXY), signal direction reads from the other two symbols.
Time anchors are New York based; built around futures sessions and also usable on FX, crypto and stocks.
The top-right readout always shows the active triad and configuration.
Educational tool for time-based market analysis — not financial advice.
What it deliberately does not contain: how divergence is judged inside the quarters, the pair semantics, the close/wick reference rule, the inverse-mirroring mechanics, and the experimental filter's rules — those stay only in your local repo docs. It names features (which anyone can see in the settings panel anyway) and explains usage, which is what PulseWire moderators require for protected-source publications.
Indicator

[Core Convexity] SMT Divergences
## Description
The SMT Divergences indicator is a comprehensive tool designed to detect and manage Smart Money Tool (SMT) divergences across multiple assets directly on your primary chart. SMT divergence is a classic concept used to identify institutional accumulation or distribution by revealing a lack of correlation between highly correlated assets (such as NQ, ES, and YM, or Gold and Silver) at key structural swing points.
This script automates the detection process, filters out duplicate signals, and tracks mitigation (when an SMT structure is broken or invalidated by price action) to keep your charts clean and actionable.
### Key Features
* **Automatic Asset Pairing:** Detects the root symbol of your current chart and automatically pulls data for the most relevant correlated instruments. For example, if you are viewing NQ, it will automatically check ES and YM. It also features a dedicated "No YM" mode to simplify index correlation down to NQ and ES exclusively.
* **Custom Asset Input:** Switch the selection mode to "Custom" to manually input any two symbols you wish to compare against your primary chart.
* **Dual-Layer Detection:** The script scans both immediate pivot points and structural swings (Highs/Lows) to provide both near-term and macro SMT identification.
* **Dynamic Mitigation Stack:** When price invalidates an SMT level, the indicator can immediately remove the visual lines or keep them on the chart for a specified expiration window with a configurable tag to track historical structural breaches.
* **Advanced Merging Logic:** To eliminate chart clutter, the script includes options to merge duplicate rays triggering on the same candle, as well as merging same-origin SMTs into a single combined projection point.
---
## How It Works
An SMT Divergence occurs when one asset fails to confirm a new swing high or low made by a correlated asset:
* **Bearish SMT:** The primary asset fails to make a higher high while the correlated asset successfully drives to a higher high, indicating underlying weakness.
* **Bullish SMT:** The primary asset fails to make a lower low while the correlated asset successfully drives to a lower low, indicating underlying strength.
The script runs a safe lookback sequence up to 450 bars to find matching historical pivot structures, compares the relationship between the primary chart and your secondary/tertiary assets, and plots precision lines directly between the corresponding structural points.
---
## Settings and Inputs
### System
* **Real-Time Detection:** When enabled, calculations update dynamically on the live, open bar. When disabled, signals confirm strictly on the close of the candle.
* **Merge Duplicate Rays:** If both tracked assets trigger an SMT divergence on the exact same bar, this option condenses them into a single line with a combined text label.
* **Merge Same-Origin SMTs:** Combines multiple SMT lines originating from the exact same candle, extending the line to the furthest matching historical point and appending an (M) tag.
* **Enable Structure SMT:** Expands the algorithm to look for structural pivot failures in addition to immediate, strict candle-to-candle alignment.
* **Lookback:** Determines how many historical bars the script will scan to find a matching structural pivot point (capped safely up to 500 bars).
* **Min Bars for Line/Label:** Configures the strict visual threshold required before rendering a line or a text label to screen, filtering out negligible, noise-level divergences.
### Broken SMT Mitigation
* **Remove Broken SMTs:** Activates the garbage collection system to handle lines when price violates the divergence level.
* **Bars to Keep After Invalidation:** Determines how long a broken SMT line remains visible on your chart before deletion. Set this to 0 for immediate visual removal.
* **Show (X) Tag on Invalidated:** Appends an (X) character to the text labels of broken levels during their expiration window.
* **Mitigation Logic:** Choose between "Pair Only (Strict)" which invalidates the line if the primary chart and the specific asset break structure, or "All Connected (Global)" which requires all three assets to breach the level before declaring an invalidation.
### Asset Selection and Styling
* **Asset Selection Mode:** Toggle between Automatic, Automatic (No YM), or Custom routing.
* **Check Mode:** Options include "Strict" (where bullish lines check highs and bearish lines check lows) or "Both High & Low" for unrestricted pivot mapping.
* **Styling Groups:** Fully customize visibility, font sizes, colors, line widths, and line styles (Solid, Dashed, Dotted) independently for both Asset 1 and Asset 2 configurations. Indicator

ICT SMC H4 FVG Retest M15 Scalping KillzonesICT SMC H4 FVG Retest — M15 Scalping Killzones
Overview
ICT SMC H4 FVG Retest — M15 Scalping Killzones is a multi-timeframe trading indicator designed to identify structured intraday setups based on:
* Confirmed higher-timeframe Fair Value Gaps
* M15 execution Fair Value Gaps
* ICT-style killzones
* Session highs and lows
* H4 buy-side and sell-side liquidity
* Market or limit-entry models
* Liquidity-based profit targets
The indicator is intended to be used on a 15-minute chart.
Its purpose is not to generate a large number of signals. It is designed to wait for a higher-timeframe imbalance, a valid departure from that zone, and a later retest during an active trading session.
⸻
Core strategy
The standard short setup follows this sequence:
1. A bearish H4 Fair Value Gap is confirmed.
2. Price moves below the H4 FVG.
3. Price later returns to the H4 FVG during an enabled killzone.
4. A bearish M15 FVG forms and overlaps the H4 zone.
5. The M15 candle closes and confirms the setup.
6. The indicator displays the proposed entry, stop-loss and target.
The bullish setup uses the opposite sequence:
1. A bullish H4 FVG is confirmed.
2. Price moves above the H4 FVG.
3. Price later returns to the H4 FVG during an enabled killzone.
4. A bullish M15 FVG forms inside or overlapping the H4 zone.
5. The M15 candle closes and confirms the setup.
6. The indicator displays the proposed entry, stop-loss and target.
The H4 FVG that is created during the initial market displacement is treated as a future retest zone. The indicator does not use the M15 FVGs that formed before the H4 candle was confirmed.
⸻
Non-repainting higher-timeframe logic
The indicator only uses confirmed higher-timeframe candles.
A new H4 FVG is therefore displayed only after the third H4 candle in the three-candle FVG sequence has closed.
This avoids using an H4 imbalance that may appear intrabar and disappear before the H4 candle closes.
The trade-off is intentional:
* the FVG is not shown as confirmed while the H4 candle is still forming;
* once the H4 candle closes, the confirmed zone appears on the M15 chart;
* the indicator then waits for a future retest.
The confirmed HTF FVG is used for signals and alerts. No unconfirmed HTF data is used for trade validation.
⸻
Fair Value Gap definition
Bullish FVG
A bullish FVG exists when the low of the third candle is above the high of the first candle.
The imbalance is the price range between:
* the high of the first candle;
* the low of the third candle.
Bearish FVG
A bearish FVG exists when the high of the third candle is below the low of the first candle.
The imbalance is the price range between:
* the high of the third candle;
* the low of the first candle.
The large middle candle is usually the displacement candle, but its full body is not the FVG. The FVG is only the untraded space between the first and third candles.
⸻
Entry modes
The indicator includes three HTF retest models.
A — Strict retest
Price must first close outside the HTF FVG, then return to the zone.
For a bearish FVG:
* price must close below the FVG;
* price must later return into it.
For a bullish FVG:
* price must close above the FVG;
* price must later return into it.
This is the most selective mode and is the default setting.
A′ — Tolerant retest
A wick outside the HTF FVG is sufficient to validate the departure.
This mode produces more opportunities than the strict model but may accept less decisive departures.
B — Direct tap in killzone
No prior departure from the HTF FVG is required.
A direct touch of the HTF zone during an enabled killzone can become eligible if the remaining entry conditions are satisfied.
This is the least selective mode.
⸻
M15 confirmation
By default, the indicator requires an M15 Fair Value Gap in the same direction as the HTF FVG.
For a short:
* the HTF FVG must be bearish;
* the M15 FVG must also be bearish;
* the M15 FVG must overlap the HTF FVG.
For a long:
* the HTF FVG must be bullish;
* the M15 FVG must also be bullish;
* the M15 FVG must overlap the HTF FVG.
The M15 FVG size filter can be used to ignore very small imbalances.
When Require an M15 FVG is disabled, the indicator can generate a setup from a simple HTF FVG retest during a killzone.
⸻
Candle-close confirmation
The setting:
Validate signals only at M15 close
should normally remain enabled.
When enabled:
* an intrabar M15 FVG is not enough;
* the setup must still be valid when the M15 candle closes;
* triangles and alerts are produced only from confirmed M15 conditions.
This prevents signals from appearing during a candle and disappearing before its close.
⸻
Killzones
Killzones are anchored to the native timezone of each market. They automatically follow daylight-saving changes where applicable.
Asia killzone
Default timezone:
Asia/Tokyo
Default window:
09:00–13:00 Tokyo time
London killzone
Default timezone:
Europe/London
Default window:
07:00–10:00 London time
New York AM killzone
Default timezone:
America/New_York
Default window:
09:30–11:00 New York time
New York PM killzone
Default timezone:
America/New_York
Default window:
13:30–16:00 New York time
Each killzone can be enabled, disabled or adjusted independently.
The background colors only indicate an active trading window. They do not indicate bullish or bearish direction.
⸻
Entry types
Market at close
The proposed entry is the closing price of the confirmed signal candle.
The setup becomes visually active immediately after confirmation.
Limit at FVG edge
The indicator places a theoretical limit entry at the relevant edge of the M15 FVG.
For a bearish setup, the entry is placed at the lower boundary of the bearish M15 FVG.
For a bullish setup, the entry is placed at the upper boundary of the bullish M15 FVG.
If M15 confirmation is disabled, the relevant HTF FVG boundary is used instead.
The limit order remains pending for the selected number of M15 candles. If it is not filled before expiration, the order is cancelled and the HTF zone may become available for a later setup.
⸻
Stop-loss placement
For a bearish setup, the stop-loss is placed:
* above the opposite side of the M15 FVG;
* plus the selected tick buffer.
For a bullish setup, the stop-loss is placed:
* below the opposite side of the M15 FVG;
* minus the selected tick buffer.
When M15 FVG confirmation is disabled, the stop is placed beyond the opposite side of the HTF FVG.
The Stop buffer in ticks setting adds a small safety margin beyond the imbalance boundary.
⸻
Profit targets
The indicator supports two target models.
Liquidity target
When enabled, the indicator searches for the nearest eligible liquidity level in the direction of the trade.
Possible targets include:
* previous Asia session high or low;
* previous London session high or low;
* previous New York session high or low;
* H4 buy-side liquidity;
* H4 sell-side liquidity;
* the current session high or low.
A target must offer at least the selected minimum reward-to-risk ratio.
Fixed R:R fallback
If no eligible liquidity target is available, the indicator uses the selected fixed reward-to-risk ratio.
The default fallback is:
2.0R
⸻
Swept liquidity handling
Two modes are available.
Legacy v3.3
Previously swept session levels and H4 liquidity levels may still be used as targets.
This mode preserves the original behavior of the earlier indicator.
Untouched liquidity only
Once a liquidity occurrence has been swept, it is no longer eligible as a target.
A new pivot or a new completed session may later create a new active liquidity occurrence at the same or a similar price.
This mode is generally more selective because it targets liquidity that has not yet been consumed.
⸻
Session levels
The indicator tracks the highs and lows of:
* Asia
* London
* New York
Each session is calculated in its native timezone, which prevents the levels from drifting when the United Kingdom or the United States changes between standard time and daylight-saving time.
At the end of a session:
* the high and low are frozen;
* their labels remain anchored to the session close;
* the levels can be used as potential liquidity targets.
The number of stored sessions can be adjusted in the settings.
⸻
H4 SSL and BSL levels
The indicator also plots confirmed H4 pivot liquidity.
BSL
Buy-Side Liquidity
Displayed above confirmed H4 swing highs.
SSL
Sell-Side Liquidity
Displayed below confirmed H4 swing lows.
The pivot lookback determines the significance and confirmation delay of these levels.
A larger lookback produces more structurally significant levels, but they are confirmed later.
⸻
Dashboard
The dashboard shows the current state of the setup for both long and short directions.
Three display sizes are available:
* Small
* Medium
* Large
HTF active
A confirmed HTF FVG is currently active in that direction.
HTF departure
Price has moved outside the HTF FVG according to the selected A or A′ departure logic.
In Mode B, a prior departure is not required for the final signal.
HTF retest
The current candle is touching or overlapping the active HTF FVG.
Killzone
The current candle is inside at least one enabled killzone.
M15 FVG
A valid M15 FVG exists in that direction and passes the minimum-size filter.
HTF overlap
The M15 FVG overlaps the active HTF FVG.
M15 close
The current M15 candle is confirmed.
While the live M15 candle is still forming, this field may display No.
Available
No previous trade or pending limit order is currently blocking a new setup.
Raw signal
The structural conditions are satisfied before final trade-availability and candle-close validation.
Signal
All required conditions are satisfied and a valid setup has been produced.
⸻
Signal markers
A confirmed short setup is displayed as:
* a red downward triangle;
* the letter S.
A confirmed long setup is displayed as:
* a green upward triangle;
* the letter L.
The indicator also creates a label containing:
* entry price;
* stop-loss;
* target;
* expected reward-to-risk ratio.
The risk and reward areas are displayed directly on the chart.
⸻
Near-miss labels
The optional Show near misses setting helps diagnose why an otherwise valid-looking setup was rejected.
Possible reasons include:
* LEFT — price has not yet departed from the HTF FVG;
* KZ — the setup is outside an enabled killzone;
* CLOSE — the M15 candle has not yet closed;
* BUSY — a trade or limit order is already active.
Near-miss labels are primarily intended for testing and configuration. They may create visual clutter during normal use.
⸻
Alerts
The indicator provides separate alert conditions for:
* LONG setup detected;
* SHORT setup detected;
* LONG limit order filled;
* SHORT limit order filled;
* target reached;
* stop-loss reached.
For confirmed signals, alerts should be configured to trigger once per bar close.
⸻
Recommended starting configuration
For index futures such as NQ or MNQ:
* Chart timeframe: 15 minutes
* HTF FVG timeframe: 240 minutes
* Entry logic: A — Strict retest
* Require M15 FVG: Enabled
* Validate only at M15 close: Enabled
* Entry type: Limit at FVG edge or Market at close
* Minimum M15 FVG size: adjust to the instrument
* Liquidity mode: Untouched liquidity only
* Minimum target R:R: 1.0–1.5
* Fallback R:R: 2.0
* London killzone: Enabled
* New York AM killzone: Enabled
The Asia and New York PM killzones can be enabled according to the instrument and the trader’s preferred session.
⸻
Practical workflow
1. Apply the indicator to an M15 chart.
2. Confirm that an HTF FVG is active in the dashboard.
3. Wait for price to move away from the HTF FVG.
4. Wait for price to return to the zone during an enabled killzone.
5. Look for a same-direction M15 FVG inside or overlapping the HTF FVG.
6. Wait for the M15 candle to close.
7. Review the proposed entry, stop and target.
8. Confirm the broader market context before placing a trade.
The indicator is best used as a structured decision-support tool rather than as a fully autonomous trading system.
⸻
Important limitations
* A confirmed H4 FVG appears only after the relevant H4 candle closes.
* The indicator will not retrospectively use an M15 FVG that formed before the H4 FVG became confirmed.
* H4 pivot liquidity is confirmed with delay because pivots require candles on both sides.
* If both the stop and target are touched during the same M15 candle, the visual trade logic uses the stop-loss as the conservative outcome.
* The script is an indicator, not a broker emulator or complete backtesting strategy.
* No indicator can guarantee profitability.
⸻
Disclaimer
This indicator is provided for educational and analytical purposes only. It does not constitute financial advice, investment advice or a recommendation to buy or sell any financial instrument.
Trading futures, leveraged products and other financial markets involves substantial risk. Users are responsible for testing the indicator, defining their own risk-management rules and determining whether the methodology is suitable for their trading plan. Indicator

1st Presented Fvg's [M1D]OVERVIEW
1st Presented Fvg's (M1D) isolates the very first Fair Value Gap each hourly window prints —
the one everything else in that hour reacts to — and tracks its full lifecycle: does it
hold, does it fail, does it invert, and does the inversion validate on a retest. Instead of
marking every FVG on the chart, it keeps only the one gap the model cares about per hour and
reports what happened to it.
It is a single-timeframe, event-tracking tool rather than a signal generator. It tags one
gap per hourly window, runs a strict hold / fail / invert / validate state machine on it, and
rolls a running Hold %, Inverted count and Valid IFVG count into a small dashboard so you can
see how the current session is actually behaving.
Detection and every state transition evaluate on confirmed bars only — nothing is decided
intrabar, and the chart requires an intraday timeframe of 60 minutes or less.
WHAT IT PLOTS
- 1st Presented FVG zone — a coloured box drawn from the exact three-candle gap, labelled
with its hourly window (e.g. "1st - 2pm") and an optional macro-window time suffix (e.g.
"1st - 2pm 1:50-2:10"). Zone colour cycles through your chosen palette by hour.
- NY Open tag — inside the 9:30-10:00 NY session specifically, the gap is labelled "1st -
NY Open" instead of the generic hour label, and only appears once price has swept a recent
pivot high or low first (see Key Definitions below).
- Inversion (IFVG) tag — a gap that held, then closed through, turns orange and is
relabelled IFVG.
- Valid IFVG tag (✔) — once an inverted gap is retested (price trades back into it), it
gains a check mark and a brighter fill, so a live, usable IFVG stands out from one still
forming.
- Failed gap (optional) — a gap that closed through without ever holding can be kept on
chart dimmed for context, or deleted outright; either way it is counted in the stats.
- Dashboard (M1D) — a small monospace table showing the current session, current time, and
a Today vs. Total read of gaps tagged, gaps held, Hold %, gaps inverted, and validated
IFVGs.
KEY DEFINITIONS
- Held — the point at which a 1st Presented FVG is considered to have defended its zone,
rather than just being tagged. Governed by the Hold Definition setting below.
- Reject & Close Away (default Hold Definition) — price must trade into the gap and then
close back outside its proximal edge before it counts as held. A tap that closes through
without that rejection is scored as a fail, not a hold — so Hold % reflects confirmed
rejections, not every incidental touch.
- Touch & Hold (alternate Hold Definition) — any trade into the gap that doesn't close
through it counts as held immediately, no rejection required.
- Inversion (IFVG) — a gap that held first, then later closed through it. This sequence is
mandatory: a gap that runs straight through without ever holding is a fail, never an
inversion.
- Valid IFVG — an inverted gap that price has subsequently traded back into.
- Hold % — held gaps ÷ gaps tagged, shown separately for Today and All-Time.
- NY Open liquidity sweep — inside the 9:30-10:00 New York session, the 1st Presented tag
runs on its own daily slot, separate from the normal hourly one, so an earlier random gap
in the same clock hour can't use up the slot before the open range even happens. That slot
only fills once price has swept a recent confirmed swing pivot — a low for a bullish gap,
a high for a bearish gap — immediately before the gap forms, so the tag reflects a genuine
liquidity grab rather than the first random three-candle gap after 9:30.
HOW TO USE IT
Reading the state of the current gap
- A live-coloured zone with no orange means the 1st Presented FVG is still fresh or holding
— treat it as an active zone.
- Orange means it has inverted — price closed through it after holding, so it now has the
opposite role.
- Orange with a ✔ means the inversion has been retested and validated — the strongest read
of the three, since price has both flipped the gap and come back to confirm it.
- A dimmed zone (if you keep failed gaps) means it closed through without ever holding —
context only, not a level to lean on.
Reading the dashboard
- Hold % (Today vs. All-Time) tells you how respected first-hour gaps have been — a low
reading suggests today's imbalances are being run through rather than defended.
- Inverted vs. Valid IFVG counts show how often a failed gap actually resolves into a
confirmed continuation level (✔) rather than just failing outright.
- Session tells you which killzone you're in without leaving the chart.
Choosing your settings
- Use Reject & Close Away when you only want gaps that show a confirmed rejection —
Touch & Hold is looser and counts the first touch, useful for comparing how often price
even reaches the gap versus how often it truly holds.
- Switch Mode to First Of Each Direction if you want to track a bullish and a bearish 1st
gap side-by-side within the same hour, instead of only the first of either.
- Turn on the Displacement Filter if you want the tag to skip small, low-conviction gaps in
favour of the next one that clears your ATR multiple.
- Leave NY Open: Require Liquidity Sweep on if you specifically want the opening-range gap
isolated from the generic hourly noise; adjust Pivot Lookback to make the swing-pivot
reference tighter (fewer bars, more sensitive) or wider (more bars, more established swings).
SETTINGS
- Detection — 1st FVG Mode (First Of Either / First Of Each Direction), Hourly Window
Timezone, Displacement Filter (ATR × multiple), Restrict To Time Window, NY Open (9:30-
10:00): Require Liquidity Sweep, Pivot Lookback.
- Inversion (IFVG) — Track Inversions toggle, Hold Definition (Touch & Hold / Reject &
Close Away).
- Labels — Show Labels, Label Text prefix, Show Macro Window Time, Label Size, Label
Colour.
- Colours — Colours In Cycle (2 or 3), the cycle colours, Inversion Colour, Zone
Transparency.
- Display — Gap Lifetime (Until Invalidated / End Of Hour / End Of Day), Keep Failed Gaps
(Dimmed), Max Gaps On Chart.
- Stats Table — Show Stats Table, Position, Text Size.
This is a decision-support and context tool for discretionary ICT trading. It does not
generate buy or sell signals and does not place trades. This is not financial advice, and no
market's past behaviour is indicative of future results.
Indicator

Luxy UT God Mode - UT-Bot Forecast, Signals, Zones and RiskLuxy UT God Mode turns the classic UT Bot ATR trailing-stop into a complete, self-contained trading cockpit: momentum-adaptive buy/sell signals, a forward-looking Trend Duration Forecast, auto support/resistance zones, a 0-100 Confidence Score, a built-in multi-currency Risk Calculator, and automatic Stop Loss / Take Profit levels - all on one overlay, all non-repainting.
Note: Every forecast, probability, and statistic in this tool is a calculation based on the chart's own historical behavior. They describe past patterns, not guaranteed future results.
WHAT MAKES THIS DIFFERENT
A normal UT Bot only tells you the trend flipped. Luxy UT God Mode answers the three questions a trader actually asks at the moment of a signal:
1. Should I trust this flip? - a Confidence Score (0-100) blends seven engines into one number.
2. How long might this trend run? - a Trend Duration Forecast projects the expected remaining life of the current trend, drawn as a fading strip with survival-probability milestones.
3. What do I risk and how big do I trade? - automatic Stop Loss, R-based Take Profits, and a position-size calculator in your own account currency.
Everything is layered so you can run it bare-bones (just clean signals) or switch on the full "God Mode" stack.
METHODOLOGY AND CREDITS
This indicator implements proven concepts using entirely original code.
- UT Bot ATR trailing logic - original concept by @QuantNomad . This implementation is a significant rework: it adds volume weighting, momentum-adaptive sensitivity, a composite multi-method stop loss, a full multi-filter confirmation stack, multi-timeframe confluence, and the statistical trend-duration engine described below.
Important: this is an educational analysis tool. It does not guarantee any trading result. Always do your own analysis and manage risk.
THE SEVEN ENGINES (and the Confidence Score that fuses them)
Each bar, the script scores how well the current setup aligns and sums it into a single 0-100 Confidence Score with a visual progress bar:
UT Bot direction - is price above/below the momentum-adaptive trailing stop
SuperTrend - direction plus a distance-from-line strength bonus
Market Structure - position inside the recent swing range and structure breaks
ADX Regime - is the market trending (signals allowed) or choppy (blocked)
Multi-Timeframe - does a higher timeframe agree with the signal direction
Volume - is conviction backed by above-average volume
RSI Divergence - is a recent divergence supporting or opposing the signal
Read it at a glance: 80+ = strong, 60+ = good, 40+ = weak, under 40 = very weak. Hover the Confidence cell for the full per-engine breakdown.
1. TREND DURATION FORECAST - the headline feature
When the trend flips, the script projects how many more bars the new trend may last, based on the chart's own past trends.
How it works:
Every completed trend's duration is recorded, kept separately for bullish and bearish trends.
On each new flip the script estimates the expected duration using an exponentially-weighted average and standard deviation (recent trends weighted more heavily).
The estimate is drawn as a fading gradient strip that projects forward from the flip, with a "Trend Analysis" label and survival-probability milestones at 25% / 50% / 75% / 90% / 100% of the projection.
The percentages are empirical - they show the share of past same-direction trends on THIS chart that actually lasted at least that long. Not a fixed textbook curve.
Three forecast modes:
Simple - median duration only. Clean and fast.
Standard - exponentially-weighted average plus spread (recommended default).
Advanced - Standard plus five adaptive multipliers: Structure (proximity to S/R), Asset Type (volatility profile), Flip Strength (volume + filters passed), Error Learning (self-correction from its own past misses), and Regime (trending vs choppy).
When history is thin, the forecast honestly falls back to a combined estimate and flags it, rather than showing false precision.
2. MOMENTUM-ADAPTIVE UT BOT CORE
The trailing stop is not a fixed ATR multiple. The effective sensitivity adapts each bar to:
Momentum - faster momentum widens the trail to stay in strong moves
Relative volume - conviction adjusts the distance
Asset type - auto-detected (crypto, forex, futures, index, fund, CFD, bond, stock) with a per-class multiplier, or set it manually
Volatility mode - Fixed, Dynamic, or Aggressive auto-adjustment to the current volatility regime
The result is a trailing engine that behaves differently on a calm blue-chip than on a volatile small-cap or crypto pair - without you re-tuning it.
3. ANTI-WHIPSAW AND SIGNAL FILTER STACK
Signals only fire when they survive the filters you enable, so you control the trade-off between frequency and quality:
ADX Regime - block signals in choppy, non-trending conditions
Cooldown and Confirmation - minimum bars between signals and N-bar direction confirmation
Swing - only trade aligned with recent swing structure
Full Candle - require the whole candle beyond the trailing line (no straddles)
Volume, RSI, Hull MA, SuperTrend - optional confirmation layers
High-Volatility and % Change - only trade meaningful moves
2-Bar Confirm - extra confirmation for volatile markets
Every active filter appears as a row in the table with a live pass/fail state, so you always know why a flip did or did not become a signal.
4. SUPPORT / RESISTANCE ZONES
The script clusters significant swing pivots into persistent price zones and draws only the two that matter right now: the nearest resistance above price and the nearest support below price. Each zone shows its price and touch count (e.g. "S 4.19 (3x)" = a support tested three times). A level that price has broken through drops off automatically, and an optional Zone Filter can block buys into resistance and sells into support. Pivot strength is adjustable so you can show only major levels.
5. AUTOMATIC STOP LOSS, TAKE PROFIT AND RISK CALCULATOR
On every signal the script draws a complete trade plan:
Stop Loss - choose from seven methods: ATR, % based, tick based, swing, scaled ATR, Smart Adaptive (auto-scales to volatility), or Safer (widest of several).
Take Profit - TP1 / TP1.5 / TP2 / TP3 as R multiples of the stop distance, with optional price and % labels, and a freeze-on-touch check mark for journaling.
Entry line - marks the signal price; all lines can auto-limit to 10 bars for a clean chart.
Risk Calculator - enter account size and risk (% or fixed amount) and it returns the position size in shares/contracts, in your own currency, with live FX conversion (USD, EUR, GBP, JPY, CAD, AUD, CHF) or a manual rate.
6. MULTI-TIMEFRAME CONFLUENCE AND RSI DIVERGENCE
The table shows the trend of up to seven higher timeframes (5m, 15m, 30m, 1H, 4H, D, W) via an EMA 9/21 cross, so you can see whether the bigger picture agrees before you act. An optional MTF filter blocks counter-trend signals. Separately, RSI divergence (regular bullish and bearish) is detected, labeled on the chart, and fed into the Confidence Score.
7. LIVE STATUS TABLE
A configurable dashboard (position and size adjustable) summarizes everything: asset type, Confidence Score, adaptive mode, current signal, win-rate / average-bars statistics, multi-timeframe row, divergence, forecast, position size, and one row per active filter - each with a detailed tooltip.
HOW TO USE IT - QUICK START
Step 1 - Add it and pick your sensitivity. Defaults suit intraday (5-15m). For scalping lower the Sensitivity/ATR; for swing raise them (see the Sensitivity tooltip for presets).
Step 2 - Read a signal. A Buy (aqua, below bar) or Sell (orange, above bar) appears only after the bar closes and all enabled filters pass. Check the Confidence Score and the Multi-TF row for context.
Step 3 - Use the trade plan. The Entry, Stop Loss and Take Profit lines draw automatically. Read the Position row for size. Use the Trend Duration Forecast strip as a realistic hold-time expectation - scale out near the median, reassess if price runs past the projection.
Step 4 - Set alerts. Use "Any alert() function call" to receive BUY/SELL and trend-flip alerts on bar close, or pick the specific "Momentum Buy/Sell Signal" conditions. All alerts fire on confirmed bars only.
TUNING FOR MORE OR FEWER SIGNALS
Too few signals: turn off MTF, then Full Candle, then lower the ADX threshold or the Anti-Whipsaw filter. Too many / choppy: raise the ADX threshold, enable Volume and Full Candle, increase Cooldown, or add 2-Bar Confirm. Every filter is independent and shown live in the table.
TECHNICAL NOTES
Pine Script v6, overlay, max bars back 5000.
No repaint: signals, lines, forecast and alerts are committed on bar close (barstate.isconfirmed); all higher-timeframe data uses lookahead_off.
Works on stocks, crypto, forex, futures and indices, on any timeframe.
Higher timeframes and longer history produce more reliable forecasts; a new symbol needs a number of completed trends before the duration model is meaningful.
LIMITATIONS
Trend-following by nature: signals arrive after a trend establishes, not at exact tops/bottoms.
Best in trending conditions; use the ADX regime and filters to avoid chop.
The duration forecast needs history to become meaningful and is a statistical estimate, never a guarantee.
DISCLAIMER
This script is an educational analysis tool, not financial advice. Trading stocks, crypto, forex and futures involves substantial risk of loss - you can lose all invested capital. Forecasts, probabilities and win-rate statistics are calculated from historical chart data and do not guarantee future performance. Test on paper first, and you are solely responsible for your own trading decisions.
Feedback and suggestions are welcome in the comments. Happy trading.
Indicator

Edo Liquidity SweepsEdo Liquidity Sweeps — Detects Liquidity Sweeps of Swing Highs and Lows and Tracks Each One Through Detected, Confirmed and Faded States
Markets move toward liquidity. Above every relevant swing high rests buy-side liquidity — the stops of short positions and the breakout buy orders waiting there. Below every relevant swing low rests sell-side liquidity — the stops of longs and the breakout sells. Those order clusters act as magnets: very often price travels precisely to reach them. A liquidity sweep is the moment that happens and is rejected — price wicks beyond the level to take the resting liquidity, then closes back on the other side, the classic trap that leaves breakout traders offside and frequently turns price around.
Edo Liquidity Sweeps isolates that single event and, crucially, tracks what happens next. It marks each sweep on the chart and follows it through three clear states — Detected, Confirmed and Faded — so you can separate the sweeps that actually reversed price from the ones that failed, all validated on closed bars so the indicator does not repaint. It is the sweep specialist of the Edolab structure family, designed to pair with Edo Liquidity Zones, which maps the liquidity pools these sweeps take.
LIQUIDITY LEVELS: SWING HIGHS AND LOWS
Everything starts from the swings that define where liquidity sits. A swing high is confirmed when a candle has the highest high of its surroundings; a swing low, the lowest low. The size of that surroundings is set by the Swing Profile: Scalper (5 bars each side) tracks short-term liquidity for intraday work, Swing (10 bars, the default) is the balanced setting for 4H and daily, and Long Term (21 bars) watches only the liquidity of the major structures. Each confirmed swing high becomes a buy-side liquidity level to monitor, and each swing low a sell-side one, until price sweeps it.
SWEEP DETECTION
A sweep is detected, on closed bars only, when price pierces a level with a wick but closes on the opposite side. A bearish sweep: the candle's high takes a swing high (grabbing the buy-side liquidity) but the close stays below that level — price pierced the high and rejected it, an downward reversal is expected. A bullish sweep: the candle's low loses a swing low (grabbing the sell-side liquidity) but the close stays above it — price pierced the low and rejected it, an upward reversal is expected. At detection the indicator draws a dotted line at the swept level with a Sweep ▲ or Sweep ▼ label, and records the high and low of the sweep candle itself, which will later decide whether the sweep confirms or fails. A wick that pierces a level but closes back on the same side generates nothing.
THREE STATES: DETECTED, CONFIRMED, FADED
A sweep is not a one-candle signal. The indicator follows each one through three states, evaluated on every closed bar against the range of the sweep candle. Detected: the sweep has just happened and it is not yet known whether price will turn — a dotted line. Confirmed: price confirms the reversal by closing beyond the sweep candle's extreme in the expected direction — the line turns solid and bold and the label gains a ✓. Faded: price closes the opposite way, reclaiming the level, so the sweep failed — the line turns dashed and faded grey and the label gains a ✕. For a bullish sweep, confirmation is a close above the sweep candle's high and a fade is a close below its low; for a bearish sweep it is the mirror. This follow-through confirmation is what separates the operative sweeps from the anecdotal ones: a Confirmed sweep has proven the rejection had continuation, while a Faded one warns that the trap did not work and the level has genuinely been broken.
INFORMATION PANEL
The panel condenses the read into a compact table. It shows the Last Sweep with its direction (Bull ▲ / Bear ▼) and state, and the live count of sweeps in each state: Detected, Confirmed and Faded. The Confirmed-to-Faded ratio gives a quick sense of how reliable sweeps are behaving on that instrument and timeframe. The panel sits in any of the four chart corners (Top Right by default), comes in three sizes (Tiny / Small / Normal) and two themes (Dark / Light), and can be hidden entirely.
NO REPAINTING
Sweeps are validated on closed bars only and on confirmed pivots, so a level and its sweep never appear or disappear intrabar. A wick that pierces a level but closes back inside generates nothing — the indicator waits for the close. This removes the false signals that clutter tools which mark instantly, at the cost of confirming each sweep once it has completed. There are no higher-timeframe functions: all logic runs on the current chart timeframe.
CONFIGURATION
The inputs are grouped by block. Detection sets the swing profile and the maximum number of sweeps kept on the chart (12 by default). Style exposes the bullish and bearish sweep colours, the faded colour, the label size and the Dark/Light theme. Panel controls panel visibility, position and size. The defaults are calibrated to work without adjustment on stocks, crypto, forex, indices and futures, on any timeframe — the input most users touch is the Swing Profile, to match the sensitivity of the tracked liquidity to their horizon.
ALERTS
Five predefined alerts cover the life of a sweep: Bullish Sweep Detected and Bearish Sweep Detected fire the moment a sweep is detected; Bullish Sweep Confirmed and Bearish Sweep Confirmed fire when a sweep confirms its reversal through follow-through; and Sweep Faded fires when a sweep fails and the level is reclaimed. The Detected alerts are the earliest but least confirmed, the Confirmed alerts are more reliable at the cost of arriving later, and the Faded alert is useful to discard a reversal idea. All alerts fire on bar close, consistent with the indicator's anti-repaint validation.
HOW TO READ IT
Wait for confirmation: a Detected sweep only flags that liquidity was taken and rejected, not that price will turn — waiting for it to become Confirmed reduces false signals at the cost of entering later, and the panel's Confirmed-to-Faded ratio shows how trustworthy sweeps are being. Read the fade as a warning: when a sweep turns Faded, the trap did not work and the level was genuinely broken — recognising a failed sweep in time avoids forcing a reversal idea the market has already rejected. Trade sweeps in confluence: a confirmed sweep that takes liquidity at an important level, a demand zone or a higher-timeframe support is a far more solid reference than an isolated one. And pairing Edo Liquidity Sweeps with Edo Liquidity Zones closes the loop — the zones say where liquidity sits, the sweeps say when it is taken.
OPEN SOURCE
Edo Liquidity Sweeps is published as a free open source indicator. The full Pine Script is publicly accessible on PulseWire for study, adaptation and integration into any workflow. Part of the Edolab Markets free tools ecosystem alongside Edo Liquidity Zones, Edo Smart Money Map, Edo Order Blocks, Edo ZigZag Auto Fib SR and more available on PulseWire.
This indicator is a technical analysis tool for educational and informational purposes only. It does not generate automatic buy or sell signals and should not be considered financial advice. Trading financial markets involves significant risk of capital loss. Past performance does not guarantee future results. Always use proper risk management.
TAGS
LiquiditySweep SmartMoneyConcepts Liquidity MarketStructure PriceAction StopHunt SwingHighLow SupplyDemand Reversal Overlay Indicator OpenSource Edolab EdolabMarkets Stocks Crypto Forex Indices
CATEGORIES (PulseWire dropdowns)
— Direction: Both
— Market category: All markets (Stocks / Crypto / Forex / Indices)
— Analysis type: Trend Analysis / Chart patterns / Support and Resistance
Indicator

XI0033 Williams FractalA Williams fractal confirms late by definition: the pattern is complete only after the bars to its right have closed, so the marker always appears in the past. This script keeps the classic fractal template — three- or five-bar — and adds the one thing the classic version cannot show: the bar that is about to become a fractal, before the confirmation arrives.
It draws triangles for confirmed fractal highs and lows, plus one highlighted triangle for the last potential fractal on the live edge. Nothing else: no lines, no levels, no signals.
Confirmed fractals
A fractal high is a bar whose high stands above the highs of its neighbours; a fractal low mirrors that on the lows. The 3-bar mode compares one neighbour on each side, the 5-bar mode two on each side — the original Bill Williams definition. The Periods input sets how many bars back the reference bar sits. Confirmed fractals are painted as muted grey triangles above the highs and below the lows, and once the pattern that produced them is closed, they are history: they do not move and do not disappear.
Confirmed fractal highs and lows in the muted default colour: every triangle marks a bar whose extreme beat its neighbours on both sides, printed only after the pattern completed.
The last potential fractal
This is the addition. One bar to the right of the last confirmable centre there is always a candidate: a bar already higher (or lower) than its closed neighbours, waiting only for the current bar to keep its distance. The script highlights that candidate with an orange triangle — pointing down above a potential high, pointing up below a potential low — so the developing swing is visible before it becomes official.
The highlight exists only on the live bar. It is recalculated tick by tick, disappears the moment price violates the candidate, and is deliberately dropped on the bar's final update, so it never leaves a trace in the chart history. Scroll back and you will find only confirmed fractals.
Left: the orange triangle under the newest low is the last potential fractal. Right, a few bars later: that low now carries a grey confirmed triangle — the preview left no trace — and a new potential fractal already sits above the latest high.
What repaints, and what does not
The potential marker repaints by design — that is its job. It is a live preview that appears, moves and vanishes with the current bar, and it is intentionally not committed to history. Confirmed fractals in the default 3-bar mode are built from closed bars only, so once a triangle prints, it is final. In the 5-bar mode with the default period, the newest confirmation still involves the forming bar's extreme, so it can appear and be withdrawn until that bar closes; after the close it is final. And every confirmed fractal is late by definition — the triangle appears above a bar that is already in the past, because that is what confirmation means.
What is reused, and what is new
The confirmed-fractal logic is the classic Bill Williams fractal template as coded by Mit Nayi, reused open-source with attribution in the source header. What this edit adds: the port to Pine Script v6, and the whole potential-fractal layer — the candidate detection one bar to the right of the confirmable centre, and the barstate mechanism that shows the preview on the live bar only and drops it on the bar's final update, so it never piles up in history.
What it does not do
It gives no signals. A fractal marks a local extreme, and most local extremes get traded through; on their own they are not entries. This is a structural marker — swing logic, liquidity maps and ICT-style analysis use fractals as raw material, and the potential marker only tells you where the next one may appear. The decision stays yours.
The Inputs allow you to set:
Periods: how many bars back the fractal centre sits; the triangles are drawn on that centre bar
3 or 5 Bar Fractal: one or two neighbours compared on each side
Show last potential fractal: the live-edge preview on or off
Potential down and up fractal colours
About the chart
BYBIT:BTCUSDT.P, 5-minute chart. The only script on it is this one, with default settings: muted grey triangles mark confirmed fractal highs and lows across the chart, and the orange triangle at the right edge is the last potential fractal, not yet confirmed. No other indicators, no drawings. Indicator

INJ DCA Long Strategy [3Commas & QuantPilot]INJ DCA Long Strategy
🔷 What it does:
This is a long-only DCA (Dollar-Cost Averaging) strategy for INJ / USDT that opens a position only in deep-oversold conditions and then averages down on a fixed safety-order ladder. A base order fires when 4h RSI(14) drops below 28; if price keeps falling, five averaging orders add to the position at fixed deviations from the base entry, each larger than the last. The full position is closed at a fixed take-profit above the blended average entry. There is no trailing exit and no stop loss — the position is structurally bounded by the five-order ladder.
- Single entry filter: 4h RSI(14) below 28 (deep oversold).
- Five averaging orders at fixed deviations (−2%, −5%, −9.5%, −16%, −25%) with 1.8× size scaling per rung.
- Fixed take-profit (9%) on the blended average entry; no trailing, no stop loss.
- Every fill and close emits a webhook-ready JSON alert payload for a DCA Bot.
🔷 The one change that mattered — Take Profit tuning:
This strategy started from a baseline configuration with a 3% fixed take-profit. Running the same script, on the same market, over the same period through the QuantPilot Pine Script optimizer, the take-profit parameter was swept and the best-performing value landed at 9%. Nothing else was touched — same RSI entry, same five-order ladder, same deviations, same 1.8× sizing, same fees. Only the Take Profit input changed from 3% to 9%.
- Baseline (Take Profit 3%): Net +6,888.76 USDT (+6.89%), Max Drawdown 4.39%, 84 closed trades, 71.43% profitable, Profit Factor 4.925.
- Optimized (Take Profit 9%): Net +15,830.72 USDT (+15.83%), Max Drawdown 5.65%, 90 closed trades, 82.22% profitable, Profit Factor 17.886.
Widening the target lets each recovery run further before the position is banked, capturing the fuller mean-reversion bounce instead of exiting on the first small pop. The trade-off is a modestly higher drawdown (4.39% → 5.65%) and longer average hold time. The published defaults use the optimized 9% value; the baseline metrics are shown here purely so the effect of the single parameter change is transparent.
🔷 Who is it for:
- Swing traders accumulating INJ on deep RSI flushes rather than chasing momentum.
- Bot operators who want a chart-driven signal source with base / safety-order / close webhook JSON ready to drive a DCA Bot.
- Traders comfortable with martingale-style averaging who size their capital to the worst-case ladder fill.
- Range / mean-reversion traders who prefer mechanical oversold entries over discretionary timing.
🔷 How does it work:
Entry (Base Order): On each closed 4h bar the strategy reads RSI(14). When RSI falls below 28 and there is no open position, it opens the base order at market (or limit, optionally) and dispatches the entry webhook.
Averaging Orders: Once in a position, the strategy watches price relative to the original base entry. The five safety orders are armed at fixed deviations from that base entry — not cumulatively — at −2%, −5%, −9.5%, −16%, and −25%. As each threshold is crossed on bar close, the corresponding averaging order fires. Order sizes scale 1.8× per rung ($900 → $1,620 → $2,916 → $5,249 → $9,448 from a $500 base), pulling the blended average entry down toward the latest fill.
Exit (Take Profit): While in a position, the strategy computes a take-profit price 9% above the current average entry. When price closes at or above that level, the entire position is closed at market and the close webhook fires. There is no trailing and no stop loss.
Capital Bounds: Total deployed capital cannot exceed the base order plus the five safety orders. Once all five averaging orders are filled, no further adds occur — the position simply waits for the take-profit. This ladder cap is the strategy's primary risk control.
🔷 Why it's unique:
- Optimizer-Tuned Exit: The 9% take-profit is not an arbitrary round number — it is the value the QuantPilot Pine Script optimizer selected as best-performing on the historical sample, with every other parameter held constant.
- Deep-Oversold-Only Entries: A single, strict RSI(14) < 28 filter on 4h keeps the strategy out of the market in normal conditions and only commits capital after a meaningful flush.
- Fixed-Deviation Martingale Ladder: Safety orders are placed at fixed percentages from the base entry with deliberate 1.8× size scaling, so each rung has progressively more influence on the average — a transparent, fully-specified averaging schedule rather than an opaque adaptive grid.
- Full Webhook Chain: Base order, each safety order, and the close all emit dedicated JSON payloads, driving a DCA Bot end-to-end with no glue layer.
🔷 Considerations Before Using the Strategy:
Optimization / Overfitting Risk: The 9% take-profit was selected by sweeping the parameter over the same historical window shown in the results. A value that was best in-sample is not guaranteed to be best out-of-sample — this is the standard caveat for any optimized parameter. Treat the optimized metrics as the ceiling of what this configuration achieved historically, not as a forward expectation, and re-validate on fresh data before committing capital.
Trade Volume — Below the Statistical Floor: The optimized configuration produced 90 closed trades over ~30 months (84 on the baseline). Both are below the ~100-trade threshold often used as a floor for statistical relevance, so treat the win rate and the high profit factor as indicative rather than conclusive. The strict RSI < 28 filter is what keeps the trade count low.
Martingale Tail Risk: Order sizes scale 1.8× per rung, so the deepest fills are by far the largest. If INJ trends hard below the −25% AO5 level without recovering to take-profit, the position sits fully loaded with no further adds and no stop — unrealized loss can grow until price reverts. A wider 9% target also means positions are held longer, so the grid can sit loaded through deeper dips before the exit is reached.
No Stop Loss Justification: There is no exit on adverse moves. Per-order risk is bounded by the fixed ladder allocation; aggregate exposure is capped at base + five AOs (≈ $20,633 on the default $100k account, ~20.6% of equity). Size the base/AO inputs down to match the worst-case exposure you are willing to hold.
Fees: The default commission (0.06% per trade) should be matched to your exchange's actual taker fees.
Demo Testing: Always demo-test before going live. Past results do not guarantee future performance, particularly for martingale-style averaging strategies whose risk profile is dominated by rare deep drawdowns.
🔷 STRATEGY PROPERTIES
Symbol: BYBIT:INJUSDT.P (Perpetual) — strategy is portable to any INJ / USDT pair.
Timeframe: 4H (RSI sampled on 4h).
Test Period: January 1, 2024 — July 16, 2026 (~30 months).
Initial Capital: 100,000 USDT.
Base Order Size: 500 USDT.
Averaging Orders: 5, at −2% / −5% / −9.5% / −16% / −25% from base entry.
AO Sizing: 1.8× per rung — 900 / 1,620 / 2,916 / 5,249 / 9,448 USDT.
Max Deployed Capital: ≈ 20,633 USDT (~20.6% of equity, all AOs filled).
Commission: 0.06% per trade.
Slippage: 3 ticks.
Entry Filter: 4h RSI(14) below 28.
Take Profit: 9% above average entry (optimizer-tuned from a 3% baseline).
Stop Loss: None — ladder allocation is the structural risk cap.
Trailing: None.
Strategy: Long Only.
🔷 STRATEGY RESULTS (Optimized — Take Profit 9%)
⚠️ Remember, past results do not guarantee future performance.
Net Profit: +15,830.72 USDT (+15.83%)
Max Equity Drawdown: 6,426.47 USDT (5.65%)
Total Closed Trades: 90
Percent Profitable: 82.22% (74 / 90)
Profit Factor: 17.886
🔷 STRATEGY RESULTS (Baseline — Take Profit 3%, for comparison)
Net Profit: +6,888.76 USDT (+6.89%)
Max Equity Drawdown: 4,429.13 USDT (4.39%)
Total Closed Trades: 84
Percent Profitable: 71.43% (60 / 84)
Profit Factor: 4.925
🔷 How to Use It:
🔸 Adjust Settings: Open the strategy inputs and confirm the RSI level (28), the five AO deviations and sizes, and the Take Profit (default 9%) match your risk profile. Scale the base/AO sizes down for lower exposure.
🔸 Results Review: Run a full-period backtest and confirm Max Drawdown stays within your personal risk band — note the optimized configuration reached 5.65%. Keep in mind the 90-trade sample is below the ~100-trade floor for statistical confidence, and the high profit factor reflects that small, optimized sample.
🔸 Create alerts to trigger the DCA Bot: Add one alert on the strategy using "Any alert() function call". Paste your DCA Bot's webhook URL into the alert's Webhook field, and fill the Bot ID, Email Token, and Pair inputs on the script. The base order, each safety order, and the close will each emit a dedicated JSON payload.
🔷 INDICATOR SETTINGS
Base Order Size: Capital committed on the first (base) entry.
AO Deviations: Fixed percentage distances from the base entry where each safety order fires.
AO Sizes: Capital per safety order (1.8× scaling by default).
RSI Timeframe / Length / Level: Oversold filter for the base entry (default 4h, 14, below 28).
Take Profit (%): Distance above average entry where the full position closes (default 9%, optimizer-tuned).
Bot ID / Email Token / Pair: Webhook fields injected into every alert payload.
Visualization: Toggle the AO ladder, fill labels, avg/TP lines, and status table.
Brand Watermark: Configurable text, position, size, and transparency.
👨🏻💻💭 We hope this tool helps enhance your trading. Your feedback is invaluable, so feel free to share any suggestions for improvements or new features you'd like to see implemented.
__
The information and publications within the 3Commas PulseWire account are not meant to be and do not constitute financial, investment, trading, or other types of advice or recommendations supplied or endorsed by 3Commas and any of the parties acting on behalf of 3Commas, including its employees, contractors, ambassadors, etc. Strategy

Indicator

Indicator

EQH/EQL Liquidity Sweep | AlphaScript⚖️ EQH/EQL Liquidity Sweep
Detects clusters of equal highs (EQH) and equal lows (EQL) the resting-liquidity pools that price hunts and tracks exactly what happens to each one: swept, broken, or still active. Then it measures the real sweep rate so you can see your actual edge.
🎯 Why equal highs and lows matter
When price makes a high, pulls back, then makes another high at the same level, stops pile up just beyond that level — breakout orders, protective stops, resting liquidity.
The more times price taps the same level, the more orders accumulate there. Those pools are what larger participants hunt. This tool maps them automatically and then tells you whether each pool got raided or genuinely failed.
🔍 How pools form
The indicator finds swing highs and lows, then groups any that sit within a configurable tolerance of each other into a single pool.
A pool needs at least a minimum number of touches (default 2) to display. The pool line is drawn at the extreme of the cluster — the highest of the equal highs, or lowest of the equal lows — because that is where the stops actually rest. A small × marks each individual swing that built the pool, and the line thickness and badge show the touch count.
Each pool resolves in one of these ways:
⚡ SWEPT — price wicks through the pool extreme but the bar closes back on the original side. Stops were taken, but the level held on a closing basis. A liquidity raid.
💥 BROKEN — a bar closes through the pool extreme. The level genuinely failed — continuation, not a raid. Breaks are shown separately and never labeled as sweeps.
🛡️ Active — the pool has neither been swept nor broken and is still in play. Pools that go too long without resolving expire and are removed.
First qualifying event wins: one outcome per pool. If a bar both wicks through and closes through, it counts as a break — a close through the level can never be a sweep.
📊 Sweep-rate table | know your real edge
This is what separates the tool from every other equal-highs indicator: instead of just drawing levels, it measures what actually happens to them. The table breaks down every resolved pool by touch count (2 / 3 / 4+) and shows the real sweep and break percentages for each group — computed live from your own instrument, timeframe, and history.
That means you can answer the question that matters before taking a trade: do the pools you're watching actually get swept, or do they break? If 3-touch pools on your instrument sweep far more often than they break, that's a measured edge you can trade around. If 2-touch pools are a coin flip, you know to demand more confluence. The numbers come from the chart, not from a claim on a marketing page.
Only fully resolved pools are counted, active pools are excluded, so the rates can never be inflated by in-progress levels. The denominator is honest: what you see is what actually happened.
⚙️ Settings
-Swing lookback, and equal tolerance in ATR multiples (instrument-independent) or fixed ticks.
-Minimum touches to form a pool, maximum pool age, and how many active pools to track per side.
-Optional minimum wick penetration (ATR-based) to filter marginal sweeps. Does not apply to breaks.
-Optional "Strict Virgin Liquidity" mode: discards a forming level if price closes decisively beyond it before a second touch, so only levels that were never truly broken can pair. Off by default.
-Full display control: pool zones, touch badges, × touch markers, colors, line styles and widths, and how many resolved pools remain on the chart.
-Sweep-rate table with position options.
🔔 Alerts
Per-side sweep alerts (EQH and EQL), separate break alerts, and a combined "Any Pool Swept" alert. All alerts fire on the close of the event bar.
📌 Notes and limitations
-Designed for intraday and swing timeframes. Very low timeframes produce many small pools; adjust tolerance and swing lookback to suit.
-Detection uses standard swing pivots. A peak whose neighboring bar wicks slightly higher may not register as a separate pivot, so not every visual high becomes a pool — tune the swing lookback and tolerance to match how you read structure.
-The equal tolerance is the single most important setting. Too tight and genuine equal levels are missed; too loose and unrelated highs merge. Start moderate and adjust to your instrument.
-The sweep-rate table describes the pools on your loaded chart history. It is a measurement of what happened, not a prediction of what the next pool will do.
✅ Why no repaint
-Pivots are confirmed only after the swing lookback completes, and all pool detection runs on closed bars only. A sweep or break tag will never appear intrabar and then vanish.
-A pool is only evaluated for sweep or break once it has fully formed. A level still building cannot be resolved.
-No request.security() calls are used anywhere. All detection is chart-timeframe state. Indicator

Alpha Forge Core v6.4.15Alpha Forge Core v6.4.15
Advanced trend, momentum, structure, trade-management, and webhook automation indicator.
This multi-layer decision-support tool is designed to help traders evaluate trend direction, momentum, market regime, price structure, entry conditions, and active trade management from one chart.
Rather than relying on a single crossover or isolated signal, the system combines several confirmation layers to assess whether conditions support a potential long or short setup.
It is intended for discretionary chart analysis, PulseWire alerts, and compatible webhook-based automation.
What the indicator analyzes
The script evaluates:
Trend direction
Moving-average alignment
Momentum strength
Adaptive market regime
Higher-timeframe confirmation
Price structure
Breakout conditions
Pullback and reclaim behavior
Entry distance and price extension
Volatility
Signal quality
Active trade state
Protective stop placement
Profit-target progression
Breakeven protection
Trailing-stop protection
These components are combined into a single decision process rather than displayed as unrelated signals.
Automatic market detection
The system can detect the general symbol type using PulseWire market information.
Supported categories include:
Stocks
ETFs
Crypto
Forex
Futures
Other supported symbols
When automatic behavior is enabled, the detected market can influence the effective operating configuration.
Crypto scalping behavior
When a crypto symbol is detected, the script can automatically apply its faster Crypto Scalping configuration.
This mode is designed for shorter-term crypto charts and removes higher-timeframe influence from the effective scoring process.
Recommended crypto timeframe:
5 minutes
Pine Script cannot automatically change the chart timeframe. When the current chart does not match the recommended timeframe, the Guide may display a reminder.
Operating presets
Scalping
Designed for shorter timeframes and faster-moving setups. This preset uses more responsive conditions and shorter trade-development windows.
Day
Designed for intraday trading with a balance between responsiveness and confirmation. This is the recommended starting point for many stock and ETF charts.
Swing
Designed for higher timeframes and slower-developing setups. This preset applies more selective confirmation and allows additional time for trades to develop.
Custom
Allows the available settings to be controlled manually.
Suggested starting points:
Stocks and ETFs: 15-minute chart with Day mode
Crypto: 5-minute chart with automatic Crypto Scalping
Short-term scalping: 3-minute to 5-minute charts
Swing trading: 30-minute to 4-hour charts
These are general starting points only. Settings should be evaluated on the intended symbol and timeframe.
Signal grades
Potential entries can be filtered by grade.
Available options include:
A Only
B Only
A and B
All Grades
A-grade setups represent stronger internal alignment.
B-grade setups may appear earlier or with fewer confirmation layers while still meeting the selected eligibility rules.
C-grade setups represent lower-confirmation conditions and are available when All Grades is selected.
Grades describe the amount of confirmation present at the time of the setup. They do not guarantee a particular outcome.
Entry behavior
The engine can identify several types of setup behavior.
Breakout entries
These occur when price moves through an important structure level with sufficient directional confirmation.
Impulse entries
These identify stronger directional expansion when momentum and price accelerate together.
Early reclaim entries
These occur when price briefly loses a key level and then reclaims it with confirmation.
Continuation entries
These identify opportunities within an established trend after a valid pullback or consolidation.
B-grade re-entry
When enabled, the system can permit a controlled re-entry after a valid pullback instead of repeatedly triggering during the same move.
Range and extension protection
The script includes filters intended to reduce weaker entries during unsuitable conditions.
These can include:
Blocking continuation setups in range conditions
Requiring trend-regime eligibility
Limiting entries when price is too far from its reference level
Avoiding repeated entries during an active trade
Waiting for candle-close confirmation
Requiring directional confirmation
These filters are designed to improve consistency, but they may also reduce signal frequency.
Higher-timeframe confirmation
Higher-timeframe alignment can be used as an additional confirmation layer.
The script supports both responsive and confirmed higher-timeframe behavior.
When higher-timeframe influence is disabled, scoring is normalized so that the missing HTF component does not unfairly reduce setup quality.
Trade lifecycle
The indicator tracks a complete trade state from entry through exit.
The lifecycle can include:
Entry confirmation
Protective stop placement
TP1
TP2
TP3
Breakeven activation
Trailing-stop activation
Stop-loss exit
Breakeven exit
Trailing-stop exit
Final target exit
Only one active position is tracked at a time. New entries are blocked until the current position is closed.
Protective stops
Stops can use a combination of structure and ATR-based distance.
Available controls may include:
ATR stop multiplier
Structure buffer
Maximum stop distance
Same-bar target and stop priority
Breakeven activation
Trailing-stop source
Trailing-stop distance
These settings should be matched to the symbol’s volatility and the trader’s risk plan.
Profit targets
The system supports three target levels:
TP1
TP2
TP3
Target progress is shown on the chart and in the dashboard.
Breakeven and trailing protection can be activated after a selected target is reached.
Forge Guide
The Guide has been rebuilt as a forward-looking coaching panel.
Instead of repeating dashboard information, it focuses on what matters next.
It can display:
What the system is waiting for
What to watch next
Whether a setup is armed
Trigger conditions
Invalidation conditions
Remaining setup window
Whether price is too extended
Current trade objective
Active protection
Target progression
Trailing-stop status
Typical Guide states include:
WAIT
WATCH LONG
WATCH SHORT
LONG NEAR READY
SHORT NEAR READY
STAND ASIDE
DO NOT CHASE
MANAGE LONG
MANAGE SHORT
PROTECT PROFIT
The Guide is intended to explain the current condition in plain language without replacing personal judgment.
Dashboard
The compact dashboard focuses on live decision information.
It may display:
Effective preset
Detected market
Trend
Adaptive regime
B eligibility
Momentum
Higher-timeframe state
Structure
Current decision
Active trade
Protection
Last exit
TP1, TP2, and TP3 status
Historical testing statistics and diagnostic counters are not shown in the public dashboard so the chart remains clean and easy to read.
Alerts and webhook automation
The script supports PulseWire alerts and JSON webhook messages.
For long-only automation:
buy opens a long position
sell closes the long position
A sell action may be generated when the active long closes through:
TP3
Stop loss
Breakeven
Trailing stop
Another enabled long-exit condition
The JSON format includes fields for:
Secret token
Ticker
Asset type
Action
Price
Strategy
Timeframe
Order type
Stop loss
Take-profit levels
For webhook use:
Enter the secret token in the alert settings.
Enable bot JSON alerts.
Create one PulseWire alert using Any alert() function call.
Enter the webhook URL supplied by the connected execution service.
Recreate alerts whenever the script or alert configuration is changed.
Existing alerts continue running the older saved script snapshot until they are recreated.
Important notes
This indicator is a chart-reading and decision-support tool.
It does not predict future price movement and does not guarantee profitable outcomes.
Historical chart behavior may differ from live execution because of:
Spread
Slippage
Liquidity
Latency
Broker rules
Order handling
Market gaps
Partial fills
Signals should be evaluated alongside personal risk management, position sizing, market conditions, and independent analysis. Indicator
