[Kpt-Ahab] Poor Man's Orderflow Simple AlgoPilotImportant Notice and Risk Warning
The published settings were selected solely based on historical data for the asset and timeframe shown.
The displayed result may be random or over-optimized and cannot automatically be transferred to other assets, timeframes, or future market conditions. Even with the presented settings, the strategy may cause significant losses at any time, including the complete loss of the allocated strategy capital.
This script is intended exclusively for analysis and testing purposes. It does not constitute investment advice or a trading recommendation.
Description
This script uses reused and adapted code components from ** Auto RiskManagement & Backtest System 2.1b** and the ** Poor Mans Orderflow Simulator **.
These components have been combined into a standalone strategy that integrates simplified orderflow signals with position management, risk management, and backtesting functions.
How It Works
The strategy uses a simplified approximation of orderflow. It evaluates the relationship between candle body size and candle range, relative volume, candle direction, and recurring absorption and impulse events.
It does not use actual bid/ask, footprint, Level 2, or order book data.
Depending on the selected signal mode, direct breakouts, confirmed absorption clusters, impulse candles, or combinations of these conditions may generate long and short signals.
Position and Risk Management
The script supports, among other features:
* Long and short positions
* Fixed or trailing stop-loss levels
* Multiple partial profit targets
* Breakeven after the first profit target
* Optional additional entries
* Further entries may also be disabled after the specified total number of losing trades has been reached or when the maximum permitted drawdown is exceeded.
* Internal or external trading signals
* Automatic parameters based on asset class and timeframe
Additional entries and simulated leverage may significantly increase the risk of loss.
Backtest Limitations
Strategy Tester results are based exclusively on historical market data. Real-world results may differ significantly due to commissions, spreads, slippage, liquidity, price gaps, and execution delays.
Past performance is not a reliable indication of future results.
Position Closing Settings
The **Open Position Signals** setting determines how new signals are handled while a position is already open:
* **Wait-End-Deal:** All indicator signals are ignored until the current position has ended.
* **Wait-Signal-Close:** Only explicit signals for closing a long or short position are processed.
* **Wait-Reversal:** An opposing entry signal may also close the current position.
Several closing conditions are available for the integrated orderflow logic. For example, a position may be closed by an opposing impulse, a combination of a cluster and an impulse, or a confirmed opposing entry signal.
Further trading may also be restricted after a specified number of losing trades or when the maximum permitted drawdown is reached.
Trailing Stop, Breakeven, and Liquidation Line
The strategy supports both a fixed stop-loss and a trailing stop. The selected percentage represents the direct price distance from the average entry price and is not automatically adjusted by the simulated leverage.
In trailing mode, the stop is only moved in a direction that is favorable to the position. If the average entry price changes due to an additional entry, the existing stop is adjusted accordingly.
The stop may optionally be moved to the average entry price after the first profit target has been reached. A stop mode must be enabled for this function to operate.
The displayed liquidation line is only an internal estimate based on the simulated position and account values. It may differ significantly from the actual liquidation calculation used by a broker or exchange.
Using External Indicators
An external numerical signal source may be used instead of the integrated Poor Man’s Orderflow Simulator.
The external indicator must provide a selectable plot series containing the following values:
* **+1:** Long or buy signal
* **−1:** Short or sell signal
* **+2:** Close short position
* **−2:** Close long position
All other values, including `na`, produce no new signal.
The external indicator must output the required numerical values through a selectable plot. This plot can then be selected under **External Source**.
Whether and how an external signal is processed while a position is open also depends on the selected **Open Position Signals** setting.
-----------------------------------
Wichtiger Hinweis und Risikowarnung
Die veröffentlichten Einstellungen wurden ausschließlich anhand historischer Daten für das dargestellte Asset und den verwendeten Zeitrahmen gewählt.
Das Ergebnis kann zufällig oder überoptimiert sein und lässt sich nicht automatisch auf andere Assets, Zeitrahmen oder zukünftige Marktphasen übertragen. Auch mit den dargestellten Einstellungen kann die Strategie jederzeit erhebliche Verluste verursachen und das eingesetzte Strategiekapital vollständig verlieren.
Dieses Skript dient ausschließlich zu Analyse- und Testzwecken und stellt keine Anlageberatung oder Handelsempfehlung dar.
Beschreibung
Dieses Skript verwendet wiederverwendete und angepasste Codebestandteile aus Auto RiskManagement & Backtest System 2.1b und dem Poor Mans Orderflow Simulator .
Die Komponenten wurden zu einer eigenständigen Strategie verbunden, die vereinfachte Orderflow-Signale mit Positions-, Risiko- und Backtestfunktionen kombiniert.
Funktionsweise
Die Strategie verwendet eine vereinfachte Annäherung an Orderflow. Sie wertet das Verhältnis von Kerzenkörper und Handelsspanne, relatives Volumen, Kerzenrichtung sowie wiederkehrende Absorptions- und Impulsereignisse aus.
Dabei werden keine echten Bid-/Ask-, Footprint-, Level-2- oder Orderbuchdaten verwendet.
Abhängig vom gewählten Signalmodus können direkte Ausbrüche, bestätigte Absorptionscluster, Impulskerzen oder Kombinationen dieser Bedingungen Long- und Short-Signale erzeugen.
Positions- und Risikomanagement
Das Skript unterstützt unter anderem:
Long- und Short-Positionen
feste oder nachlaufende Stop-Loss-Marken
mehrere Teilgewinnziele
Breakeven nach dem ersten Gewinnziel
optionale zusätzliche Einstiege
Drawdown-Begrenzung und Begrenzung nach einer festgelegten Anzahl an Verlusttrades
interne oder externe Handelssignale
automatische Parameter nach Assetklasse und Zeitrahmen
Zusätzliche Einstiege und ein simulierter Hebel können das Verlustrisiko deutlich erhöhen.
Einschränkungen des Backtests
Die Ergebnisse des Strategietesters basieren ausschließlich auf historischen Kursdaten. Reale Ergebnisse können durch Gebühren, Spread, Slippage, Liquidität, Kurslücken und Ausführungsverzögerungen erheblich abweichen.
Vergangene Ergebnisse sind kein verlässlicher Hinweis auf zukünftige Ergebnisse.
Schließungseinstellungen
Über **Open Position Signals** wird festgelegt, wie neue Signale während einer bereits geöffneten Position behandelt werden:
* **Wait-End-Deal:** Alle Indikatorsignale werden bis zum Ende der Position ignoriert.
* **Wait-Signal-Close:** Nur ausdrückliche Signale zum Schließen einer Long- oder Short-Position werden berücksichtigt.
* **Wait-Reversal:** Zusätzlich kann ein entgegengesetztes Einstiegssignal die aktuelle Position schließen.
Für die integrierte Orderflow-Logik stehen verschiedene Schließungsbedingungen zur Verfügung. Eine Position kann beispielsweise durch einen gegensätzlichen Impuls, eine Kombination aus Cluster und Impuls oder ein bestätigtes entgegengesetztes Einstiegssignal geschlossen werden.
Zusätzlich kann der weitere Handel nach einer festgelegten Anzahl an Verlusttrades oder beim Erreichen des maximal erlaubten Drawdowns begrenzt werden.
Trailing-Stop, Breakeven und Liquidationslinie
Die Strategie unterstützt einen festen Stop-Loss sowie einen nachlaufenden Trailing-Stop. Der eingestellte Prozentwert beschreibt dabei den direkten Abstand zum durchschnittlichen Einstiegspreis und wird nicht automatisch durch den simulierten Hebel verändert.
Im Trailing-Modus wird der Stop nur in eine für die Position günstigere Richtung nachgezogen. Verändert sich der durchschnittliche Einstiegspreis durch einen zusätzlichen Einstieg, wird auch der bestehende Stop entsprechend angepasst.
Optional kann der Stop nach dem Erreichen des ersten Gewinnziels auf den durchschnittlichen Einstiegspreis verschoben werden. Hierfür muss ein Stop-Modus aktiviert sein.
Die angezeigte Liquidationslinie ist lediglich eine interne Schätzung auf Basis der simulierten Positions- und Kontowerte. Sie kann deutlich von der tatsächlichen Liquidationsberechnung eines Brokers oder einer Börse abweichen.
Verwendung externer Indikatoren
Anstelle des integrierten Poor-Man’s-Orderflow-Simulators kann eine externe numerische Signalquelle verwendet werden.
Hierfür muss der externe Indikator eine auswählbare Plot-Serie mit den folgenden Werten ausgeben:
* **+1:** Long- beziehungsweise Kaufsignal
* **−1:** Short- beziehungsweise Verkaufssignal
* **+2:** Short-Position schließen
* **−2:** Long-Position schließen
Bei allen anderen Werten oder bei `na` wird kein neues Signal ausgeführt.
Der externe Indikator muss die benötigten Zahlenwerte direkt über einen auswählbaren Plot bereitstellen. Anschließend wird dieser Plot unter **External Source** ausgewählt.
Ob und wie ein externes Signal während einer geöffneten Position verarbeitet wird, hängt zusätzlich von der gewählten Einstellung unter **Open Position Signals** ab. Strategy

Prop Key Levels & Order Blocks - Buy Sell Signals with TP/SLA complete intraday trading suite built around one idea: the decision candle.
Instead of guessing where price might turn, the script marks the exact candles
where the market already made a decision, and then tells you what happened when
price came back to them.
Everything is evaluated on closed bars. Printed signals never move.
━━ WHAT IT DRAWS ━━
MAJOR KEY DETECTION
The origin candle of an impulsive displacement leg. Its body becomes a level
that extends to the right. Green for bullish decisions, red for bearish ones.
When price closes clean through a key, the level is greyed out — it failed, and
you can see that it failed. The detection level (1–100) sets how far price must
travel out of a candidate before it is accepted, so you can go from "every small
turn" to "only the moves that really expanded".
MAJOR ORDER BLOCKS
The last opposing candle before a structural break. Drawn as a box that survives
until price closes through it.
TREND DETECTION
A volatility-scaled trailing line under price, green while bullish and red while
bearish. It is the filter one of the two entry engines uses, and a weighted
component of the other.
ORDER POOL
Price levels that were rejected repeatedly and still hold unfilled resting
orders. Each pool is parked as an arrow at the right edge of the chart. You
decide what happens once price trades through one: remove it (the orders are
spent) or keep it dimmed, so you can still trade the reaction after the sweep.
SMART FVGS
Three-candle imbalances, filtered by a minimum size so the chart is not buried
under meaningless micro-gaps.
━━ THE ENTRY ENGINE ━━
Two independent algorithms, selectable in the settings.
PROP MODE — conservative. A signal needs the trend filter, a key level or order
block, and a confirmation candle to agree, and price must not already be
extended. Fewer trades, built for accounts where a handful of clean entries
beats constant activity.
AI-MODE — adaptive. Trend, momentum, key level, order block, pool sweep, fair
value gap and candle quality each contribute a weighted score. The engine fires
when the combined score clears a threshold you control, so it also takes the
reversals the conservative mode filters away.
Every entry comes with three take profits (Minor, Major, Highest) and a stop.
All four are expressed in volatility units — one unit is the ATR at the signal
bar — so the distances breathe with the market instead of being a fixed point
value that is wrong on half the days.
The reward box, the risk box and the projection line are drawn forward from the
entry, so one glance tells you whether the trade is worth taking. Hover any
signal badge to read why it fired and every price it produced.
━━ COOLDOWN ━━
After a signal, the engine mutes itself for a configurable number of bars. This
is what stops it from firing ten entries into the same move — the single
fastest way to run into a daily loss limit.
━━ DASHBOARDS ━━
A trade metrics table in the corner lists the live entry, all three targets, the
stop, the reward-to-risk and the cooldown state — the numbers you copy into your
order ticket.
A cockpit panel shows the live checklist (trend, key level, order block, pool
sweep, candle, cooldown), the running position, and a hit count across the whole
loaded history: how often each target was reached and how often the stop came
first.
━━ ALERTS ━━
Entry, take-profit hit and stop hit, as readable text or as a JSON object
carrying side, entry, all three targets, the stop and the reward-to-risk — the
format execution bridges expect.
━━ SETTINGS ━━
① Engine Control — strategy type, score threshold, cooldown, metrics table
② Trade Config — Minor / Major / Highest TP, SL, volatility unit
③ Insight Matrix — key detection and its level, order blocks, trend
④ Orderflow & Smart FVGs — order pool, touch count, tolerance, fill handling
⑤ Visuals — theme, candle colouring, boxes, price lines, panel, drawing budget
⑥ Alerts — what to fire and in which format
Every input carries a tooltip explaining what it does and what changes when you
move it.
━━ NOTES ━━
Designed for intraday work on index CFDs, gold and FX. The defaults were set up
on 1- to 15-minute charts; on higher timeframes raise the cooldown and the key
detection level.
This is an analysis tool, not financial advice. Past behaviour of any level or
signal says nothing about future results. Test any configuration on your own
instrument and timeframe before trading it. Indicator

Supertrend + Apex HUD Master Pro - Farthaze### Overview
**Supertrend + Apex HUD Master Pro** is an all-in-one trading dashboard designed to combine clean price action trailing stops with a high-density, real-time Heads-Up Display (HUD).
Instead of cluttering your chart with dozens of individual indicators, this script consolidates market trend, momentum, intraday volume dynamics, key daily pivot levels, and target projections into a single, compact interface.
---
### Key Features
#### 1. Adaptive Supertrend Engine
* **Trailing Stop Overlay:** Uses Average True Range (ATR) to trail stops dynamically based on volatility.
* **Visual Trend Fill:** Highlights the active trend direction with transparent, non-intrusive color shading between price and the Supertrend line.
* **Signal Labels:** Displays clean `BUY` and `SELL` tags on valid trend flip transitions.
#### 2. Apex HUD Master Table
A real-time data table pinned to your chart providing quick market analysis:
* **Trend Bias & Momentum:** Instant visual status of trend direction alongside 14-period RSI momentum.
* **Volume Analysis (RVOL):** Tracks current bar volume relative to a 20-period SMA to spot unusual volume spikes instantly.
* **Shares Traded & Split Volume:** Calculates total session volume alongside intra-bar estimated **Buy Volume (Green)** and **Sell Volume (Red)** to gauge institutional buying vs. selling pressure.
* **Key Levels (PDH/PDL & TDH/TDL):** Consolidated tracking of Previous Day High/Low and Today's High/Low for quick support/resistance reference.
* **Dynamic Take-Profit Targets (TP1 / TP2 / TP3):** Calculates volatility-adjusted target levels using ATR multipliers to help plan trade exits.
* **Risk-to-Reward Ratio:** Displays a real-time Risk:Reward ratio based on the distance between current price, the Supertrend stop-loss, and target levels.
#### 3. Volatility Spike Monitor
* A standalone auxiliary table tracking recent high-volatility expansion bars (bars exceeding your defined ATR spike threshold).
* Keeps track of the last bullish and bearish volatility spikes along with their percentage move size and breakout prices.
---
### How to Use
1. **Identify Trend Bias:** Check the Supertrend overlay and the HUD's **Trend Bias** indicator to align with the primary direction.
2. **Confirm Volume & Momentum:** Ensure RSI momentum aligns with your bias and check if RVOL indicates elevated volume participation.
3. **Gauge Institutional Pressure:** Compare the green **Buy Vol** and red **Sell Vol** numbers in the HUD to confirm who is controlling the intraday order flow.
4. **Manage Trade Exits:** Use the auto-calculated **TP1, TP2, and TP3** target levels alongside the Risk:Reward readout to plan your entries and exits.
---
### Indicator Settings & Customization
* **Supertrend Settings:** Adjust ATR Period and Multiplier to fit scalping, swing trading, or position trading timeframes.
* **Apex HUD Options:** Customize table position (Top Right, Top Left, Bottom Right, Bottom Left) and text scaling size.
* **Session Filter:** Filter shares traded calculation between *All Sessions*, *Regular Hours Only*, *Premarket Only*, or *Postmarket Only*.
* **Volatility Spike Table:** Set custom ATR thresholds to trigger volume/range expansion tracking.
---
*Disclaimer: This indicator is designed for educational and analytical purposes only and does not constitute financial advice. Always practice proper risk management.*
I created this to surpass time to see today highest and lows and volume etc. Hope you like it. Happy trading Indicator

Adaptive Regression Breakout Map | GainzAlgoThe Adaptive Regression Breakout Map (ARBM) is an advanced volatility and trend-tracking system designed to identify periods of extreme market compression and automatically map out high-probability breakout trades.
Rather than relying on traditional lagging indicators, ARBM utilizes a continuous statistical baseline to measure market "squeezes." Once a breakout is confirmed, the indicator shifts from analysis into execution mode, drawing a dynamic visual map on your chart that outlines precise Entry, Stop Loss, and Take Profit (TP1, TP2, TP3) levels, complete with automated trailing stop logic and a live performance dashboard.
How It Works
At its core, the ARBM operates on a dual-engine architecture:
Statistical Compression (The Squeeze): The script calculates a rolling linear regression baseline and wraps it in standard deviation bands. It continuously measures the width of this channel and compares it to a historical lookback period. When the bandwidth drops into a historically low percentile, the bands change color, signaling that the market is in a "squeeze" and building energy for a move.
Auto-Trendlines: Alongside the statistical bands, the script plots dynamic, auto-trendlines across recent pivot highs (cyan) and lows (magenta). These holographic lines track geometric compression and leave a visual history on the chart.
The Breakout Trigger: A signal is generated when the price violently escapes either the statistical standard deviation bands or the geometric auto-trendlines while the market is in a confirmed contraction state.
Dynamic Trade Mapping: Upon a breakout, the script calculates targets based on the volatility (bandwidth) at the time of the breakout. It plots the trade directly on your chart and actively trails the stop loss as targets are hit.
The Settings and Selections
The indicator is highly customizable, divided into four primary control groups:
Regression Model:
Regression Length: The lookback period for the linear regression baseline.
Deviation Multiplier: The width of the statistical bands (similar to Bollinger Bands).
Contraction Metrics:
Lookback Period: How far back the script looks to determine if the current channel is historically narrow.
Contraction Threshold %: The percentile the bandwidth must drop below to trigger a "squeeze" state.
Target Architecture:
TP1, TP2, TP3 Multipliers: Determines how far away your take profit targets are, dynamically scaled by multiplying the width of the channel at the time of the breakout.
Trendlines Overlay:
Show Holographic Trendlines: Toggle the geometric trendlines on or off.
Pivot Length: Determines how sensitive the script is when identifying the swing highs and lows used to draw the trendlines.
How to Use It
Trading with the ARBM is highly visual and systematic:
Wait for the Squeeze: Watch the regression channel. When the bands turn gray, volatility has compressed, and the market is consolidating.
Wait for the Signal: Look for a "Breakout, Long" or "Breakout, Short" label to appear. This confirms price has broken structure with momentum.
Follow the Map: The script will immediately draw your Entry (Blue), Stop Loss (Red), and three Take Profit targets (Green dashed lines).
Manage the Trade: The indicator handles trade management visually.
When TP1 is hit, the Stop Loss line automatically moves to your Entry price (Breakeven), and a label confirms the trail.
When TP2 is hit, the Stop Loss trails to TP1.
When TP2 is hit, the Stop Loss trails to TP1.
The trade closes entirely if TP3 or the trailing stop is hit. (Note: Hitting TP1 secures a win for the system's tracking, even if the remainder is stopped out at breakeven).
Monitor Performance: A stylized dashboard in the top right corner tracks the total number of signals, the historical Win Rate, and the Trade-by-Trade Sharpe Ratio, allowing you to quickly validate the settings for any given asset or timeframe.
Final Thoughts
The Adaptive Regression Breakout Map removes the guesswork from breakout trading. By combining continuous statistical volatility tracking with futuristic geometric trendlines, it mathematically identifies when a market is ready to move. Furthermore, by drawing the exact risk-to-reward parameters on the chart and tracking its own historical performance, it forces strict risk management and objective trade execution.
Indicator

Position Size Calculator - Risk Manager, Risk/Reward & L[LunqFX]Risk Manager is an on-chart position size and risk/reward calculator for PulseWire that turns proper risk management into one click. Set your account size and risk per trade %, and it instantly gives you the exact position size (units / lots / contracts / shares), your risk and reward in dollars, the risk/reward ratio, and the breakeven win rate you need to be profitable — all visualized as clean risk and reward zones right on the chart. It works out of the box with an auto ATR setup (Entry / Stop Loss / Take Profit placed for you), or type your own levels. Built in Pine Script v6, it works on forex, crypto, stocks, indices, futures, gold (XAUUSD) and Bitcoin (BTCUSD), on any timeframe — because it sizes risk, not signals. Keywords: position size, position sizing, risk management, risk reward, risk/reward ratio, lot size calculator, money management, stop loss, take profit, R multiple, risk per trade, breakeven win rate, Kelly criterion, day trading, swing trading, scalping.
◆ WHY THIS MATTERS
Most traders blow accounts not because of bad entries, but because of bad position sizing and inconsistent risk. Professionals risk a fixed small % per trade (commonly 0.5–2%) and know their risk/reward before they click buy. This tool enforces that discipline on every trade — no spreadsheets, no external calculators.
◆ WHAT IT DOES
Exact position size from your account balance and risk %, in units, lots, contracts, shares or coins.
Risk and reward in account currency and as a % of account.
Risk/reward ratio with a clean visual meter.
Breakeven win rate — the minimum win rate needed to be profitable at your current R:R (a metric most calculators skip).
Visual risk zone (red) and reward zone (green) drawn between Entry, Stop and Target.
Optional fractional Kelly suggested risk %.
A modern, colour-coded dashboard.
◆ HOW IT WORKS
Auto mode (default): Entry is set at price, Stop at a chosen ATR distance, and Target at your chosen R multiple — a valid setup appears instantly on any instrument.
Manual mode: turn Auto off and enter your own exact Entry / Stop / Target prices in the settings.
Position size = (account balance × risk %) ÷ (distance from entry to stop). This guarantees that if the stop is hit, you lose exactly your chosen risk %.
Reward = position size × distance to target; R:R = reward ÷ risk.
Breakeven win rate = 100 ÷ (1 + R:R) — e.g., at 2R you only need to win >33% of trades to break even.
Lots/contracts = units ÷ your contract size (100000 for a forex standard lot, 1 for stocks/crypto, your multiplier for futures).
◆ HOW TO USE IT
Set Account balance and Risk per trade % once (e.g., 1%).
Pick Auto direction (Long/Short) or switch to manual and place your real Entry/Stop/Target.
Read the Position size — that is exactly how much to trade so your loss at stop = your set risk.
Check the R:R meter and Breakeven — only take trades whose math fits your strategy’s win rate.
Use the red/green zones to see risk and reward visually before entering.
Adjust Contract size to match your instrument (forex lots, futures multiplier, etc.).
◆ SETTINGS
Trade Setup (auto ATR or manual prices, direction, ATR stop, target R), Account & Risk (balance, risk %, contract size, size label), Kelly (optional), Visuals (box length, neon candles), Panel (text size, position, colours).
◆ ALERTS
Price hit Entry · Price hit Stop · Price hit Target.
◆ ORIGINALITY
This is original work. The auto-ATR setup engine, the account-aware sizing, the visual risk/reward zones, the colour-coded dashboard with the R:R meter and the breakeven-win-rate readout are all my own implementation. No third-party code is used.
◆ LIMITATIONS
This is a planning and sizing tool, not a signal generator — it does not tell you when to buy or sell.
Position size assumes your account currency matches the quote currency; for cross-currency pairs or unusual contracts, set Contract size to match your broker’s lot/units.
The auto ATR setup is a starting template — always adjust Stop and Target to real structure.
Results depend on the inputs you provide (balance, risk %, contract size); double-check them for your broker.
◆ NON-REPAINTING
This is a calculator: it draws from your inputs and the current price and never alters historical bars.
Risk Manager is an educational tool, not financial advice. Trading involves risk of loss. Always do your own research and manage risk responsibly. © LunqFX. Indicator

Strategy

Crowded Trend Exhaustion Index [TradeDots]Crowded Trend Exhaustion Index
Summary
This indicator measures how statistically crowded the current trade has become and reports the reading on a 0 to 100 scale with four named tiers: Healthy, Late, Crowded, and Climax Risk. It is not a top or bottom caller. The goal is to give traders an explicit picture of how stretched price has become relative to historical context, so they can avoid late entries, tighten stops, or take profit when the reading enters extreme territory.
Eight independent factors are combined into the composite score. The pane shows a histogram of the score plus reference lines at the tier thresholds; the background of the pane is tinted when the reading enters the Crowded or Climax Risk tier; a dashboard summarizes the contributing factors.
What is original here
Many public indicators measure one dimension of exhaustion (most commonly distance from a moving average, or RSI level). The contribution of this script is the combination of eight diverse factors that together describe trade crowding from different angles: spatial extension (EMA distance, VWAP distance), persistence (consecutive same-direction candles), momentum exhaustion (RSI percentile), participation extreme (volume climax), volatility expansion (ATR percentile), behavioural rejection (failed continuation wicks with hysteresis), and price/momentum divergence. Each factor weight is exposed as an input so users can audit and tune the composite. The script also deliberately treats divergence and failed-wick signals with a multi-bar hysteresis so single-bar prints do not produce one-bar spikes in the score.
How it works
The trend direction used by the script is the immediate-bar EMA slope. The trend EMA length is configurable (default 50).
The eight factors are computed each bar.
1. EMA distance. Absolute distance from the trend EMA in ATR units, scaled to 0-100.
2. VWAP distance. Absolute distance from an anchored VWAP (Session, Week, or Month — user-selectable) in ATR units, scaled.
3. Candle streak. Number of consecutive same-direction candles aligned with the trend. The counter resets to zero on the first counter-direction bar and the score scales with the streak length.
4. RSI percentile. RSI is computed and percentile-ranked over the configurable lookback. The percentile is taken on the trend side (uptrend uses RSI percentile directly; downtrend uses 100 minus the percentile) so that extreme readings always indicate crowding in the direction of the trend .
5. Volume climax. A discrete score: 100 when volume is in the top decile, 60 in the top quartile, 30 above the median, 0 otherwise.
6. ATR percentile. Current ATR percentile over the lookback.
7. Failed continuation wick. When the current bar prints a wick against the trend direction that exceeds the body by a factor of two, a five-bar hysteresis counter is set. The score decays linearly to zero over five bars. This prevents one-bar wick noise from spiking the score and then disappearing.
8. Price-momentum divergence. Price prints a new N-bar extreme but RSI does not. Bearish divergence in an uptrend, or bullish divergence in a downtrend, sets a five-bar hysteresis just like factor 7.
All factors are weighted (user-configurable), averaged, and clamped to 0-100. Tier mapping:
Healthy : 0 to 40
Late : 40 to crowded_threshold (default 70)
Crowded : crowded_threshold to extreme_threshold (default 85)
Climax Risk : extreme_threshold to 100
Repainting and data integrity
All factors are computed on confirmed-bar values; alerts are gated by barstate.isconfirmed. No request.security() calls are made — the script operates entirely on the chart timeframe. The hysteresis counters for divergence and failed-wick reset deterministically and do not look forward.
How to read the chart
The composite is plotted as a colored histogram in the indicator pane. The color reflects the current tier (green for Healthy, orange for Late, pink for Crowded, red for Climax Risk).
Reference lines mark the tier thresholds.
The pane background is tinted when the reading enters the Crowded or Climax Risk tier.
The dashboard panel shows the current tier, each contributing factor's reading, and the composite score.
Inputs
Inputs are grouped into four sections.
Core Settings : trend EMA length, ATR length, RSI length, percentile lookback, divergence lookback, VWAP anchor.
Score Tuning : a 0 to N weight for each of the eight factors, the Climax Risk threshold, the Crowded threshold.
Visual Settings : histogram toggle, dashboard toggle, background-tint toggle, panel position and size, panel background color.
Any Alert() function call conditions : per-alert toggles.
Alerts
Four alert conditions are provided:
Entered Crowded Zone (score crossed the Crowded threshold from below)
Entered Climax Risk Zone (score crossed the Climax Risk threshold from below)
Divergence Detected (a price-momentum divergence triggered this bar)
Exhaustion Cooling (score fell back below the Crowded threshold from above)
Each is declared via alertcondition() and is fired programmatically through alert() when the corresponding input toggle is enabled, using alert.freq_once_per_bar_close. Alert messages include {{ticker}} and {{interval}} placeholders.
How to use this script
This is a profit-taking and late-entry-avoidance tool, not an entry trigger.
Apply on the timeframe where you make trading decisions.
While the score is Healthy or Late, the trend can continue to extend; this is not a fade signal.
When the score enters Crowded or Climax Risk on the trend side, tighten stops on existing trend trades, scale out, or avoid late entries.
The Divergence alert is a secondary signal — it indicates internal momentum disagreement but is not a reversal call on its own.
The Exhaustion Cooling alert can be used to identify the end of a stretched move, which sometimes precedes a fresh trend or a multi-bar consolidation.
Limitations and honest caveats
"Crowded" does not mean "imminent reversal". Strong trends can stay crowded for extended periods.
The composite is a heuristic, not a probability.
The divergence factor requires that price prints a new N-bar extreme. Divergences that occur without a fresh extreme will not be detected.
The VWAP factor uses a single anchor at a time (Session, Week, or Month). Multiple simultaneous VWAP comparisons are not supported.
The streak counter resets on a single counter-direction candle, which can cause sharp drops in the streak factor that do not necessarily indicate the trend is over.
The script makes no prediction about when or how a stretched trend will end.
Disclaimer
This script is published for informational and educational purposes. It is not investment advice and is not a recommendation to buy or sell any instrument. A high crowding reading is not a signal to reverse; it is a description of statistical extension. Users are solely responsible for their own trading decisions and risk management.
Indicator

Squeeze Momentum IQ Trade Management SimplifiedSqueeze Momentum IQ Trade Management Simplified
A trade management and position conviction engine designed to help determine whether to continue holding, manage cautiously, take profits, or avoid new entries.
Most indicators focus on finding entries.
Squeeze Momentum Nexus Conviction focuses on a different question:
"Does the trade still deserve my conviction?"
Rather than generating simple buy and sell signals, Conviction continuously evaluates trend quality, momentum behavior, efficiency, and confirmation conditions to determine whether current market conditions still support remaining in a trade.
The objective is to help traders avoid two common mistakes:
• Exiting strong trends too early
• Holding weakening trades too long
Core Concept
Conviction transforms multiple market variables into a simplified trade management framework:
HOLD
Strong trend quality and confirmation
Momentum remains healthy
Higher timeframe and trend conditions supportive
HOLD CAUTIOUSLY
Trend remains intact, but signs of weakening or conflict begin to appear
Increased probability of pullback or slower continuation
TAKE PROFIT / DO NOT ENTER
Trade quality deteriorating
Momentum weakening significantly
Choppy or conflicting conditions increasing
Features
Trade Quality Engine
Evaluates market conditions through a weighted scoring model using:
• Momentum behavior
• Trend confirmation
• Higher timeframe agreement
• Efficiency ratio
• Volatility state
• Expansion quality
Conviction State Engine
Converts raw calculations into actionable states:
HOLD
Strong continuation conditions
Trend quality remains elevated
HOLD CAUTIOUSLY
Moderate quality conditions
Continuation possible but with increasing caution
TAKE PROFIT / DO NOT ENTER
Weak conditions
Elevated risk of deterioration, pullback, or lower probability continuation
Visual Hold Zones
Vertical highlighted chart regions visually display current conviction states:
Green
HOLD
Orange
HOLD CAUTIOUSLY
Red
TAKE PROFIT / DO NOT ENTER
Designed to allow immediate interpretation directly from price action without requiring constant dashboard monitoring.
Simple Decision Dashboard
Displays only the essential information:
Action
HOLD
HOLD CAUTIOUSLY
TAKE PROFIT / DO NOT ENTER
Trade Quality
Current trade-grade evaluation
Score
Weighted confidence reading
Suggested Uses
Can be used for:
• Managing existing positions
• Scaling out of trades
• Holding trend positions longer
• Filtering poor continuation conditions
• Preventing emotional exits
• Avoiding lower quality entries
Works well alongside:
• Market structure
• Trend systems
• Volume Profile / POC analysis
• Supply and demand zones
• Higher timeframe bias
• Risk management systems
About TrendGenY Indicators
TrendGenY indicators are built from market experience, creative concepts, and a constant pursuit of unique perspectives. Rather than following conventional ideas, the focus is on uncovering alternative insights and viewing market behavior through different angles to reveal information that traditional tools may overlook and help traders build a more meaningful edge in the market. Indicator

Dynamic Take Profit Stop LossDynamic Take Profit Stop Loss
Dynamic Take Profit Stop Loss is designed to move beyond static take profit levels by dynamically adapting profit projections to changing market conditions.
Instead of relying on fixed R:R targets or ATR values alone, this indicator uses an internal Efficiency Engine to measure how effectively price is moving and adjusts projected targets accordingly.
As market efficiency strengthens, targets can expand. As efficiency weakens or deteriorates, targets can tighten to help preserve gains and reduce exposure.
Key Features
• Adaptive TP projections based on market efficiency
• SL-based R:R projection mode
• ATR-based projection mode
• Dynamic TP expansion and contraction logic
• Automatic Optimal TP selection (TP1 / TP2 / TP3)
• Local High / Low stop-loss calculation with adjustable buffers
• Optional manual entry price input
• Multiple TP display combinations:
TP1 Only
TP2 Only
TP3 Only
Optimal Only
TP + Optimal combinations
Multi-TP combinations
Show All
• Long and Short trade projections
• Dynamic TP multiplier engine
• Efficiency state analysis:
Improving
Mixed
Worsening
• Live information table showing:
Efficiency Score
Market State
TP Multiplier
Optimal TP
Long SL Distance
Short SL Distance
• Adjustable colors, table placement, text sizing, labels, and projection length
How It Works
The internal Efficiency Engine analyzes recent price behavior by comparing:
• Net directional movement
• Total movement path traveled
• Historical improvement or deterioration in efficiency
A weighted score is generated and translated into a dynamic TP multiplier.
Typical behavior:
Strong efficiency + improving conditions
→ Expand targets
Neutral conditions
→ Hold targets
Weakening efficiency
→ Tighten targets
Weak and deteriorating conditions
→ Exit or reduce exposure
Example Use
A standard 2R target may become:
Strong conditions:
2R → 3R+
Weak conditions:
2R → 1.2R–1.5R
The goal is to align profit expectations with how price is actually behaving instead of assuming all trades deserve identical targets.
Best Used For
• Trend continuation trading
• Breakout strategies
• Intraday trading
• Swing trading
• Futures
• Forex
• Indices
• Crypto
• Stocks
About TrendGenY Indicators
TrendGenY indicators are built from market experience, creative concepts, and a constant pursuit of unique perspectives. Rather than following conventional ideas, the focus is on uncovering alternative insights and viewing market behavior through different angles to reveal information that traditional tools may overlook and help traders build a more meaningful edge in the market. Indicator

Supertrend Extensions [BOSWaves]Supertrend Extensions - Trend Flip Extension Mapping with Volume-Captured Deviation Level Progression
Overview
Supertrend Extensions is a trend extension mapping system that projects a structured set of deviation levels from each trend flip, where level spacing, crossing detection, and volume capture behavior are driven by the instrument's average range rather than fixed price distances, creating a dynamic extension framework that scales to any instrument or timeframe and records participation data at each milestone as price progresses through the projected levels.
Instead of treating a trend flip as simply a directional signal, each flip generates an immediate sequence of extension levels projected from the flip price in the new trend direction. These levels serve as structured targets and monitoring points throughout the developing move. When price crosses each level, it converts from a numbered solid line to a dashed reference displaying the crossing bar's volume, building a running record of participation quality at each stage of the trend's extension.
This creates a framework that transforms every trend flip into the origin point of a fully mapped extension sequence. The Supertrend band provides the directional anchor that triggers and validates each new projection set, while the deviation levels and their volume capture layer provide the structural and participatory intelligence needed to monitor how the trend is developing from flip through to full extension.
Price is therefore tracked not just for direction but for progression through a volatility-calibrated extension map where participation at each crossing reveals whether the move is being driven by conviction or fading with each successive level.
Conceptual Framework
Supertrend Extensions is founded on the principle that the most valuable information in a trending market is not just the direction of the trend but how price is progressing through extension space from the structural origin, and whether participation at each extension milestone is confirming or undermining the case for further progression.
Standard trend indicators identify direction and provide a trailing band but offer no framework for understanding extension behavior or monitoring participation quality as price moves away from the flip. This framework addresses that gap by treating each trend flip as the start of a measurable extension sequence, projecting levels at range-calibrated distances and capturing volume data as each level is crossed to build a continuously updating picture of trend health from origin to target.
Three core principles guide the design:
Each trend flip should immediately generate a structured extension map anchored to the flip price, providing a pre-calculated sequence of levels that serve as targets and monitoring points without requiring manual analysis.
Deviation level spacing should adapt to the instrument's actual average range, ensuring levels are meaningfully spaced relative to how the instrument typically moves rather than applying identical distances across all markets and timeframes.
Volume participation at each level crossing should be captured and permanently displayed, providing an objective record of whether price is moving through each extension milestone on strong or deteriorating participation.
This shifts trend analysis from directional signal monitoring into active extension progression tracking with volume evidence accumulated at every structural milestone.
Theoretical Foundation
The indicator combines a Supertrend band as the directional trigger, SMA-averaged range-derived deviation spacing for extension level placement, an array-managed line and label object system for level lifecycle management, and volume standard deviation normalization for candle color intensity.
Deviation level distances are derived from the 100-bar SMA of the high-low range multiplied by the configured deviation size, producing spacing that reflects the instrument's typical bar-level price movement and scales automatically as volatility expands or contracts between trend cycles. The array-managed line and label system clears all existing levels on each flip and projects a fresh numbered set, extending each line rightward until price crosses it or the next flip resets the map. Volume normalization divides raw volume by its rolling standard deviation to produce a score that drives candle color intensity relative to recent participation history rather than absolute values.
Four internal systems operate in tandem:
Deviation Level Projection System : On each trend flip, clears all existing deviation lines and labels and projects a fresh numbered sequence at average range-scaled intervals from the flip price in the new trend direction.
Level Extension and Crossing Engine : Extends each active deviation line rightward on every bar and monitors for price crossings in the trend direction, converting crossed levels to dashed references and replacing the level number label with the crossing bar's formatted volume.
Supertrend Band Engine : Provides the directional anchor that triggers each new projection set, maintaining trailing upper and lower bands that define current trend state and flip conditions.
Volume Intensity Candle System : Normalizes volume against its rolling standard deviation and maps the resulting score to a color gradient between a muted and fully saturated version of the trend color, communicating participation strength on every bar.
This design ensures that every trend flip immediately produces a complete extension framework, level crossings accumulate a volume evidence trail, and candle coloring provides continuous participation context throughout the trend's development.
How It Works
Supertrend Extensions evaluates price through a sequence of extension-aware and participation-monitoring processes:
Trend Flip Detection : The Supertrend band registers a flip when price closes through the opposing trailing band, triggering both the signal label and the deviation level projection sequence.
Deviation Distance Calculation : The 100-bar SMA of the high-low range is multiplied by the configured deviation size to produce the spacing distance between consecutive deviation levels for the new trend cycle.
Level Projection on Flip : All existing deviation lines and labels are deleted and a fresh numbered set is projected from the flip bar's close, with each level placed at a sequential multiple of the deviation distance in the new trend direction.
Level Extension : On each bar following the flip, all active deviation lines extend their right endpoint to the current bar, maintaining continuous horizontal reference lines across the developing trend.
Crossing Detection : Each active level is tested for price crossing on every bar, with bar highs tested against bullish levels and bar lows tested against bearish levels to identify genuine price contact with each extension milestone.
Volume Capture on Crossing : When a level is crossed, its line converts to dashed style with a dimmed color and the label text replaces the sequential number with the crossing bar's volume formatted for readability, permanently recording participation at that extension point.
Volume Intensity Candle Coloring : Each bar's volume is divided by its 200-bar rolling standard deviation to produce a normalized score capped at four, which maps to a color gradient from muted transparency at low participation to full trend color saturation at peak volume.
Signal Label Placement : Bullish flips produce a triangle-up label with the flip price below the Supertrend line and bearish flips produce a triangle-down label with the flip price above, anchoring each new extension map to its precise origin price.
Together, these elements form a continuously updating extension monitoring system where flip events generate structured projection maps, level crossings accumulate volume evidence, and candle intensity communicates participation strength throughout every stage of the trend.
Interpretation
Supertrend Extensions should be interpreted as a trend extension progression system with volume participation captured at each structural milestone:
Bullish Trend State (Green) : Active when price has closed above the trailing upper band, with deviation levels projected upward from the flip price as sequential bullish extension targets.
Bearish Trend State (Red) : Active when price has closed below the trailing lower band, with deviation levels projected downward from the flip price as sequential bearish extension targets.
Deviation Levels (Solid, Numbered) : Uncrossed extension levels projected from the most recent flip price, numbered sequentially from one outward in the trend direction, representing the structured target sequence for the current trend cycle.
Deviation Levels (Dashed, Volume Labeled) : Levels that have been crossed by price, converted to dashed style and displaying the crossing bar's volume rather than the level number. These form a permanent record of participation quality at each extension milestone already reached.
Volume Labels on Crossed Levels : Volume readings at crossed levels reveal whether price moved through each extension point on meaningful participation or on thin activity, providing an accumulated evidence trail for assessing trend conviction across the full extension sequence.
Supertrend Line : The solid colored band line provides the active trailing support or resistance reference for the current trend, serving as the invalidation boundary for the current directional state and the trigger for each new deviation level projection cycle.
Trend Fill : Gradient fill between the Supertrend line and the bar midpoint provides a continuous visual representation of the gap between price and the structural boundary.
▲ / ▼ Flip Signals : Triangle labels displaying the flip price mark each trend change origin, providing a clean visual anchor that corresponds to the starting point of the current deviation level projection set.
Volume Intensity Candles : Optional candle coloring brightens with above-average participation and fades toward a muted version of the trend color on low-volume bars, providing bar-level conviction readings without leaving the price chart.
Deviation level progression, volume at crossed levels, and candle intensity collectively provide more information than trend direction alone.
Signal Logic & Visual Cues
Supertrend Extensions presents two primary trend transition signals alongside continuous extension level monitoring:
Bullish Flip (▲) : Triggered when price closes above the trailing upper band, displaying the flip price below the bar and projecting a fresh set of upward deviation levels from the flip price.
Bearish Flip (▼) : Triggered when price closes below the trailing lower band, displaying the flip price above the bar and projecting a fresh set of downward deviation levels from the flip price.
Deviation level crossings provide continuous secondary context throughout each trend cycle, converting each extension milestone into a volume-stamped reference that builds a participation evidence log from flip to target.
Alert generation covers bullish and bearish trend flips for systematic trend monitoring and notification workflows.
Strategy Integration
Supertrend Extensions fits within structured extension target and trend progression monitoring approaches:
Deviation Level Target Sequencing : Use the projected deviation levels as a staged exit framework, planning partial position reductions at each sequential level rather than targeting a single fixed price, allowing structured progression management calibrated to each trend's specific origin and volatility context.
Volume Confirmation at Levels : Monitor the volume displayed when deviation levels are crossed to assess participation quality at each extension stage. Sustained or increasing volume at successive crossings supports further progression, while declining volume at each level warns of weakening extension commitment.
Flip-Based Trend Entries : Use Supertrend flip signals as primary trend initiation triggers, with the immediately projected deviation levels providing an instant target framework from the moment of entry.
Supertrend Band Pullback Reference : Use the Supertrend line as a dynamic pullback reference within established trends, monitoring candle volume intensity on band retests for participation evidence supporting continuation rather than breakdown.
Deviation Size Calibration by Timeframe : Adjust the deviation size multiplier to match the instrument's typical trend range at the target timeframe, ensuring the extension map spans a realistic distance relative to expected directional movement.
Multi-Timeframe Extension Alignment : Apply higher-timeframe Supertrend state as a directional bias filter, engaging with lower-timeframe extension level sequences only when they align with the established higher-timeframe trend direction.
Technical Implementation Details
Deviation System : 100-bar SMA of high-low range scaled by configurable deviation size multiplier with configurable level count
Level Lifecycle : Array-managed line and label objects cleared on each flip, extended rightward each bar, and converted to dashed references with volume labels on crossing
Supertrend Engine : ATR-scaled trailing band with configurable multiplier and length as directional anchor and flip trigger
Volume Normalization : 200-bar standard deviation-based scoring mapped to candle color gradient intensity
Visualization : Solid and dashed deviation levels with volume labels, Supertrend line with trend fill, flip signal labels, and volume-intensity candle coloring
Signal Logic : Band crossover state-switch detection with independent bullish and bearish flip conditions
Performance Profile : Optimized for real-time execution with array-based object management and max_bars_back configuration supporting deep historical calculation
Optimal Application Parameters
Timeframe Guidance:
1 - 5 min : Intraday extension mapping for scalping with tighter deviation spacing and lower level count for fast-moving target sequences
15 - 60 min : Session-level extension progression with balanced deviation size and moderate level count for structured intraday target management
4H - Daily : Swing-level extension mapping with wider deviation spacing and higher level count reflecting larger price swings between flip events
Suggested Baseline Configuration:
ATR Multiplier : 5.0
ATR Length : 14
Deviation Size : 2.7
Deviation Count : 4
Show Signals : Enabled
Color Candles : Enabled
These suggested parameters should be used as a baseline; their effectiveness depends on the instrument's typical extension range, average bar size, and preferred level density, so fine-tuning is expected for optimal performance.
Parameter Calibration Notes
Use the following adjustments to refine behavior without altering the core logic:
Deviation levels too close together : Increase Deviation Size to spread levels further apart relative to the average bar range, producing a wider extension map that better reflects the instrument's typical trend range at the target timeframe.
Deviation levels too far apart : Decrease Deviation Size toward 1.0 to tighten level spacing, producing more granular extension targets suited to lower timeframes or lower-volatility instruments.
Too many levels cluttering the chart : Reduce Deviation Count to limit projected levels to the nearest and most actionable targets, focusing the extension map on realistic near-term progression milestones.
Too few levels to cover the typical trend range : Increase Deviation Count up to the maximum of six to extend the projection sequence further, covering a wider range of potential extension targets for instruments with larger typical trending moves.
Too many trend flips resetting the extension map : Increase the ATR Multiplier to widen the Supertrend band and require more significant price displacement before a flip resets the deviation level sequence.
Trend flips too slow to capture structural changes : Decrease the ATR Multiplier toward 2.0 for a more responsive band that generates fresh extension maps closer to actual structural shifts in price direction.
Candle coloring too uniform : The volume intensity gradient operates on a standard deviation basis. On instruments with very consistent volume distribution the gradient range may appear compressed, which is expected and reflects genuinely low variation in participation levels.
Adjustments should be incremental and evaluated across multiple session types rather than isolated market conditions.
Performance Characteristics
High Effectiveness:
Trending markets with sustained directional moves where deviation levels are reached sequentially and volume at each crossing provides meaningful progression confirmation
Instruments with consistent average range behavior where deviation spacing calibrates reliably to the instrument's typical bar-level price movement across different trend cycles
Structured target-based approaches where the deviation level sequence provides a systematic exit framework calibrated to each trend's specific origin and volatility context
Multi-timeframe workflows where higher-timeframe trend direction filters lower-timeframe flip signals for directional alignment with the broader trend
Reduced Effectiveness:
Choppy, range-bound markets where frequent trend flips reset the extension map before price reaches the first deviation level, preventing a useful progression sequence from developing
Extremely volatile instruments where large individual bars cause the average range to spike, producing deviation spacing that overstates typical extension potential for subsequent trend cycles
Low-volume instruments where the standard deviation-based candle coloring loses discriminative power due to irregular or thin volume distribution
News-driven or gap-heavy markets where trend flips occur on discontinuous price action that distorts the average range calculation and misaligns deviation level placement relative to actual structural extension potential
Consolidation environments where price oscillates near the Supertrend band without establishing the sustained directional movement required for sequential deviation level progression
Integration Guidelines
Confluence : Combine with BOSWaves momentum tools, order flow analysis, or market structure indicators to validate trend flip signals and assess the broader analytical context before committing to deviation level target sequences
Volume Label Monitoring : Review volume labels on crossed deviation levels as a running confirmation log for the trend. Declining volume at successive levels suggests weakening extension commitment and warrants caution about remaining target progression.
Deviation Level Respect : Treat uncrossed deviation levels as active areas of potential price reaction rather than guaranteed targets. Monitoring candle behavior and volume intensity as price approaches each level provides early indication of whether the level will be crossed or act as a reversal point.
Extension Map Freshness : Recognize that deviation levels are anchored to the most recent flip price and reflect the volatility conditions at that specific origin point. As time passes within a trend cycle, reassess whether the projected levels remain relevant to current market conditions.
State Discipline : Maintain directional bias aligned with the current Supertrend state until a confirmed flip occurs. Temporary pullbacks toward the active band that do not close through it do not constitute trend changes and should not trigger premature exits from active extension target sequences.
Disclaimer
Supertrend Extensions is a professional-grade trend extension mapping and volume participation tracking tool. It uses range-calibrated deviation level projection with volume capture at each crossing but does not predict future price movements. Results depend on market conditions, instrument volatility characteristics, parameter selection, and disciplined execution. BOSWaves recommends deploying this indicator within a broader analytical framework that incorporates momentum context, order flow analysis, and comprehensive risk management. Indicator

Market Structure Trend Matrix [BigBeluga]Market Structure Trend Matrix is a comprehensive technical analysis framework engineered for traders who demand precision in identifying market regimes and trend expansions. By integrating automated Market Structure (MS) detection with volatility-adjusted risk parameters, this indicator provides a systematic roadmap for navigating complex price action.
The tool focuses on the Change of Character (ChoCh) —the critical moment when a previous trend structure breaks and a new directional bias begins.
🔵 ARCHITECTURE & CORE LOGIC
Automated Structure Mapping: The engine uses a sophisticated pivot-detection algorithm (MS Length) to scan for institutional-grade swing highs and lows. It ignores minor retail noise, drawing structural lines only when significant supply or demand zones are breached.
The ChoCh Engine: When price crosses a recent pivot high or low, the indicator prints a "ChoCh" label. This represents a fundamental shift in market sentiment, signaling that the current trend has likely terminated and a new cycle has begun.
Infinite Expansion Targets: One of the most advanced features of the Matrix is its ability to project sequential, infinite targets. These levels are not static; they are calculated using Average True Range (ATR) multipliers, meaning they expand and contract based on current market volatility.
Volatility-Anchored Trailing Stop: To ensure professional-grade risk management, the indicator plots a dynamic ATR Trailing Stop . This line acts as a "ratchet" mechanism—it moves closer to price during the trend expansion but stays firm during minor pullbacks, providing a clear exit point if the trend truly fails.
🔵 ADVANCED FEATURES & UPDATES
Target History Control: This latest version includes a Show History toggle. You can choose to keep the chart clean by only displaying the Active Target , or you can enable history to see a visual record of every target hit during the trend, complete with historical percentage labels.
Dynamic Trailing Stop Visibility: The Show Trailing Stop feature allows you to toggle the visibility of the ATR stop line and its associated background fill, giving you full control over the visual "weight" on your workspace.
Percentage Profit Labels: Every time price reaches an expansion target, the script automatically plots a label showing the percentage gain from the initial ChoCh entry point.
Volatility-Adjusted Spacing: Both the trailing stop and the target steps use ATR-based calculations. This ensures that the indicator remains effective across all asset classes—from volatile Cryptocurrencies to stable Forex pairs.
🔵 HOW TO INTERPRET THE MATRIX
Bullish State (Green Matrix): Activated when price breaks above a major Pivot High. The indicator projects upward expansion targets and maintains a trailing stop below the price.
Bearish State (Pink Matrix): Activated when price breaks below a major Pivot Low. The indicator projects downward targets and maintains a trailing stop above the price.
The Target Cascade: As price hits a target, the indicator instantly projects the next level. If price continues to expand, you will see a "cascade" of dashed lines, each representing a deeper extension into the trend.
🔵 APPLICATION IN TRADING
Scalping & Day Trading: Set the Market Structure Length to a lower value (e.g., 5-8) to capture fast intraday pivots and expansion moves on 1m or 5m charts.
Swing Trading: Use a higher length (e.g., 15-20) to identify macro structure shifts on Daily or H4 timeframes, allowing the ATR targets to guide your long-term profit-taking.
Risk-Reward Management: The distance between the ChoCh Entry and the ATR Trailing Stop provides an objective risk measurement, while the sequential targets provide clear reward milestones.
Filtering False Breaks: By using an ATR Multiplier for the trailing stop, the Matrix avoids many of the common "whipsaws" found in standard trend-following systems.
🔵 CONCLUSION
Market Structure Trend Matrix is more than a signal tool; it is a visual framework for objective decision-making. By anchoring your trading to structural pivots and volatility-based targets, you remove the guesswork from trend following. Whether you are looking for a clean "ChoCh" entry or a systematic way to trail your profits during a massive expansion, the Trend Matrix provides the data and clarity required to trade like a professional. Indicator

SuperTrend Take-Profit Dimensions [AlgoAlpha]🟠 OVERVIEW
A multi-dimensional take-profit aid that scores how typical the current bar looks compared to past SuperTrend pivots, so you can tell when a trend has reached favorable exit conditions.
The indicator runs a standard SuperTrend and records every confirmed zigzag pivot that occurs during a matching-direction run. Tops go into a bull pool , bottoms into a bear pool . Each pivot is stored as a set of readings across several independent axes, such as relative volume , time of day , and price position inside the recent range .
On every bar, the current reading on each axis is compared to that historical pool. A blended score from 0 to 100 tells you how closely the current conditions resemble where past pivots in the same direction have clustered. The idea is to give trend followers a data-backed sense of when to start tightening up, rather than guessing an exit or using a fixed R-multiple.
The three built-in axes were chosen deliberately to be as uncorrelated as possible , each describing a different dimension of market context: volume (relative volume percentile), time (time of day), and price (position in recent range). Correlated inputs would double-count the same information and distort the blended score; picking axes that describe genuinely different aspects of the market means each one contributes independent evidence, and the score reflects how many distinct dimensions are currently in agreement.
🟠 CONCEPTS
SuperTrend — An ATR-based trailing stop that flips between bullish and bearish states. Controls which pool of historical pivots the script reads from.
Pivot pool — A rolling store of confirmed zigzag pivots, split by direction. Bull pool holds pivot highs that printed during bullish SuperTrend runs; bear pool holds pivot lows from bearish runs. Capped at 2000 entries per side .
Context axis — A 0–100 value measured at the pivot bar. The script ships with three built-ins ( relative volume percentile , time of day , position in recent range ) and one optional user-plugged signal.
Axis independence — The three built-in axes cover volume , time , and price respectively, chosen so each describes a structurally different part of the market. Low correlation between axes keeps the blended score from being dominated by any single factor.
Conditional histogram — For each active axis, the script walks its pool and keeps only pivots whose bins on every other active axis match the current bar. The survivors are binned to form a histogram.
Axis score — For one axis, the count of pivots in the current bar's bin divided by the count in the histogram's tallest bin, scaled to 0–100 . 100 means the current context sits in the densest part of past pivots.
Blended favourability score — Arithmetic mean of the active per-axis scores. This is what the gauge and table display.
Density-match scoring — The score measures how common the current context is among past pivots. It is not a forward probability and makes no claim about what happens next.
🟠 FEATURES
Right-side context profiles — Stacked mini histograms render to the right of price, one per active axis.
• Bar heights show how pivots in each axis's conditional pool distribute across bins.
• A dashed vertical line marks the current bar's bin on that axis, so you can see at a glance where today sits against history.
• Bar hue tracks the active SuperTrend direction.
Favourability gauge — A vertical gradient table in the bottom-right showing the blended score, with a chevron marking the current level. Green at the top, red at the bottom.
Favourability breakdown table — A two-column readout of each active axis's individual score out of 100, plus a final row that classifies the blended score as Good , Neutral , or Bad . Position and text size are configurable.
Bar coloring — Bars fade from neutral grey toward the opposing trend colour as the blended score rises toward 100, so the chart itself signals when the context is stretched.
Take-profit markers — Small orange markers print above or below the bar when the blended score hits 100 for the active SuperTrend direction.
Timeframe guard — The time-of-day axis disables automatically on daily and higher timeframes, where the reading has no meaning, and a banner explains this so the blended score stays honest.
Multi-dimensional scoring engine — Four independent axes feed into a single score, each conditioned on all the others.
• Three built-in axes can be toggled on or off individually.
• A fourth axis accepts any plot via source input , provided the series stays within 0–100 on all loaded bars.
• An on-chart warning prints if the custom signal leaves that range, and the axis is ignored until it is corrected.
Deliberately uncorrelated built-in axes — Volume ( relative volume percentile ), time ( time of day ), and price ( position in recent range ) cover three structurally different facets of market context. Keeping the axes independent means each one adds new information to the blend rather than reinforcing the others.
Alert conditions — Six alerts are included: SuperTrend bullish flip, SuperTrend bearish flip, score peak match, and crossovers into the Good , Neutral , and Bad bands.
🟠 HOW TO USE
Add the script to an intraday chart on a liquid instrument and let it run long enough to populate the pools. More history means more stable conditional histograms.
Let SuperTrend define the active regime. The script only scores in the direction of the current trend; bar coloring and take-profit markers respect that regime.
Read the gauge and breakdown table together. The gauge shows the blended level; the table shows which individual axes are pulling it up or down.
Use the right-side profiles as a sanity check. If the dashed current-bin marker is sitting on or near the tallest bar across most axes, the current context closely resembles past pivot contexts in that direction.
Treat high scores as a cue to tighten management, not as reversal signals. A reading of 100 means conditions match where pivots have historically clustered, not that the trend is guaranteed to end.
Adjust the zigzag pivot length to control how strict the pool is. Lower values admit more pivots ( bigger, noisier sample ); higher values keep only firmer pivots ( smaller, cleaner sample ).
Plug your own signal into the custom axis to test whether an existing 0–100 oscillator adds useful conditioning, such as an RSI or a normalised momentum reading. For best results, pick a signal that is not strongly correlated with the three built-ins, so the custom axis adds a new dimension rather than re-stating an existing one.
Enable only the alerts that fit your workflow. The band-crossover alerts fire once per transition , not on every bar inside a band.
🟠 LIMITATIONS
The pool holds every confirmed pivot during a matching-direction run, not only pivots that ended the trend. Intermediate pullbacks sit alongside genuine terminal pivots. Raising the zigzag pivot length filters the pool further if you want a cleaner sample.
On strongly trending symbols the pool is dominated by pullback pivots rather than true terminal exits, because strong trends have many small pullbacks and only one final top or bottom. On choppy symbols the ratio is more balanced. Read the score with this in mind.
The blended score is a density-match measure, not a forward probability . A high reading means today's context is common among past pivots of this direction. It does not predict that the trend is about to end.
The time-of-day axis has no meaning on daily and higher timeframes and is disabled automatically on those timeframes. A warning banner confirms when this is active.
The custom axis requires a source already scaled to 0–100 on every loaded bar. Values outside that range disable the axis and surface a warning. Toggling the custom axis on a live chart starts the range check from the current bar; reload the chart to validate against full loaded history .
Pools are capped at 2000 entries per direction , with the oldest entries dropped first. On very long intraday histories the effective lookback is symbol- and timeframe-dependent.
All scoring uses data up to and including the confirmation bar of each pivot; pivots themselves are detected with the standard zigzag confirmation lag, meaning the scoring population on any given bar reflects pivots confirmed at least zzLen bars earlier.
🟠 CONCLUSION
SuperTrend Take-Profit Dimensions combines a standard SuperTrend with a rolling pool of historical pivot contexts and scores the current bar against that pool across up to four independent axes spanning volume, time, and price. The output is a blended 0–100 favourability reading , a per-axis breakdown, and a set of context profiles that show where past pivots have clustered. It gives trend followers a structured, data-backed way to judge when the current context matches where trends have historically given back profit, without pretending to predict the next bar. Indicator

Indicator

StealthTrail SuperTrend ML Pro [WillyAlgoTrader]🤖 StealthTrail SuperTrend ML Pro is an overlay indicator that builds on the adaptive SuperTrend core from StealthTrail and adds three layers of intelligence: an instrument profiling engine that classifies the market into Trending, Ranging, or Volatile regimes and auto-tunes all SuperTrend parameters accordingly; a 13-feature machine learning scoring system that evaluates every candidate signal on momentum, trend, volatility, structure, volume, HTF alignment, divergence, session quality, and regime context — producing a 0–100 confidence score; and a self-learning mechanism that tracks signal outcomes over time and dynamically adjusts the confidence gate to optimize signal quality. The result is a SuperTrend that configures itself, scores its own signals, and learns from its results.
🧩 WHY THESE COMPONENTS WORK TOGETHER
A standard SuperTrend has fixed parameters that work well in one market regime and fail in another. Manually tuning ATR length, multiplier, and filters for each instrument and timeframe is time-consuming and becomes outdated when conditions change.
This indicator solves the problem through a three-layer intelligence stack:
Layer 1 — Regime classification → Auto-tuning: The instrument profiler continuously measures efficiency ratio (trend strength), autocorrelation (serial dependence), volatility clustering, and normalized volatility — classifying the market into TRENDING, RANGING, or VOLATILE. Each regime produces different optimal SuperTrend parameters. The auto-tuner interpolates ATR length, multiplier, cushion, cooldown, and RSI threshold using regime-weighted blending — so the SuperTrend self-configures for current conditions.
Layer 2 — ML signal scoring: Even with auto-tuned parameters, not every SuperTrend flip is a good trade. The 13-feature ML engine evaluates each flip against momentum, volume, trend efficiency, volatility shock, band distance, MACD, price structure, regime confidence, MTF alignment, ADX strength, RSI divergence, volume profile zone, and session quality. Each feature is normalized to 0–100, weighted, passed through a sigmoid function, and combined into a single confidence score. Signals below the confidence gate are rejected — they pass the classic SuperTrend logic but fail the multi-dimensional quality check.
Layer 3 — Self-learning gate: The ML confidence gate itself adapts over time. The system tracks each signal's outcome (win/loss evaluated after N bars using the ATR at entry for fair comparison). When the win rate exceeds 70%, the gate lowers (allowing more signals). When it drops below 50%, the gate raises (becoming stricter). A decay factor prevents old signals from dominating. This creates a feedback loop: the indicator learns which confidence level produces profitable signals on this specific instrument and timeframe.
Without auto-tuning, the SuperTrend uses static parameters. Without ML scoring, good and bad flips are treated equally. Without self-learning, the confidence gate is a fixed guess. Each layer eliminates a specific category of bad signals that the previous layer can't catch.
🔍 WHAT MAKES IT ORIGINAL
1️⃣ Instrument profiling and regime classification.
The profiler computes four metrics over a configurable lookback (default 100 bars):
— 📐 Efficiency Ratio : ER = |close − close | / sum(|close − close |, N). Measures net directional movement vs total path. ER → 1.0 = pure trend, ER → 0.0 = pure chop.
— 🔄 Autocorrelation : correlation between return and return over a sliding window. High positive autocorrelation = trending persistence. Near-zero = random. Negative = mean-reverting.
— 📏 Volatility Clustering : ratio of short-term ATR (20 bars) to long-term ATR (lookback). Values > 1.0 indicate a volatility spike (breakout or crash). Values < 1.0 indicate compression.
— 📈 Normalized Volatility : ATR / close × 100. Measures absolute volatility as percentage of price — allows cross-instrument comparison.
These are smoothed with EMA and combined into three regime scores:
— trendScore = ER × regimeSensitivity
— rangeScore = (1 − ER) × (1 − |autocorrelation|) × regimeSensitivity
— volatScore = clamp(volClustering − 1, 0, 2) × regimeSensitivity
The highest score determines the regime: TRENDING, RANGING, or VOLATILE. Regime confidence = highest_score / total_scores × 100%.
2️⃣ Regime-weighted auto-tuning (6 parameters).
Each SuperTrend parameter is computed as a weighted blend of regime-optimal values:
effectiveParam = wT × trendOptimal + wR × rangeOptimal + wV × volatileOptimal
Where wT, wR, wV are the normalized regime weights. The parameters and their regime-optimal ranges:
— ATR Length: Trending=10, Ranging=16, Volatile=21 (further scaled by normalized volatility)
— Base Multiplier: Trending=2.0, Ranging=3.2, Volatile=3.8 (scaled by normalized vol)
— Flip Cushion: Trending=0.05, Ranging=0.25, Volatile=0.15
— Signal Cooldown: Trending=2, Ranging=5, Volatile=3
— RSI Threshold: Trending=40, Ranging=52, Volatile=45
— RSI Length: derived as ATR Length × 0.9
— Adaptive Smoothing: ATR Length × 4.0
This means in a trending regime, the SuperTrend uses shorter ATR, lower multiplier (tighter bands), minimal cushion, and permissive RSI — catching trends early. In a ranging regime: longer ATR, wider multiplier, large cushion, strict RSI — avoiding chop. In volatile conditions: intermediate settings with wider bands to accommodate spikes.
3️⃣ 13-feature ML scoring engine.
Each feature is normalized to 0–100, multiplied by its weight, summed, normalized by total weight, and passed through a sigmoid function to produce the final 0–100 confidence score.
Features and their weights:
— 💪 F1: Momentum (RSI alignment with trend) — w=0.15
— 📈 F2: Volume Surge (volume / SMA ratio) — w=0.08
— 📐 F3: Trend Efficiency (ER × 100) — w=0.15
— ⚡ F4: Volatility Shock (inverted vol clustering) — w=−0.08 (negative = penalizes vol spikes)
— 📏 F5: Band Distance (sigmoid of close-to-band ATR distance) — w=0.10
— 📊 F6: MACD (normalized histogram vs ATR) — w=0.08
— 🏗️ F7: Price Structure (HH/HL for bull, LL/LH for bear over 10 bars) — w=0.08
— 🧠 F8: Regime Confidence (% confidence in current regime) — w=0.04
— 🌐 F9: MTF Confluence (aligned with HTF = 100, not = 0) — w=0.12
— 💪 F10: ADX Strength (ADX × 2.5, capped at 100) — w=0.10
— 🔀 F11: RSI Divergence (aligned div = 100, counter div = 10) — w=0.08
— 📊 F12: Volume Profile Zone (proximity to highest-volume bar) — w=0.06
— 🕐 F13: Session Quality (hour-based scoring for optimal trading sessions) — w=0.04
The raw weighted sum is normalized, then passed through: mlScore = 100 / (1 + exp(−0.08 × (normalizedScore − 50))). This sigmoid compresses extreme values and centers the output around 50.
All 13 weights plus the bias term are user-configurable — you can adjust how much each factor contributes. Negative weights penalize a factor (e.g., W4 = −0.08 means high volatility shock reduces the score).
4️⃣ Self-learning confidence gate.
The system maintains 5 pending signal slots. Each stores the entry price, direction, bar index, and ATR at entry. After the evaluation horizon (default 15 bars), the outcome is assessed:
win = (close − entryPrice) × direction > 0.5 × entryATR (profitable by at least half an ATR, using the ATR at entry time — not current ATR — for fair comparison)
A decay factor (0.98) is applied to historical totals before adding new results, preventing stale data from dominating. When total tracked signals ≥ 8:
— Win rate > 70% → gate decreases by 1.5 (more permissive)
— Win rate < 50% → gate increases by 1.5 (more restrictive)
— Gate is clamped to
The dashboard shows the current gate value, whether it's auto-adjusted, and the tracked win rate with sample size.
5️⃣ Multi-timeframe confluence with auto-HTF selection.
The indicator automatically selects the appropriate higher timeframe based on your current TF: 1M→15M, 5M→30M, 15M→1H, 1H→4H, 4H→D, D→W. Or you can manually specify the HTF.
Three strictness levels:
— Loose: MTF misalignment adds negative ML score but doesn't block
— Moderate: MTF misalignment reduces signal quality
— Strict: MTF misalignment hard-blocks the signal entirely
HTF trend is determined by EMA(20) vs EMA(50) on the higher timeframe.
6️⃣ Adaptive SuperTrend core (from StealthTrail).
The band calculation uses pre-computed interpolated ATR values (ATR bank at 9 fixed periods with lerp interpolation) for smooth adaptation to any auto-tuned ATR length. Same mechanics as StealthTrail: adaptive multiplier (ATR / SMA ratio), band ratcheting, flip cushion, and cooldown — but now all parameters are regime-driven.
7️⃣ Three-mode trailing TP/SL system.
Three SL modes: ATR (entry ± mult × ATR), Band (SuperTrend band as SL), Fixed % (percentage from entry).
Three trailing modes:
— ATR : trail at fixed ATR distance from price — simple, consistent
— Band : use the SuperTrend band itself as trailing stop — structurally anchored
— ATR → Band (hybrid) : start with tight ATR trail, switch to band when it catches up — best of both
The trail only ratchets in the profit direction (never moves away from price). TP1/TP2/TP3 hit markers (✓) appear on the chart. On TP3 or SL hit, the trade closes and lines are removed.
8️⃣ RSI divergence detection.
Scans for bullish divergence (price lower low, RSI higher low, RSI < 40) and bearish divergence (price higher high, RSI lower high, RSI > 60). Divergences aligned with the signal direction boost the ML score (F11 = 100). Counter-divergences penalize it (F11 = 10). Optional visualization as dots on the chart.
9️⃣ Volume profile zone proximity.
Tracks the highest-volume bar in the last 50 bars. Proximity to this bar's price level is scored: within 1.5× ATR = 100 (near institutional activity), further = proportionally lower. Signals near high-volume zones tend to have more follow-through.
🔟 Session quality scoring.
For intraday timeframes, each hour receives a quality score based on typical institutional activity: London/NY overlap (13–17 UTC) = 100, European session (8–12) = 80, US afternoon (18–20) = 70, Asian session (0–7) = 30. An optional kill zone filter suppresses all signals during specified hours.
⚙️ HOW IT WORKS — CALCULATION FLOW
Step 1 — Instrument profiling: ER, autocorrelation, vol clustering, normalized vol → EMA-smoothed → regime classification (TRENDING / RANGING / VOLATILE) with confidence %.
Step 2 — Auto-tuning: Regime weights blend optimal parameters for ATR length, multiplier, cushion, cooldown, RSI threshold/length.
Step 3 — SuperTrend calculation: Interpolated ATR from pre-computed bank → adaptive multiplier (ATR/SMA ratio) → upper/lower bands → ratcheting → flip detection with cushion + cooldown.
Step 4 — Classic filters: Momentum (RSI), volume, session, MTF hard-block (if strict).
Step 5 — ML feature extraction: 13 features normalized to 0–100 from current market state.
Step 6 — ML scoring: Weighted sum → weight normalization → sigmoid → 0–100 confidence score.
Step 7 — Signal decision: Classic filters pass AND (ML disabled OR mlScore ≥ gate) → confirmed signal.
Step 8 — Self-learning: Signal stored in pending slot → evaluated after horizon bars → win rate updated → gate adjusted.
Step 9 — TP/SL placement: SL from band/ATR/fixed% → TPs as ATR multiples → trailing stop ratchets per mode.
📖 HOW TO USE
🎯 Quick start:
1. Add the indicator — Auto-Tune is ON by default, parameters self-configure
2. The SuperTrend band and Long/Short labels appear
3. Dashboard shows: trend, strength, regime, ML score, gate, win rate, TP/SL status
4. Enable ML Filter for quality scoring (off by default — enable after reviewing signal quality)
5. Self-Learning auto-adjusts the gate over time
👁️ Reading the chart:
— 🟢 Green band + "Long" label = confirmed bullish signal
— 🔴 Red band + "Short" label = confirmed bearish signal
— ⚫ Gray dot = classic filter blocked the flip
— 🟡 Yellow triangle = ML rejected the signal (score below gate)
— 🟢 Green dot below bar = bullish RSI divergence
— 🔴 Red dot above bar = bearish RSI divergence
— 📈 Regime badge = current market classification (📈 TRENDING / 📊 RANGING / ⚡ VOLATILE)
— 🟢 Green dashed = TP1/TP2/TP3, 🔴 Red dashed = SL, 🔵 Blue dotted = entry
— "TP1 ✓" / "SL ✗" labels = outcome markers
📊 Dashboard sections:
— Main: trend, signal, strength, ADX, HTF alignment
— 🤖 ML Engine: ML score, confidence gate (fixed or auto), win rate with sample size
— 🎯 Position: status (LONG/SHORT/FLAT), entry, SL (with trail mode icon), TP levels (✓ for hit), R:R ratio
— 🧠 Regime: classification + confidence %
🔧 Tuning guide:
— Start simple: Auto-Tune ON, ML OFF — let the regime engine handle parameters
— Add ML: Enable ML Filter after 50+ signals to see which score level produces winners
— Enable Self-Learning: after 100+ bars of ML being active — let the gate auto-calibrate
— Adjust weights: if you know your market (e.g., volume is unreliable on forex → set W2 to 0)
— Strict MTF: for higher-timeframe alignment — reduces signals, increases quality
— Trail Mode: Band for trend-following, ATR for scalping, ATR→Band for hybrid
⚙️ KEY SETTINGS REFERENCE
⚙️ Main:
— Auto-Tune (default On): regime-driven parameter self-configuration
— ATR Length / Base Multiplier : manual overrides when auto-tune is off
🧠 Adaptive Engine:
— Profiling Lookback (default 100): bars for regime classification
— Regime Sensitivity (default 1.0): scaling factor for regime scores
📐 Multi-Timeframe:
— MTF Confluence (default On): Auto/Manual HTF selection
— Strictness (default Moderate): Loose / Moderate / Strict
🤖 ML Signal Filter:
— Enable ML (default Off): activate 13-feature scoring
— Confidence Gate (default 21): minimum ML score to pass
— Self-Learning (default On): auto-adjust gate from tracked outcomes
— Evaluation Horizon (default 15 bars): outcome assessment window
— 13 individual weights + bias : fully configurable feature importance
🔍 Filters:
— Flip Cushion, Cooldown, RSI Momentum, Volume, Session Kill Zone
🎯 TP/SL:
— SL Mode (default Band): ATR / Band / Fixed %
— Trail Mode (default Band): ATR / Band / ATR → Band
— TP Levels (1–3): ATR multipliers (default 1.5 / 2.5 / 4.0)
🔔 Alerts
— 🟢 LONG / 🔴 SHORT — ticker, price, TF, band, ML score, ADX, HTF, SL, TP1, regime
— 🎯 TP1 / TP2 / TP3 HIT — trade progress
— 🛑 SL HIT — stopped out
All support plain text and JSON webhook format. Bar-close confirmed.
⚠️ IMPORTANT NOTES
— 🚫 No repainting. All signals require barstate.isconfirmed. The confirmed trend direction is stored separately from the real-time calculation — signals only fire on closed bars. HTF data uses lookahead_off. A warmup period (max of profiling lookback and 55 bars) prevents signals during insufficient data.
— 🤖 The ML scoring is not machine learning in the neural network sense . It's a weighted linear model with sigmoid activation — a logistic regression analog. The 13 features are hand-crafted from market microstructure, and the weights are configurable by the user. There is no gradient descent, backpropagation, or training phase. The "self-learning" adjusts only the confidence gate threshold, not the feature weights.
— 📐 Auto-tuning produces different parameters on every bar as the regime shifts. The ATR length and multiplier change continuously — this is by design. If you prefer fixed parameters, disable Auto-Tune.
— ⚖️ The self-learning gate requires at least 8 tracked signals before it begins adjusting. With the decay factor (0.98), the effective sample is weighted toward recent signals. The gate moves slowly (±1.5 per adjustment) and is clamped to .
— 📊 Win rate evaluation uses ATR at entry time , not current ATR. A signal is a "win" if price moves > 0.5× entry ATR in the signal direction within the evaluation horizon. This prevents volatile periods from inflating win counts.
— 🔄 The pre-computed ATR bank (9 fixed periods with lerp interpolation) is a performance optimization that allows smooth ATR adaptation to any auto-tuned length without calling ta.atr() dynamically — which Pine Script doesn't support with variable-length arguments.
— 📏 Volume Profile Zone tracks the single highest-volume bar in the last 50 bars, not a full volume profile. It decays after 50 bars with no new volume peak.
— 🕐 Session scoring uses UTC-based hours. On daily or higher timeframes, session quality defaults to 50 (neutral) as intraday session distinctions don't apply.
— 🛠️ This is a signal scoring and analysis tool , not an automated trading bot. It classifies regimes, scores signals, tracks outcomes, and manages TP/SL — trade decisions remain yours.
— 🌐 Works on all markets and timeframes. Volume features auto-adapt to instruments without volume data. Indicator

Adaptive Ichimoku Nexus [WillyAlgoTrader]☁️ Adaptive Ichimoku Nexus — a modern approach to the legendary all-time indicator Ichimoku Kinko Hyo. This overlay indicator replaces the fixed periods of the classic Ichimoku system with a volatility-adaptive engine that dynamically scales Tenkan-Sen, Kijun-Sen, and Senkou Span B lookback periods based on current market conditions. Every TK cross signal is scored by an 8-factor confluence engine (0–100) that combines all five Ichimoku dimensions with volume, momentum pulse, and momentum acceleration. The indicator also includes a dedicated Kumo breakout engine with retest detection, three Ichimoku-anchored SL modes with R:R-based TP levels, and a multi-timeframe Ichimoku alignment panel — creating a complete trading system built entirely on Ichimoku principles enhanced with adaptive intelligence.
Ichimoku Kinko Hyo was designed in the 1930s with fixed periods (9/26/52) calibrated for the Japanese trading week. These periods remain the default worldwide, but modern markets are faster, more volatile, and trade 24/7. A fixed 26-period Kijun-Sen responds identically whether the market is in a tight range or a momentum breakout — producing late signals in trends and whipsaws in consolidation.
This indicator preserves the complete Ichimoku structure — all five lines, the cloud, and the displacement — while making the periods responsive to current volatility. In high-volatility environments, all three Donchian-based periods shorten → the Tenkan reacts faster, the Kijun adapts sooner, the cloud thins and pivots quicker. In low-volatility consolidation, the periods lengthen → noise is filtered, fewer false TK crosses, thicker cloud provides stronger S/R. The entire Ichimoku system breathes with the market.
🧩 WHY THESE COMPONENTS WORK TOGETHER
Classic Ichimoku already integrates five components into one system: Tenkan-Sen (momentum), Kijun-Sen (trend), Senkou Span A/B (future S/R), and Chikou Span (lagging confirmation). The genius of Ichimoku is that these five dimensions are designed to confirm each other — a "5/5 alignment" is one of the strongest signals in technical analysis.
This indicator enhances the system at three levels:
Level 1 — Adaptive periods: The volatility engine scales all three Donchian-based components (Tenkan, Kijun, Span B) proportionally, preserving the Ichimoku ratios while adapting the speed. This means the relationship between Tenkan and Kijun (the core signal mechanism) stays consistent — they just both become faster or slower together.
Level 2 — Confluence scoring: Instead of manually checking "Is Tenkan above Kijun? Is price above cloud? Is Chikou confirming?" — the 8-factor engine quantifies every Ichimoku dimension plus volume and momentum into a single 0–100 score. A score of 85 means virtually every Ichimoku component plus momentum and volume agrees. A score of 35 means the signal is conflicted — skip it.
Level 3 — Structural TP/SL: The Kumo edge and Kijun-Sen are natural Ichimoku support/resistance levels. Using them as stop-loss anchors (instead of arbitrary ATR multiples) produces structurally meaningful stops that respect the same framework generating the signals.
Level 4 — Momentum Pulse: Classic Ichimoku has no built-in momentum acceleration measure. The Momentum Pulse engine quantifies how fast the TK spread is changing and which direction the future cloud is rotating — capturing the urgency behind each signal.
Without adaptive periods, the system is rigid. Without scoring, you must manually assess 5+ factors. Without structural SL, your risk management ignores Ichimoku's own S/R levels. Without the Momentum Pulse, you can't distinguish between a strong and a fading TK cross. Each layer adds a dimension that classic Ichimoku lacks.
🔍 WHAT MAKES IT ORIGINAL
1️⃣ Volatility-adaptive Ichimoku periods.
When Adaptive mode is on, each Donchian midline (Tenkan, Kijun, Span B) uses a volatility-scaled period:
adaptedPeriod = basePeriod × (1 + strength × (1 − 2 × volRatio))
Where volRatio = (currentATR − lowestATR) / (highestATR − lowestATR) over the volatility lookback (default 50 bars), normalized to 0–1.
When volRatio → 1 (high volatility): adaptedPeriod = basePeriod × (1 − strength) — periods shorten
When volRatio → 0 (low volatility): adaptedPeriod = basePeriod × (1 + strength) — periods lengthen
The Adapt Strength parameter (default 0.4 = ±40%) controls the range of scaling. With basePeriod=26 and strength=0.4: periods range from 16 (high vol) to 36 (low vol). Each adapted period is clamped to a valid range and fed into the standard Donchian midline formula: (highest(high, period) + lowest(low, period)) / 2.
This means all five Ichimoku lines (Tenkan, Kijun, Senkou A, Senkou B, Chikou) adapt proportionally — the system remains internally consistent. In Classic mode, the standard fixed periods are used unchanged.
2️⃣ 8-factor confluence scoring engine (0–100).
Every bar computes both a bullish and bearish score from 8 factors:
— 📐 Price vs Cloud (20 pts) : above cloud = 20, inside = 8, below = 0 (bull). Symmetric for bear. The cloud is the strongest S/R in Ichimoku.
— ⚡ TK alignment (15 pts) : Tenkan > Kijun = 15 (bull). The core Ichimoku momentum signal.
— 👁️ Chikou confirmation (15 pts) : Chikou Span above price at displaced position = 15 (bull). The lagging confirmation.
— ☁️ Cloud direction (10 pts) : Span A slope > Span B slope = 10 (bull). Future cloud turning bullish indicates trend momentum.
— 📏 Kumo thickness (8 pts) : thick cloud = 8, thin cloud = 2. Thick cloud provides stronger S/R backing.
— 📈 Volume (10 pts) : volume > SMA(20) × 1.2 = 10. Confirms institutional participation.
— 💪 Momentum alignment (12 pts) : Momentum Pulse > 20 = 12, > 0 = 6. Strong momentum behind the signal.
— 🚀 Momentum acceleration (10 pts) : Momentum Pulse rising = 10. Trend is accelerating, not fading.
Max score = 100. Signals require score ≥ Min Confluence Score (default 50). Grades: Strong (≥ 80), Standard (≥ 50), Weak (< 50).
3️⃣ Momentum Pulse engine (−100 to +100).
A composite momentum measure built from three Ichimoku-derived components:
— TK spread normalized by ATR (weight 40): tkSpreadNorm = (Tenkan − Kijun) / ATR. Measures how far apart the momentum and trend lines are relative to volatility.
— TK spread acceleration (weight 100): tkSpreadNorm − tkSpreadNorm . Measures how fast the spread is changing — captures momentum buildup.
— Cloud slope differential (weight 30): (ΔSpanA − ΔSpanB) / ATR over 5 bars. Measures whether the future cloud is rotating bullish or bearish.
Combined: momentumPulse = tkSpread×40 + tkAcceleration×100 + cloudSlope×30, clamped to , smoothed with EMA(5). States: Accelerating (rising + positive), Bull Fading (falling + positive), Bear Accelerating (falling + negative), Bear Fading (rising + negative).
4️⃣ Three Ichimoku-anchored SL modes.
Stop-loss placement uses Ichimoku structure:
— Kumo Edge (default): SL at the nearest cloud boundary (kumoBot for longs, kumoTop for shorts) + ATR buffer. The cloud is Ichimoku's primary S/R — placing the stop here means your stop is at the strongest structural level in the framework.
— Kijun : SL at the Kijun-Sen ± ATR buffer. The Kijun is Ichimoku's equilibrium line — price tends to return to it.
— ATR : SL at entry ± 2× ATR. Pure volatility-based fallback.
TP1/TP2/TP3 are R:R multiples of the risk distance (default 1.5/2.5/4.0). A minimum risk distance of 0.5× ATR is enforced.
5️⃣ Kumo breakout engine with retest detection.
Detects when price closes above the cloud (was below or inside on the previous bar) with volume confirmation:
— kumoBreakUp: close > kumoTop AND previous close ≤ kumoTop AND volume > SMA(20) × breakoutMultiplier
— kumoBreakDown: close < kumoBot AND previous close ≥ kumoBot AND same volume condition
After a breakout, a retest signal fires if within 10 bars, price touches the cloud edge and closes back on the breakout side — confirming the cloud has flipped from resistance to support (or vice versa). Retest signals appear as small circles distinct from the larger diamond breakout markers.
6️⃣ Kijun-Sen S/R zone detection.
When the Kijun-Sen has been flat for 4+ consecutive bars and then starts moving, the flat level is marked as a support/resistance zone (shaded box ± 0.15× ATR). Flat Kijun is a well-known Ichimoku S/R concept — price tends to be attracted to flat Kijun levels. The indicator automates this detection and visualization.
7️⃣ Multi-timeframe Ichimoku alignment panel.
Three configurable timeframes (default 15M/1H/4H) each compute a full Ichimoku state using the classic periods:
— Bull ● : close > cloud AND Tenkan > Kijun
— Bear ● : close < cloud AND Tenkan < Kijun
— Neutral ○ : anything else
The panel shows per-TF alignment plus a summary: ALL BULL ✓ (all 3 TFs bullish), ALL BEAR ✓ (all 3 bearish), or Mixed. All MTF data uses + lookahead_on for non-repainting.
⚙️ HOW IT WORKS — CALCULATION FLOW
Step 1 — Volatility measurement: ATR(14) is normalized to 0–1 by its position within the recent high-low range over the volatility lookback.
Step 2 — Period adaptation: Each base period (9/26/52) is scaled by the adapt strength and vol ratio. High vol → shorter periods, low vol → longer. Classic mode bypasses this.
Step 3 — Ichimoku calculation: Tenkan = Donchian midline (adapted period). Kijun = Donchian midline (adapted period). Senkou A = avg(Tenkan, Kijun). Senkou B = Donchian midline (adapted period). Chikou = source price. Cloud displaced forward by displacement bars.
Step 4 — Kumo at current bar: Span A and Span B are read at displacement offset to get the current cloud boundaries. Thickness, price position (above/below/inside), and thin-cloud status are computed.
Step 5 — Momentum Pulse: TK spread, spread acceleration (vs 3 bars ago), and cloud slope differential — combined and EMA-smoothed.
Step 6 — Confluence scoring: 8 factors evaluated. Bull and bear scores computed independently.
Step 7 — Signals: TK cross + score threshold + enabled filters (Kumo thickness, volume, Chikou) → confirmed buy/sell. Kumo breakout: cloud boundary cross + volume surge → breakout signal. Retest: cloud edge touch within 10 bars of breakout.
Step 8 — TP/SL: SL from Kumo edge / Kijun / ATR mode. TPs as R:R multiples. TP/SL hits tracked per trade.
📖 HOW TO USE
🎯 Quick start:
1. Add the indicator — the Ichimoku cloud and lines appear (adaptive by default)
2. "Long 78%" / "Short 65%" labels = TK cross signals with confluence score
3. ☁▲ / ☁▼ diamonds = Kumo breakout signals
4. Entry, SL, TP1–TP3 lines appear on each signal
5. Check the MTF panel for multi-timeframe alignment
👁️ Reading the chart:
— 🔵 Blue line = Tenkan-Sen (conversion, fast)
— 🔴 Pink line = Kijun-Sen (base, slow)
— 🟠 Orange line (displaced back) = Chikou Span
— 🟩🟥 Cloud fill = Kumo (green bullish, red bearish)
— 🟢 "Long XX%" label = confirmed bullish TK cross with score
— 🔴 "Short XX%" label = confirmed bearish TK cross with score
— 💎 Cyan diamond = Kumo breakout (☁▲ up / ☁▼ down)
— ⚫ Small circle = Kumo edge retest
— 🟪 Shaded zone = flat Kijun S/R area
— 🔵 Blue line = entry, 🔴 red = SL, 🟢 green = TP1/TP2/TP3
📊 Dashboard fields:
— Mode: Adaptive / Classic
— Trend: Bullish / Bearish / Neutral (price vs cloud + TK alignment)
— Signal: last signal with bars elapsed
— Score: confluence percentage with color grade
— Momentum: Pulse state + value (Accelerating / Bull Fading / Bear Accel / etc.)
— Cloud: price position (Above / Below / Inside / Thin)
— Trade: TP/SL progress (→ TP1, TP1 ✓ → TP2, TP3 ✓ Closed, SL ✗ Closed)
— MTF: 3-timeframe Ichimoku alignment + summary (ALL BULL / ALL BEAR / Mixed)
— Version
🔧 Tuning guide:
— Too many weak signals: increase Min Score (60–80), enable all filters
— Missing signals: decrease Min Score (30–40), disable Chikou filter
— Adaptive too aggressive: decrease Adapt Strength (0.2–0.3) or increase Volatility Lookback (100+)
— Want classic Ichimoku: switch to Classic mode — pure 9/26/52 with scoring and TP/SL
— Stops too tight: increase SL ATR Buffer (0.7–1.0) or switch to ATR SL mode
— Scalping: Conversion 5, Base 13, Span B 26, Displacement 13, Min Score 40
— Swing: Conversion 12, Base 34, Span B 68, Displacement 34, Min Score 65
⚙️ KEY SETTINGS REFERENCE
⚙️ Main:
— Calculation Mode (default Adaptive): Adaptive / Classic
— Conversion/Base/Span B/Displacement (default 9/26/52/26)
🔄 Adaptive Engine:
— Volatility Lookback (default 50): ATR normalization window
— Adapt Strength (default 0.4): period scaling range (±40%)
🔍 Filters:
— Min Confluence Score (default 50): 0–100 threshold
— Kumo Thickness Filter (default On): suppress in thin cloud
— Volume Filter (default On): auto-disabled on forex
— Chikou Confirmation (default On): require lagging span alignment
🎯 Smart TP/SL:
— SL Mode (default Kumo Edge): Kumo Edge / Kijun / ATR
— SL ATR Buffer (default 0.5): padding beyond SL level
— TP1/TP2/TP3 R:R (default 1.5/2.5/4.0)
💥 Kumo Breakout:
— Breakout Vol Mult (default 1.3): volume surge requirement
— Show Retest Signals (default On): cloud edge retest detection
🔄 Multi-Timeframe:
— TF 1/2/3 (default 15/60/240): configurable timeframes
🔔 Alerts
— 🟢 BUY / 🔴 SELL — TK cross with score, SL, TP1–TP3
— ☁️▲ KUMO BREAK UP / ☁️▼ KUMO BREAK DOWN
— 🎯 TP1 HIT / 🛑 SL HIT
All support plain text and JSON webhook format. Bar-close confirmed.
⚠️ IMPORTANT NOTES
— 🚫 No repainting. All TK cross signals and Kumo breakouts require barstate.isconfirmed. MTF data uses + lookahead_on. A warmup period (Span B + displacement, minimum 80 bars) prevents signals during insufficient data.
— ☁️ This preserves the complete Ichimoku structure. All five lines, the cloud, displacement, and Chikou are computed exactly as Ichimoku specifies — the only change is that in Adaptive mode, the three Donchian periods scale with volatility. Switching to Classic mode produces a standard Ichimoku with no modifications.
— 📐 The adaptive engine scales all three periods proportionally using the same vol ratio and strength. The relationship between Tenkan (fast) and Kijun (slow) is preserved — they don't drift independently.
— ⚖️ The confluence score is Ichimoku-native . Six of eight factors (price vs cloud, TK alignment, Chikou, cloud direction, Kumo thickness, momentum) are derived directly from Ichimoku components. Only volume and momentum acceleration are external additions.
— 📊 The Momentum Pulse is not a standalone oscillator — it's derived from TK spread dynamics and cloud rotation, both Ichimoku-native measurements. It quantifies what experienced Ichimoku traders assess visually: "Is this TK cross strong and accelerating, or weak and fading?"
— 🔄 Kumo breakout retest detection uses a 10-bar window after the initial breakout. Retests beyond 10 bars are not tracked.
— 🛠️ This is a signal and analysis tool , not an automated trading bot. It enhances Ichimoku with adaptive periods, scoring, and risk management — trade decisions remain yours.
— 🌐 Works on all markets and timeframes. Volume filter auto-disables on instruments without volume data. Indicator

Trade Levels - Entry, Trims & StopA clean, fully configurable trade planning overlay for scalpers, day traders, and swing traders on any instrument — Futures, Forex, Crypto, Equities, and Indices. Set your entry price, define your risk parameters, and instantly visualize every critical level on the chart before and during a trade.
🔑 Key Features
Entry Line — White reference line at your exact entry price, labeled with direction (Long/Short)
Stop Loss — Plots your maximum loss level at a defined distance from entry
Take Profit — Plots your full target with a live R:R ratio calculated automatically
3 Independent Trim Levels — Each trim can be placed on the Profit Side OR Loss Side of your entry, allowing you to plan early exits in either direction (e.g., trimming before max loss)
Zone Fills — Translucent color fills between Entry → Stop and Entry → Target for instant visual clarity
Info Table — A real-time summary table (top-right corner) showing all prices and distances at a glance
Full Alert Integration — alertcondition() support for all 5 levels: Stop, Take Profit, Trim 1, Trim 2, and Trim 3
⚙️ Settings Overview
Group What You Set
📍 Entry Settings Entry price, Long/Short direction, Points or Ticks mode
🔴 Stop Loss Points/Tick Distance from entry, line color
🟢 Take Profit Points/Tick Distance from entry, line color
✂️ Trim 1 / 2 / 3 Enable toggle, Profit or Loss side, Points/Tick distance, trim size %, color
🔔 Alerts Toggle alerts on/off per level
⚙️ Display Labels, R:R visibility, zone fills, table, line style, label size
📐 Points vs. Ticks
Switch the Unit Mode under Entry Settings between:
Points — Native price units (e.g., 10 = 10 full points on NQ)
Ticks — Minimum tick increments (e.g., on NQ: 1 point = 4 ticks, so 40 ticks = 10 points)
The indicator uses syminfo.mintick to auto-convert, so it works accurately on any symbol.
✂️ Loss-Side Trims Explained
Most indicators only allow trims in the profit direction. This tool lets you place a trim on the Loss Side of your entry — meaning you scale out of part of your position before reaching your full stop. This is a common risk management technique used by professional futures and forex traders to reduce average loss on losing trades.
To use it: enable a Trim, set Side → Loss Side, and dial in the distance. The label will display as "LOSS TRIM" to visually distinguish it from profit-side trims.
🔔 Setting Up Alerts
Click the Alerts bell icon on the PulseWire toolbar
Click "+" → Create Alert
Under Condition, select "Trade Levels — Entry, Trims & Stop"
Choose a level: Stop Loss Hit, Take Profit Hit, Trim 1, Trim 2, or Trim 3
Set your notification method (popup, sound, mobile push, or webhook)
Click Create
📌 Tips for Scalpers
Set your entry price before you take the trade so the levels are pre-drawn when your order fills
Use Loss-Side Trim 1 to take off 25–33% of your position if price moves against you early — this lowers your average loss significantly over time
The live R:R ratio on the TP label updates instantly as you adjust your distances — use it to ensure you never take a sub-1:1 trade
Works on all timeframes and all instruments — ES, NQ, MNQ, EUR/USD, BTC, SPY, anything Indicator

Profit Loss Display UniversalUniversal Profit Loss Display
is a chart overlay for quickly visualizing projected reward, risk, and reference levels from the current price.
The script lets you select:
- one main profit target
- one main stop loss level
- four additional reference sources
The sources can be any element of another indicator displayed on the current chart (using the PulseWire's source parameter.
**How it works**
The indicator compares each selected level to the current price and estimates the move using your configured position base. This makes it useful for planning trades around fixed targets, stops, VWAPs, pivots, bands, or any custom level source.
For each active level, it displays the move from current price as price points, dollar value, or both. The profit target and stop loss also get dedicated value labels, and the script calculates a live reward-to-risk ratio in `R` format.
**Key features**
- Configurable `input.source` levels for profit target, stop loss, and 4 extra references
- Display mode selector: `Price Points`, `$ Value`, or `Both`
- Automatic leverage detection by asset class, with manual override
- Dollar projection based on chunk size and leverage
- Clean on-chart labels that only appear when a source is different from `close`
- Reward-to-risk ratio displayed directly on the chart
- Bottom-right info table showing active chunk size and leverage
**Best use cases**
- Pre-trade reward/risk planning
- Visual target and stop mapping
- Comparing multiple nearby levels from current price
- Quick dollar impact estimation without manual calculation
**Notes**
This is a planning helper, not a strategy or execution tool. Dollar projections do not include fees, spread, slippage, funding, or partial exits.
---------------------------------------------------------------------------------------------------------------------
**How To Use**
1. Add the indicator to your chart.
2. Set your main `Profit Target` and `Stop Loss Limit`.
These are the two primary levels used for the projected profit/loss labels and the `R` ratio.
3. Optionally assign `Extra Source 1-4`.
Use these for additional levels you want to monitor, such as VWAPs, pivots, moving averages, bands, or custom plotted values.
4. Choose your `Display Mode`.
- `Both` shows price distance and dollar value
- `Price Points` shows only the raw move from current price
- `$ Value` shows only the projected dollar impact
5. Set your `Chunk Size`.
This is the base position size used in the calculation.
6. Set `Leverage X`.
- Leave it at `0` to use automatic leverage by asset class
Automatic Leverage Rules
If Leverage X is set to 0, the script uses these defaults:
crypto: 5
forex: 30
futures: 10
cfd: 10
stock: 5
index: 20
fund: 5
anything else: 10
A small table in the bottom-right corner shows the active chunk size and leverage.
- Enter a manual value if you want to override auto leverage
7. Turn `Show Labels?` on or off as needed.
**What You Will See**
- A source label for the profit target
- A source label for the stop loss
- Source labels for up to 4 extra levels
- A dedicated profit value label
- A dedicated stop-loss value label
- An `R:x.x` reward-to-risk ratio label
- A bottom-right table showing current chunk size and leverage
**Important Behavior**
- Labels only appear when the selected source is different from `close`
- `close` acts as the default “off” state for any source input
- Labels are updated on the latest bar only
- The ratio is based on distance from current price to target and stop
**Practical Example**
If you are planning a trade:
- set `Profit Target` to your take-profit level
- set `Stop Loss Limit` to your invalidation level
- set `Chunk Size` to your standard trade allocation
- choose a leverage value or leave auto mode enabled
- use the extra sources for nearby confluence or reaction zones
This gives you an immediate view of:
- potential upside
- potential downside
- reward-to-risk ratio
- relative distance to other important levels
**Notes**
This script is a visual planning tool. It does not place trades and does not account for fees, slippage, spread, funding, or scaling in and out.
Indicator

Indicator

Advanced UT-Trail System Pros [identityKa]Overview
The Advanced UT-Trail System Pro is a comprehensive trend-following and trade management indicator. Built upon the foundation of Average True Range (ATR) trailing stops, this script introduces dynamic timeframe adaptation and Heikin-Ashi noise filtering to provide smoother, more reliable structural signals. It is designed to keep traders in prevailing trends longer while mathematically defining risk and automated profit targets.
Core Calculations & Engine
The indicator relies on a robust trailing stop logic driven by volatility:
1-) ATR Volatility Baseline: It calculates the ATR over a user-defined period (default 10). This value is multiplied by a "Base Key Value" to determine the strict distance the trailing stop will maintain from the price action.
2-) Heikin-Ashi Filtering: Traditional price action can cause premature stop-outs due to market noise. By default, this script pulls Heikin-Ashi close data (ticker.heikinashi) as the source (src) for the trailing calculation. This dramatically smooths the underlying data feed, preventing false wick-outs.
3-) Auto-Adaptive Sensitivity: To combat the lag inherent in macro trailing stops on lower timeframes, the script features an adaptive multiplier engine. If the trader switches to an intraday timeframe (≤ 60 minutes) or a scalp timeframe (≤ 15 minutes), the script mathematically reduces the Base Key Value multiplier (e.g., $a \times 0.6$), tightening the trailing stop dynamically to suit the faster price action.
Dynamic Trade Management
Upon the confirmation of a directional flip (the source crossing the trailing stop line), the script plots actionable data:
Trailing Stop Line: A step-line visualizes the exact, non-repainting invalidation level.
Auto Take-Profit Projection: Utilizing the exact ATR value at the moment of the signal, the script automatically projects and draws Target 1 (TP1) and Target 2 (TP2) dashed lines into the future. These targets are based on predefined ATR multipliers (default 1.5x and 3.0x), enforcing a mechanical risk-to-reward ratio.
HUD Dashboard & AI State Tracker
The integrated on-chart panel aggregates the current system data:
Engine Mode: Displays whether the script is operating in SCALP, DAY, or SWING sensitivity mode based on the current chart.
AI Suggestion: Evaluates the proximity of the current price to the trailing stop.
LONG / SHORT: Triggered when the price is safely trending in the direction of the trailing stop.
Dangerous: Triggered strictly when the current closing price enters a 0.2 ATR threshold of the trailing stop line. This mathematical condition acts as a warning that the trend is actively being tested and a reversal may be imminent.
How to Use It
Traders should utilize the printed BUY/SELL labels as macro directional bias. The trailing step-line serves as an objective, mechanical Stop-Loss level. When entering a position, traders can use the automatically projected TP1 and TP2 lines to scale out of their positions incrementally. If the AI Suggestion shifts to "Dangerous", it is a mechanical cue to protect capital, tighten stops manually, or avoid adding to existing positions. Indicator

Apicode Institutional Liquidity Sweep v2Apicode — Institutional Liquidity Sweep v2 is a price-action based indicator designed to detect potential institutional-style stop hunts and highlight possible entries after liquidity has been taken from retail traders.
The core idea is simple:
- retail traders often place stop losses around obvious swing highs and swing lows
- larger market participants know this
- price frequently sweeps those liquidity pools before moving in the intended direction
This indicator attempts to identify those moments by combining:
- higher timeframe trend
- premium / discount context
- liquidity sweep detection
- reclaim confirmation
- microstructure confirmation
- and automatic **Entry / SL / TP** projection
It is designed to be practical, visually clean, and limited to the last 5 active trade ideas on the chart.
How it works
1. Higher timeframe trend filter
The indicator first checks the broader market context using **higher timeframe EMA structure**.
It compares:
a fast EMA
a slow EMA
On the selected higher timeframe(s), the logic is:
bullish bias when fast EMA is above slow EMA and the slow EMA is rising
bearish bias when fast EMA is below slow EMA and the slow EMA is falling
This helps avoid taking signals against the dominant trend.
Why this matters
Liquidity sweeps are much more useful when they happen **in the direction of the main trend**.
For example:
- in an uptrend, a sweep below a swing low may become a high-probability long setup
- in a downtrend, a sweep above a swing high may become a high-probability short setup
2. Premium / Discount filter
The indicator builds a simple **higher timeframe dealing range** and calculates its midpoint.
Then it classifies the current price as:
- Discount → below the midpoint
- Premium → above the midpoint
This is used as an additional contextual filter:
Long setups are preferred in discount
Short setups are preferred in premium
Why this matters
Institutional-style entries tend to make more sense when:
- buying lower within the broader range
- selling higher within the broader range
This helps avoid chasing price after it has already moved too far.
3. Swing liquidity detection
The script identifies recent swing highs and swing lows using pivot logic.
These levels are treated as likely liquidity pools , because they often attract:
- breakout traders
- stop losses
- late entries
- forced liquidations
The indicator then looks for price sweeping beyond those levels.
4. Liquidity sweep logic
Long setup
A potential long setup appears when:
- the higher timeframe trend is bullish
- price is in discount
- price moves below the latest swing low
- the sweep size remains within a realistic range
- the candle shows meaningful lower wick behavior
Short setup
A potential short setup appears when:
- the higher timeframe trend is bearish
- price is in premium
- price moves above the latest swing high
- the sweep size remains within a realistic range
- the candle shows meaningful upper wick behavior
The indicator also uses a configurable approximation of the **retail stop-loss zone**, based on the idea that many small traders cluster their stops near obvious structure.
5. Reclaim confirmation
A sweep alone is not enough.
The script also requires price to reclaim the swept level with a small configurable buffer.
That means:
- after sweeping below a swing low, price must recover back above it for long bias
- after sweeping above a swing high, price must move back below it for short bias
Why this matters
A lot of sweeps fail.
The reclaim step is essential because it suggests the sweep may have been a **liquidity grab**, not a true breakout.
6. Microstructure confirmation
After the reclaim, the indicator waits for a quick confirmation candle.
That confirmation requires:
- a minimum candle body size
- directional candle confirmation
- a small break of recent local structure
This is meant to avoid entering too early while still keeping the signal relatively close to the swept level.
7. Entry, Stop Loss, and Take Profit
Once a setup is confirmed, the indicator plots:
- Entry
- SL
- TP
Entry
The entry is based on the confirmation candle close.
Stop Loss
The stop loss is placed beyond the sweep extreme, with an additional **ATR-based buffer**.
This is intentional:
- retail traders usually place stops too close
- institutional-style logic needs more breathing room
- the SL should sit beyond the area that was already used to collect liquidity
Take Profit
The take profit is calculated using:
1. the nearest reasonable opposing liquidity zone , if available
2. otherwise, a fallback risk-reward based target
This gives the script a more realistic institutional-style objective rather than using a fixed target only.
8. Active signal cleanup
The indicator keeps the chart clean by:
- displaying only the last 5 visible signals
- automatically removing a signal once price touches:
- SL
- or TP
This prevents the chart from becoming cluttered and ensures that only relevant setups remain visible.
What kind of trader is this for?
This indicator is best suited for traders who already understand:
- market structure
- liquidity concepts
- trend context
- stop hunts
- reversal entries near key levels
It is especially useful for traders who want to avoid:
- entering too late
- buying into local highs
- shorting into local lows
- trading directly into obvious retail traps
Best settings to start with
These are good starting values for **XRPUSDT on 15m** (and others), which is the market this logic was heavily tuned around:
Trend
- HTF main: 60
- HTF secondary: 240
- Fast EMA: 20
- Slow EMA: 50
Premium / Discount
Dealing Range HTF: 20
Swings / Liquidity
- Swing Length: 5
- Minimum Sweep %: 0.12
- Maximum Sweep %: 1.00 to 1.20
- Retail Stop Zone %: 1.00
Confirmation
- Confirm Bars: 2 to 3
- Minimum Confirmation Body: 0.30
- Microstructure Break Lookback: 2
- Max Distance From Swept Level: 0.50 to 0.60 ATR
Risk
- ATR Length: 14
- SL ATR Buffer: 0.15
- Minimum RR to Signal: 1.10
- Fallback RR: 2.00
Volume
- Start with Volume Filter OFF
- Enable it later only if you want fewer but stricter signals
Configuration advice
If you get too many signals
Try:
- increasing Minimum Sweep %
- increasing Minimum Confirmation Body
- increasing Minimum RR to Signal
- enabling the volume filter
- using both HTF 1 and HTF 2
If you get too few signals
Try:
- reducing Minimum Sweep %
- reducing Minimum Confirmation Body
- lowering Minimum RR to Signal
- disabling the second HTF confirmation
- reducing the reclaim buffer slightly
If signals feel too late
Try:
- reducing **Confirm Bars**
- reducing **Microstructure Break Lookback**
- lowering **Minimum Confirmation Body** slightly
If signals still go against the move too often
Try:
- making the trend filter stricter
- requiring both higher timeframes
- tightening premium / discount usage
- reducing the maximum allowed sweep size
Practical interpretation
This indicator is not trying to predict every reversal.
Instead, it focuses on a specific scenario:
1. price moves into an obvious liquidity pool
2. stops are triggered
3. price reclaims the level
4. structure starts to shift back with the dominant trend
5. a trade idea is projected with defined risk and objective
That is the edge this script is built around.
Important notes
- This is **not** an order book tool.
- It does **not** see real liquidity, delta, footprint data, or exchange-level positioning.
- It is a **price-action approximation** of institutional behavior.
- Like any trading tool, it should not be used in isolation.
It works best when combined with:
- higher timeframe market structure
- strong support/resistance zones
- session context
- discretionary chart reading
Suggested usage
A practical workflow could be:
1. determine the higher timeframe directional bias
2. wait for price to reach a meaningful area
3. let the indicator detect the sweep and reclaim
4. evaluate the Entry / SL / TP visually
5. ignore setups that run directly into major nearby obstacles
6. focus only on the cleanest signals aligned with broader context
Final note
This indicator was built with a practical mindset:
* think like a larger participant
* understand where retail traders are trapped
* avoid emotional entries
* wait for liquidity to be taken first
* then act with defined risk
Indicator

Opening Range Break (5-15-30 Min) - Wall Street RedneckOpening Range Break (5-10-15-30 Min) – Wall Street Redneck
A simple and powerful Opening Range Breakout (ORB) indicator built for intraday traders.
This tool automatically plots the Opening Range High, Low, and optional Midline based on your selected 5, 10, 15, or 30 minute range. Once the range is set, levels extend forward to help identify breakout opportunities and key reaction zones throughout the session.
Features:
Custom ORB length (5/10/15/30 minutes)
Adjustable session start & end time
ORB High, Low & Midline (custom colors + dashed option)
Optional historical session display
Built-in customizable Take Profit levels
Targets based on % of Opening Range
Adaptive or Extended display
Automatic TP labeling
Designed for breakout, momentum, and day traders who want a clean, no-clutter ORB with flexible target projection. Indicator

SmartTrend Pro [WillyAlgoTrader]📡 SmartTrend Pro is an overlay indicator built around a custom trend detection algorithm — the Adaptive Volatility Trend Engine (AVTE) — that replaces the standard Supertrend approach with Ehlers Super Smoother filtering and Kaufman adaptive ATR bands. Every trend flip is scored by a multi-factor confluence system (0–100) before becoming a signal. The result is a trend-following tool that adapts to current volatility conditions, filters out low-confidence entries, and provides dynamic TP/SL levels — all with full anti-repaint protection.
🧩 WHY THESE COMPONENTS WORK TOGETHER
A traditional Supertrend uses a simple moving average of True Range to calculate bands. This works in steady markets but produces false signals during volatility spikes and misses early reversals during compression. SmartTrend Pro replaces every component of this pipeline with an adaptive alternative, creating a system where each stage feeds the next:
Ehlers-filtered price → Kaufman-adaptive ATR → Volatility bands → Trend direction → Confluence scoring → Filtered signal → Risk levels
The Ehlers Super Smoother removes high-frequency noise from the price before the trend bands are calculated — this prevents the trend engine from reacting to random wicks. The Kaufman adaptive ATR widens bands when volatility is real (sustained directional movement) and tightens them during choppy, low-efficiency conditions — making the trend change threshold automatically adjust. The confluence scoring system then evaluates each trend flip against five independent market factors before allowing the signal to fire. And the TP/SL system freezes its risk distance at entry (using the ATR at signal time) so targets don't drift as volatility changes post-entry.
No single component here is sufficient on its own. An Ehlers filter without adaptive bands still produces false crossovers. Adaptive bands without scoring still trigger on weak trend flips. Scoring without frozen TP/SL creates drifting targets. The integrated pipeline solves all three problems simultaneously.
🔍 WHAT MAKES IT ORIGINAL
1️⃣ Adaptive Volatility Trend Engine (AVTE) — custom trend algorithm.
The AVTE replaces the standard Supertrend calculation at every stage:
Stage 1 — Price filtering: Instead of using raw price, the AVTE applies an Ehlers 2-pole Super Smoother to the source. The Ehlers filter uses the transfer function:
ss = c1 × (src + src ) × 0.5 + c2 × ss + c3 × ss
where c1 = 1 − c2 − c3, c2 = 2a × cos(√2 × π / period), c3 = −a², and a = exp(−√2 × π / period). This produces zero-lag frequency-domain filtering — it removes high-frequency noise without the phase distortion that a simple moving average introduces. The filter period is derived from the ATR period (ATR_period / 2, minimum 3).
Stage 2 — Adaptive volatility measurement: Instead of a fixed-length ATR, the AVTE uses a Kaufman Adaptive ATR. First, a standard ATR(period) is calculated. Then the Kaufman Efficiency Ratio (ER) is computed: ER = |close − close | / sum(|close − close |, period). The ER measures how much net directional movement exists relative to total path traveled — ranging from 0 (pure chop) to 1 (clean trend). The ER then modulates a smoothing constant: sc = (ER × (fast − slow) + slow)², where fast = 2/3 and slow = 2/31. The adaptive ATR blends: aATR = aATR + sc × (rawATR − aATR ). In trending conditions (high ER), the adaptive ATR reacts quickly to volatility changes. In choppy conditions (low ER), it smooths aggressively, preventing false band expansions.
Stage 3 — Band calculation and trend direction: Upper band = filtered_price + sensitivity × adaptive_ATR. Lower band = filtered_price − sensitivity × adaptive_ATR. Bands ratchet in the trend direction: the lower band can only rise (never fall) during uptrends, the upper band can only fall during downtrends. When close crosses above the upper band, trend flips bullish. When close crosses below the lower band, trend flips bearish. The trend line follows the lower band in uptrends, upper band in downtrends (step-line visualization).
The Sensitivity parameter (default 2.5) controls how far the bands sit from filtered price. Lower = tighter bands, more signals, faster reaction. Higher = wider bands, fewer signals, smoother.
2️⃣ Multi-confluence scoring system (0–100).
Every AVTE trend flip is evaluated against five independent market factors before becoming a signal:
Factor 1 — EMA alignment (±15 pts): Checks whether close > EMA(50) > EMA(200) for bullish alignment, or close < EMA(50) < EMA(200) for bearish. Full alignment = +15 (bull) or −15 (bear). No alignment = 0. This confirms the trend flip aligns with the broader trend structure.
Factor 2 — RSI position (±10 pts): RSI(14) between 50–70 = +10 (bullish momentum without overextension). RSI 30–50 = −10 (bearish). Extremes (>70 or <30) score 0 — avoiding signals at overbought/oversold levels where reversals are more likely.
Factor 3 — MACD histogram direction (±12 pts): MACD(12,26,9) histogram > 0 and rising = +12 (accelerating bullish momentum). Histogram < 0 and falling = −12 (accelerating bearish). This captures momentum acceleration, not just direction.
Factor 4 — Volume confirmation (0–8 pts): Volume > 20-period SMA × 1.2 = +8. This confirms institutional participation. Auto-disabled on instruments without volume data (forex).
Factor 5 — ADX strength (0–10 pts): ADX(14) > 25 = +10, ADX > 20 = +5. Confirms the market is trending, not ranging.
The base score starts at 50. Bullish factors add, bearish factors subtract. Final score is clamped to 0–100. A buy signal fires when the AVTE flips bullish AND score ≥ Min Signal Score (default 55). A sell signal fires when AVTE flips bearish AND score ≤ (100 − Min Signal Score), creating symmetric thresholds around 50. Signals with score ≥ 75 (buy) or ≤ 25 (sell) are classified as "Strong" and receive a distinct label.
3️⃣ Ehlers Super Smoother trend cloud.
A dual-band cloud system using two Ehlers Super Smoothers at different periods. The fast period depends on the Cloud Style setting:
— Adaptive: auto-adjusts between 13 and 55 based on current volatility — calculated as 34 × (1 + stdev(close, 20) / adaptive_ATR × 0.5)
— Fast: fixed at 21 (tight cloud for scalping)
— Smooth: fixed at 55 (wide cloud for swing)
— Minimal: fixed at 34 (single line, no fill)
The slow period = fast period × 2.618 (golden ratio). Cloud is bullish when fast > slow (green fill), bearish when fast < slow (red fill). The AVTE step-line is overlaid on the cloud for immediate trend-direction clarity. An optional trend tracer (EMA, default 233-period) provides institutional-level long-term bias.
4️⃣ Four-preset system with parameter scaling.
Presets modify three core parameters simultaneously using multipliers:
— Conservative : sensitivity × 1.4, ATR period × 1.3, min score floor 70 — fewer but higher-quality signals, for swing trading
— Balanced : no modification — default parameters, good for 15M–4H
— Aggressive : sensitivity × 0.7, ATR period × 0.8, min score ceiling 45 — more signals, faster entries
— Scalping : sensitivity × 0.5, ATR period × 0.6, min score ceiling 40 — optimized for 1–5M, tightest bands
Each preset adjusts the effective sensitivity, ATR length, and minimum score threshold proportionally, so one selection adapts the entire signal pipeline rather than requiring manual tuning of individual parameters.
5️⃣ Dynamic TP/SL with frozen risk distance.
Three stop-loss modes:
— ATR : SL distance = adaptive ATR × configurable multiplier (default 1.5×)
— Percentage : SL distance = fixed percentage of entry price
— Structure : SL distance = half the recent swing range (highest high − lowest low over swing lookback)
TP levels are calculated as multiples of SL distance: TP1 = SL × 1.5 (default), TP2 = SL × 2.5, TP3 = SL × 4.0. The SL distance is frozen at entry — once a signal fires, the risk distance is locked and does not change with subsequent volatility. This prevents TP/SL levels from drifting as ATR changes post-entry. TP hit markers (×) appear on the chart as each level is reached. An optional Chandelier Exit trailing stop follows price using the ATR multiplier, ratcheting in the profit direction.
6️⃣ Pullback signals within established trends.
In addition to trend-flip signals, the indicator detects pullback entries within an existing trend:
— Bullish pullback: AVTE trend is bullish (no flip), price retraces to EMA(pullback_sensitivity × 3), RSI(pullback_sensitivity) drops below 35 then starts rising — catching the bounce off trend support
— Bearish pullback: AVTE trend is bearish, price rallies to EMA, RSI exceeds 65 then starts falling
Pullback signals appear as small circles (distinct from the main Buy/Sell labels), providing additional entries within a confirmed trend direction. They are bar-close confirmed and warmup-protected.
7️⃣ Volatility gauge with statistical normalization.
The dashboard displays a real-time volatility reading (0–100%) calculated as: gauge = (ATR(10) − (SMA(ATR, 20) − StDev(ATR, 20))) / (2 × StDev(ATR, 20)) × 100, clamped to 0–100. This measures where current volatility sits relative to its recent statistical distribution: > 70% = High (above 1 standard deviation), 40–70% = Medium, < 40% = Low. This helps you assess whether the current environment suits your strategy: high volatility favors wider stops and fewer signals, low volatility favors tighter approaches.
8️⃣ Multi-timeframe trend panel (non-repainting).
The dashboard includes an MTF panel showing trend direction on 5M, 15M, 1H, 4H, and 1D — using close > EMA(200) with lookahead_on for guaranteed non-repainting. When most timeframes align in one direction, trend-flip signals in that direction have higher confluence.
9️⃣ Session detection.
The dashboard shows the current active trading session: Tokyo, London, New York, Sydney, or overlaps (London/New York, Tokyo/London). Sessions are calculated using UTC-based time windows. This helps you contextualize volatility: London/New York overlap is typically the highest-volume period, while off-hours have thinner liquidity.
🔟 Four optional filters.
Each filter can be independently toggled:
— Trend filter : only signals aligned with the Ehlers cloud direction
— Volume filter : only signals with volume EMA(10) > EMA(25) — auto-disabled for instruments without volume
— ADX filter : only signals when ADX > 20 (trending market)
— Momentum filter : only signals with MACD histogram aligned (positive + rising for buys, negative + falling for sells)
All filters default to Off — enabling them progressively reduces signal frequency while increasing average quality.
⚙️ HOW IT WORKS — CALCULATION FLOW
Step 1 — Ehlers filtering: Source price is passed through the 2-pole Super Smoother with period = max(round(ATR_period / 2), 3). This removes intrabar noise while preserving trend structure.
Step 2 — Adaptive ATR: Kaufman Efficiency Ratio is calculated over the ATR period. The ER modulates the smoothing speed of ATR: trending conditions → fast adaptation, choppy conditions → slow adaptation.
Step 3 — Band construction: Upper = filtered_price + sensitivity × adaptive_ATR. Lower = filtered_price − sensitivity × adaptive_ATR. Bands ratchet: lower band can only rise in uptrends, upper band can only fall in downtrends.
Step 4 — Trend detection: Close above upper band → bullish. Close below lower band → bearish. The trend line is the active band (lower in uptrends, upper in downtrends).
Step 5 — Confluence scoring: On every bar, five factors are evaluated and combined into a 0–100 score. On a trend flip bar, the score determines whether the signal qualifies.
Step 6 — Filter gate: If any enabled filter disagrees, the signal is suppressed.
Step 7 — Signal emission: Buy or Sell label appears on the confirmed bar. Score ≥ 75 / ≤ 25 → "Strong Buy/Sell".
Step 8 — TP/SL placement: Risk distance is calculated and frozen. TP1/TP2/TP3 are placed as R:R multiples. Labels persist on the right side of the chart. Hit markers appear as each level is reached.
📖 HOW TO USE
🎯 Quick start:
1. Select a preset matching your style: Scalping (1–5M), Balanced (15M–4H), Conservative (4H–1D)
2. Add the indicator to your chart — the AVTE trend line and cloud appear immediately
3. Wait for a Buy or Sell label — the score next to it tells you the confluence quality
4. Check the dashboard: trend direction, score, market state (trending/ranging), volatility, session
5. TP/SL levels appear automatically — manage the trade using the marked levels
👁️ Reading the chart:
— 🟩 Green cloud fill = bullish trend (Ehlers fast > slow)
— 🟥 Red cloud fill = bearish trend
— Step-line on the cloud = AVTE trend boundary (the level that must break for a trend flip)
— 🟢 "Buy" / "Strong Buy" label below bar = confirmed bullish signal
— 🔴 "Sell" / "Strong Sell" label above bar = confirmed bearish signal
— 🟢 Small circle below bar = pullback buy (trend continuation entry)
— 🔴 Small circle above bar = pullback sell
— Orange line = entry price | Red line = stop loss | Green lines = TP1/TP2/TP3
— × markers = TP hit confirmations
— HH/HL/LH/LL labels (optional) = market structure swing points
📊 Dashboard fields:
— Trend: current AVTE direction (Bullish/Bearish)
— Signal: last confirmed signal (Buy/Sell/Wait)
— Score: current confluence score (0–100)
— Market: ADX-based state (Trending > 25 / Ranging > 20 / No Trend)
— Volatility: statistical gauge (High/Medium/Low with percentage)
— Session: current active session (Tokyo/London/New York/Sydney/overlaps)
— MTF Panel: 5M/15M/1H/4H/1D trend direction (close vs 200 EMA)
🔧 Tuning guide:
— Too many signals: increase Min Score, enable filters, switch to Conservative preset
— Too few signals: decrease Min Score, switch to Aggressive/Scalping, lower Sensitivity
— Signals too late: lower Sensitivity (tighter bands), use Fast cloud style
— Too many false signals: enable ADX filter (filters ranging markets), increase Min Score to 65+
— Scalping 1–5M: use Scalping preset, ATR mode SL with multiplier 1.0–1.5, TP1 R:R 1.0–1.5
— Swing 4H–1D: use Conservative preset, ATR mode SL with multiplier 2.0–3.0, TP3 R:R 5.0+
⚙️ KEY SETTINGS REFERENCE
⚙️ Main:
— Trend Sensitivity (default 2.5): AVTE band distance — lower = more signals, higher = fewer
— ATR Period (default 21): volatility measurement lookback
— Preset (default Balanced): Conservative / Balanced / Aggressive / Scalping
📡 Signal Tuning:
— Min Signal Score (default 55): minimum confluence to trigger signals
— Strong Signals Only (default Off): only show score ≥ 75
— Show Pullback Signals (default On): trend continuation entries
— Pullback Sensitivity (default 8): retracement detection lookback
☁️ Trend Cloud:
— Cloud Style (default Adaptive): Adaptive / Fast / Smooth / Minimal
— Trend Tracer (default Off): long-term EMA bias line (default 233)
🔍 Filters (all default Off):
— Trend Filter (cloud alignment) / Volume Filter / ADX Filter / Momentum Filter
🛡️ Risk Management:
— SL Mode (default ATR): ATR / Percentage / Structure
— SL ATR Multiplier (default 1.5×) / SL Percentage (default 1.0%)
— TP1/TP2/TP3 Risk:Reward (default 1.5 / 2.5 / 4.0)
— Trailing Stop (default Off): Chandelier Exit method
— Market Structure (default Off): HH/HL/LH/LL swing labels
🎨 Visual:
— Auto / Dark / Light theme
— Bar coloring: Trend Gradient / Signal Based / Momentum / None
— Background trend shading (default Off)
📊 Dashboard:
— Position, font size, MTF panel toggle
🔔 Alerts
— 🟢 Buy / Strong Buy — ticker, price, timeframe, score
— 🔴 Sell / Strong Sell — same fields
— 🎯 TP1 / TP2 / TP3 Hit — ticker, price
— 🛑 SL Hit — ticker, price
— ☁️ Cloud Cross Bullish / Bearish — ticker, timeframe
All alerts support plain text and JSON webhook format. Bar-close confirmed.
⚠️ IMPORTANT NOTES
— 🚫 No repainting. All signals require barstate.isconfirmed. TP/SL distances are frozen at entry and do not change retroactively. MTF data uses + lookahead_on for non-repainting HTF values. A warmup period (minimum 200 bars or 3× ATR period) prevents signals during insufficient data.
— 📐 The AVTE is not a standard Supertrend . It replaces every component: Ehlers Super Smoother instead of raw price, Kaufman adaptive ATR instead of fixed ATR, ratcheting bands instead of simple ±ATR. The mathematics are described in detail above.
— ⚖️ The confluence score is not a win-rate predictor . A score of 75 means five independent market factors align strongly — it measures confluence quality, not outcome probability. Use it to prioritize, not to guarantee.
— 📊 The scoring system uses standard indicators (EMA, RSI, MACD, Volume, ADX) as confluence factors , not as independent signal generators. None of these indicators alone triggers a signal — they only contribute to the score that gates an AVTE trend flip.
— 🔧 Presets modify parameters proportionally. After selecting a preset, you can still adjust individual settings — the preset sets the starting point, your adjustments override it.
— 📏 TP/SL levels are frozen at entry . The SL distance calculated at the signal bar persists until the next signal — it does not drift with changing ATR. This is by design for consistent risk management.
— 🔄 Pullback signals are continuation entries , not reversal signals. They only appear within an established AVTE trend and require RSI reversion from oversold/overbought — catching bounces off trend support/resistance.
— 🛠️ This is a signal and analysis tool , not an automated trading bot. It generates signals, scores them, and visualizes TP/SL — trade decisions remain yours.
— 🌐 Works on all markets and timeframes. Volume filter auto-disables on instruments without volume data. Indicator

Automatic Fibonacci Levels [WillyAlgoTrader]Automatic Fibonacci Levels is an overlay indicator that detects the dominant swing high and swing low within the visible chart area, draws a full Fibonacci retracement and extension grid between them, highlights the Optimal Trade Entry (OTE) zone at 61.8%–78.6%, marks a target zone at the −50% to −61.8% extension, and labels four take-profit levels — all updating automatically as you scroll or zoom the chart.
Most Fibonacci tools on PulseWire are either manual (you draw them yourself and they become stale as price evolves) or pivot-based (anchored to a fixed lookback period that may not match the swing you're actually looking at). This indicator takes a different approach: it uses the visible chart range as its context. It finds the highest high and lowest low within what you can currently see, determines trend direction based on which came first, and draws the full Fibonacci grid accordingly. When you scroll or zoom to a different area, the grid adapts — making it a dynamic analysis companion rather than a static drawing tool.
🔍 WHAT MAKES IT ORIGINAL
1. Visible-range swing detection. Instead of using a fixed pivot lookback or requiring manual anchor placement, the indicator scans the chart's visible window (chart.left_visible_bar_time to chart.right_visible_bar_time) to find the absolute high and low. This means the Fibonacci grid always reflects the swing structure you are currently analyzing. Zoom into a 50-bar range to see intraday retracements; zoom out to 500 bars to see the macro structure — the grid adjusts automatically. When the visible range changes (scroll or zoom), swing detection resets and recalculates.
2. Automatic trend direction from swing sequence. The indicator determines bullish or bearish bias by comparing when the swing low and swing high occurred. If the swing low formed first and the swing high formed later, the trend is classified as bullish (retracement levels are drawn down from the high, extensions project upward). If the swing high came first, the trend is bearish (retracement down from the low, extensions project downward). No manual input is needed — the grid orientation follows the price structure.
3. OTE Entry Zone + Target Zone as highlighted boxes. Two key zones are highlighted with semi-transparent boxes:
— Entry Zone (61.8%–78.6%) : the Optimal Trade Entry area from ICT/SMC methodology — the deep retracement zone where institutional re-entry is most likely
— Target Zone (−50% to −61.8%) : the extension zone where breakout moves frequently reach
Both zones have configurable colors and optional text labels ("ENTRY ZONE" / "TARGET ZONE") inside them. Zone-touch alerts fire when price enters either box for the first time.
4. Four labeled take-profit levels. TP labels are placed at key Fibonacci levels to provide a structured scale-out framework:
— TP1 at 38.2% (first retracement target — conservative exit)
— TP2 at 0% (full swing retest — swing high in uptrend, swing low in downtrend)
— TP3 at −27.2% (first Fibonacci extension)
— TP4 at −61.8% (deep extension — runner target)
Each TP level is only displayed if the corresponding Fibonacci line is enabled, keeping the chart clean.
5. 16 individually toggleable levels. The indicator supports a comprehensive set of levels: 0%, 23.6%, 38.2%, 50%, 61.8%, 70.6%, 78.6%, 100% (standard retracements), plus 18%, 150%, 200% (deep retracements), and −18%, −27.2%, −50%, −61.8%, −100% (extensions). Each level can be toggled on or off independently, so you can configure exactly the grid density you prefer — from a minimal 4-level setup to a full 16-level deep analysis.
⚙️ HOW IT WORKS
Swing detection:
On every bar, the script checks whether the current bar falls within the chart's visible time window (using chart.left_visible_bar_time and chart.right_visible_bar_time). Within this window, it tracks the highest high and lowest low, along with their bar indices. When the visible window changes (scroll/zoom), all swing data resets and recalculates from scratch. This ensures the grid always reflects your current view.
Trend direction:
If swingLowBarIdx < swingHighBarIdx (low came first), the trend is classified as bullish — Fibonacci levels count downward from the swing high (0% = high, 100% = low), and extensions project above the high. If the high came first, the trend is bearish — levels count upward from the swing low, extensions project below.
Level calculation:
Each Fibonacci level is calculated as: price = anchor ± (swingRange × ratio), where the anchor and direction depend on the trend bias. For a bullish trend: 0% = swingHigh, 61.8% = swingHigh − range × 0.618, −50% = swingHigh + range × 0.5. For bearish: mirrored.
Zone detection:
The Entry Zone (61.8%–78.6%) and Target Zone (−50% to −61.8%) are computed as price ranges. On each confirmed bar, the script checks if the close falls within either zone. A zone-touch alert fires on the first confirmed bar inside the zone (no repeated alerts while price stays in the zone). The inEntryZone / inTargetZone state resets when price leaves, allowing re-entry detection.
Drawing:
All visual elements (lines, labels, boxes) are drawn on barstate.islast and cleaned up on each redraw to prevent accumulation. Lines extend from 2 bars before the current bar to the label offset position. Zones use extend.right so they remain visible as new bars form.
📖 HOW TO USE
Reading the chart:
— Orange horizontal lines = Fibonacci levels (retracement + extensions)
— Optional % labels next to each line = level identification
— Gold semi-transparent box = Entry Zone (61.8%–78.6% OTE)
— Gold semi-transparent box with "TARGET ZONE" = extension target (−50% to −61.8%)
— TP1–TP4 labels = structured take-profit levels
— Optional diagonal line = swing connection (low-to-high or high-to-low)
Suggested workflow:
— Zoom to the swing you want to analyze — the grid adapts automatically
— In a bullish trend: look for buy entries when price retraces into the Entry Zone (61.8%–78.6%), with stop loss below 100% (swing low), targeting TP1 (38.2%) → TP2 (0% / swing high) → TP3 (−27.2%) → TP4 (−61.8%)
— In a bearish trend: look for sell entries when price retraces up into the Entry Zone, stop above swing high, targeting downward extensions
— Use the dashboard to confirm trend direction and monitor whether price is currently in the Entry or Target zone
— Set alerts for zone touches to get notified when price reaches OTE or target levels without watching the chart
Customization tips:
— For a clean chart: enable only 0%, 61.8%, 78.6%, 100%, −27.2%, −61.8% — this gives you the OTE boundaries, swing anchors, and two extension targets
— For deep analysis: enable all 16 levels to see the full Fibonacci structure
— Adjust Label Offset to move level labels further right if your chart is crowded
— Toggle Show Diagonal Swing Line to visually confirm which high/low pair is being used
⚙️ KEY SETTINGS REFERENCE
— Show All Elements (default On): master toggle for all Fibonacci visuals
— Line Width (default 1): thickness of Fibonacci lines (1 = subtle, 5 = bold)
— Line Style (default Dashed): solid, dashed, or dotted
— Label Offset (default 17 bars): how far right of the last bar to place labels
— Individual Levels : 16 toggleable levels from 200% to −100%
— Show Entry Zone (default On): highlight the 61.8%–78.6% OTE box
— Show Target Zone (default On): highlight the −50% to −61.8% extension box
— Show Text in Zones (default On): display "ENTRY ZONE" / "TARGET ZONE" labels
— Show TP Labels (default On): display TP1–TP4 at key levels
— Show Level % Labels (default Off): display percentage text next to each line
📊 Dashboard
The info panel displays:
— Trend direction (Bullish / Bearish) based on swing sequence
— Signal status (Entry Zone / Target Zone / —) when price enters a key zone
— Swing range in price units
— Current timeframe and indicator version
🔔 Alerts
Two alert conditions (each fires once per zone entry on bar close):
— Entry Zone touch : price closes inside the 61.8%–78.6% retracement zone
— Target Zone touch : price closes inside the −50% to −61.8% extension zone
Both support standard text and JSON webhook format.
⚠️ IMPORTANT NOTES
— This indicator anchors to the visible chart range — it recalculates when you scroll or zoom. This is a feature, not a bug: it lets you analyze any swing by simply framing it on your screen. However, it means the grid will change if you move the chart.
— Fibonacci levels are not predictive — they are reference points based on the measured swing range. Price may or may not react at any given level.
— The Entry Zone (61.8%–78.6%) is derived from the OTE concept used in ICT/SMC methodology. It represents a high-probability retracement area, but no retracement zone guarantees a reversal.
— Zone alerts require bar-close confirmation and fire once per entry — they do not repeat while price remains in the zone.
— Works across all asset classes and timeframes. No volume data required. Indicator
