ICT Killzones & Key Levels -DST- By SpartanICT Killzones & Key Levels -DST- By Spartan
This tool brings together the reference levels that ICT-style session traders build their bias around, so you are not stacking four or five separate indicators on one chart to get them. Killzone session ranges, their pivot highs and lows, Fibonacci retracements of each session's range, and the higher-timeframe opens, highs, lows, and time markers that traders use to judge context all come from the same underlying session and time data. Keeping them in one script means they stay in sync with each other and with the timeframe/timezone settings you choose, instead of drifting apart the way separately-configured indicators can.
This indicator's strongest feature is the automatic daylight saving time adjustment for each session as it uses real time zones of each session and adjusts automatically rather than having to change them each time the clock is changed anywhere
WHAT IT DOES
Killzone sessions
Draws boxes around the Asia, London, and New York killzone sessions. Each session's time range is entered in that session's own local time (UTC for Asia, Europe/London for London, America/New York for New York) and automatically adjusts for daylight saving, so you never have to manually shift the input twice a year.
Pivots
Marks each session's high and low as extending lines, with optional labels showing price. Pivots can extend until price mitigates them or continue past mitigation, and can alert you when a session high or low is broken.
Fibonacci levels (new in this version)
Each session can independently plot 0, 0.25, 0.5, 0.75, and 1 retracement levels of its own range. These update live while the session is still forming and lock in place once the session closes, so you can watch how a session's midpoint and quartiles evolve in real time rather than only seeing them after the fact. Colors automatically match each session's own color so the chart stays readable.
Midpoints
Optional midpoint line for each session's pivot range, with the choice to stop tracking once price mitigates it or keep tracking through the session.
Killzone range table
An optional table showing each session's most recent range and its rolling average over a configurable number of past sessions, so you can gauge whether the current session is expanding or contracting relative to its recent history.
Day / Week / Month tools
Optional open lines, high/low lines, and separators for the daily, weekly, and monthly timeframes, each with independent alerting on high/low breaks.
Custom opening prices and timestamps
Up to eight custom time-of-day open markers (for marking things like true day open or other reference times you track) and four vertical timestamp lines, both independently configurable.
Day-of-week labels
Optional labels marking the start of each weekday on intraday charts, with the option to hide weekend labels.
HOW TO USE IT
Turn on the sessions you trade, set the killzone range and pivot options to match how you use highs/lows and mitigation, and enable Fibonacci levels on whichever sessions you want retracement context for. The killzone range table is useful for a quick read on whether the current session is unusually wide or narrow. The Day/Week/Month and custom time tools are there if you also reference higher-timeframe opens or specific times of day, but are fully optional and off by default so the chart stays clean if you only want killzones.
CREDIT AND ORIGINALITY
The killzone box, pivot, and DST-safe session-detection logic in this script is built on tradeforopp's open-source "ICT Killzones & Pivots" indicator. This version adds session-independent live-updating Fibonacci retracement levels (not present in the original), a reorganized and more clearly labeled settings panel, and several fixes to line/label handling in the underlying session logic. Published open-source in keeping with the license of the code it builds on.
This is a level-marking and context tool, not a signal generator or a strategy. It does not predict future price movement or guarantee any outcome; it plots historical and forming session data so you can build your own read of the market around it. Penunjuk

Buy Sell Badge with DMI by ByblloBuy Sell Badge with DMI by Bybllo
At its core, this indicator combines two independent Buy/Sell signal sources into one badge system: (1) a basic Fast/Slow EMA crossover ("BSB"), and (2) a DMI-based signal built from the golden cross (DI+ crossing above DI-) and dead cross (DI- crossing above DI+) of the Directional Movement Index, filtered by a minimum ADX threshold.
The EMA crossover generates the base Buy/Sell signal, then automatically manages an ATR-based stop loss and a risk:reward-based take profit for each signal, showing the resulting entry/stop/target levels directly on the chart along with a live status table. The DMI golden-cross / dead-cross engine can be enabled as a confirmation filter on top of that: when turned on, a badge is only shown if a matching DMI cross (with ADX above a configurable threshold) occurs within a set number of bars of the EMA signal. In practice, this acts as a noise-reduction filter — choppy, low-conviction EMA crossovers with no matching directional strength behind them are suppressed, so only badges backed by both a trend-following signal and a directional-strength signal are actually displayed.
Key Features
Fast/Slow EMA crossover generates the base Buy/Sell signal, with an optional candle-confirmation requirement (close beyond open in the signal direction).
Automatic ATR-based stop loss and configurable Risk:Reward take profit are calculated for every new signal, with intermediate take-profit levels plotted when Risk:Reward is greater than 1.
Optional "BSB + DMI" confirmation filter: a badge is only shown when a DMI golden cross or dead cross, confirmed by ADX above your threshold, occurs within a configurable bar window of the EMA signal, in either order. This suppresses noisy, low-conviction EMA crossovers and leaves only the badges that are backed by both signals.
On-chart entry / stop-loss / take-profit lines and an SL distance (in points) label, both toggleable and only shown while a badge has actually been displayed for the active position.
Take-profit, stop-loss, and "invalidated" (opposite signal fired before target/stop was hit) markers are plotted separately so you can see exactly how each trade idea played out.
A live status table (top-right) shows the current position, entry, stop loss, take profit, and realized Risk:Reward.
Real-price calculation via request.security() keeps signals consistent regardless of chart type (Heikin Ashi, Renko, etc.).
A full set of alertcondition() calls for BSB-only signals, BSB+DMI confirmed signals, take-profit hits, stop-loss hits, and invalidated entries.
How to Use
Leave "BSB + DMI" unchecked to use the EMA crossover badges on their own (fastest signals, no directional-strength filter).
Check "BSB + DMI" to require that a DMI golden cross (for Buy) or dead cross (for Sell), confirmed by ADX, also occurs near the EMA signal — this filters out noise and typically reduces the number of badges, but favors signals that also have directional strength behind them.
Watch the on-chart entry/SL/TP lines and the status table to track an open idea's risk and progress in real time.
Set up alerts on the "BSB+DMI Buy/Sell", "Buy/Sell Signal", "Take Profit Hit", "Stop Loss Hit", or "Entry Invalidated" conditions depending on which events you want to be notified about.
Notes
The "EMA Badge Spacing" and "DMI Badge Spacing" inputs each apply their own cooldown to prevent duplicate signals firing on consecutive bars; keep the DMI spacing aligned with the badge spacing you use on other DMI-based indicators if you compare them side by side.
Stop-loss and alert-sensitivity offsets are point-based and will need adjusting per instrument (see the tooltips on those inputs).
This indicator does not place real orders; it is a visual / alerting tool for tracking a rules-based EMA + DMI golden-cross/dead-cross trade idea. Penunjuk

DMI DI Gap by ByblloDMI DI Gap by Bybllo
This indicator plots the gap (difference) between the DI+ and DI- lines of the Directional Movement Index (DMI). Instead of visually comparing two separate DI+ / DI- lines to spot a crossover, the difference (DI+ minus DI-) is calculated directly and plotted as a single line around a zero baseline.
A cross above the zero line signals a shift toward bullish momentum, while a cross below the zero line signals a shift toward bearish momentum — each crossing is automatically marked with a buy or sell arrow, so there is no need to eyeball where the two DI lines intersect.
Key Features
A single "DI Gap" line (DI+ minus DI-) replaces the need to watch two overlapping DI+ / DI- lines and spot their crossovers by eye.
Zero-line crossover / crossunder is detected automatically and marked with buy (upward) and sell (downward) triangle arrows, offset a configurable distance from the zero line.
An optional ADX line, rescaled from its native 0–100 range to a custom min/max range, can be overlaid to gauge trend strength alongside the directional gap.
A filled cloud area between the gap line and the zero line is colored according to whether the current gap is positive or negative.
+25 / -25 dotted reference lines help gauge how strong the current directional imbalance is.
Real-price calculation via request.security() ensures values stay consistent regardless of chart type (Heikin Ashi, Renko, etc.).
How to Use
When the DI Gap line crosses above zero, a buy arrow appears below the zero line, indicating directional momentum has turned bullish (DI+ has overtaken DI-).
When the DI Gap line crosses below zero, a sell arrow appears above the zero line, indicating directional momentum has turned bearish (DI- has overtaken DI+).
Use the optional rescaled ADX line to check whether the broader trend has enough strength to support the signal before acting on it.
The +25 / -25 dotted lines can be used as a rough guide for how pronounced the current directional imbalance is.
Notes
The rescaled ADX line is for visual reference only; it does not represent the standard 0–100 ADX scale unless the scale inputs are set to 0 and 100.
Works consistently across chart types since real market price data is always pulled via request.security(), regardless of the chart type currently displayed. Penunjuk

Rolling Trend Pointer. Identify the True Market TrendRolling Trend Pointer is designed to provide an objective assessment of market direction, confirm trending conditions, and filter trading signals that occur in weak or conflicting market environments. Instead of relying on a conventional moving average, the indicator analyzes price position relative to VWAP, trading volume, the statistical magnitude of price deviations, the slope of Anchored VWAP, and directional agreement across multiple calculation periods.
Its main advantage is that it does not simply show whether price is above or below an average line. It evaluates the current trend direction, the strength of the active price impulse, and the degree of agreement between short-term price behavior and the broader volume-weighted market direction.
Two Indicators Combined into One
Rolling Trend Pointer combines two interconnected indicator components:
1. "Rolling VWAP Trend Pointer", displayed in a separate indicator panel below the chart.
2. "Monthly Anchored VWAP with Multi-Period Confirmation", displayed directly on the main price chart.
The first component measures the current deviation of price from a rolling VWAP and determines whether the movement is statistically significant.
The second component determines the broader market direction based on the slope of the Monthly Anchored VWAP. It can also confirm that direction using Quarterly, Semiannual, and Annual Anchored VWAP calculations.
The "Synchronized Mode" checkbox connects both components into a single trend-confirmation system. When synchronization is enabled, the background fill on the main chart appears only when the Anchored VWAP direction agrees with the direction of the Rolling VWAP histogram.
Part 1: Rolling VWAP Trend Pointer
The first component is displayed in a separate indicator panel and consists of:
* a green and red histogram;
* an upper positive boundary;
* a lower negative boundary;
* a zero line;
* a colored background indicating a strong breakout beyond the corresponding boundary.
The calculation is based on a Rolling VWAP, which is a volume-weighted average price calculated over the selected number of bars.
After calculating the VWAP, the indicator measures the distance between price and the VWAP:
* positive values are generated when price is positioned above the VWAP;
* negative values are generated when price is positioned below the VWAP.
The green histogram represents positive price deviation from the Rolling VWAP. The red histogram represents negative deviation.
The larger the absolute histogram value, the further price has moved away from its current volume-weighted center.
Separate Positive and Negative Boundary Calculations
The upper and lower blue boundary lines are calculated independently.
The upper boundary uses only historical values above zero. It is designed to evaluate positive deviations and bullish price impulses.
The lower boundary uses only historical values below zero. The indicator analyzes the absolute magnitude of these negative deviations and then returns the calculated boundary to the negative area.
As a result, the lower boundary is not simply a mirrored version of the upper boundary. Each side adapts independently to the historical characteristics of bullish and bearish price movements.
This distinction is important because upward and downward volatility are often structurally different. Declines may occur quickly and aggressively, while bullish movements may develop more gradually and persist for longer periods.
Using separate calculations allows the indicator to adapt to this asymmetry instead of assuming that positive and negative price behavior is identical.
Detecting Strong Price Impulses
When the histogram remains between the two blue boundaries, the price deviation is considered normal for the current market environment.
When the positive histogram rises above the upper boundary, the indicator identifies a strong bullish impulse. The background of the separate indicator panel becomes green.
When the negative histogram falls below the lower boundary, the indicator identifies a strong bearish impulse. The background becomes red.
A boundary breakout should not automatically be treated as an independent entry signal. It indicates that the current movement has become significantly stronger than the price deviations recently observed in the instrument.
Part 2: Monthly Anchored VWAP
The second component is displayed directly on the main price chart.
It includes:
* the Monthly Anchored VWAP;
* upper and lower statistical bands;
* a VWAP line color based on its slope;
* a colored fill between the VWAP bands;
* optional confirmation from Quarterly, Semiannual, and Annual Anchored VWAP calculations.
The Monthly VWAP calculation resets at the beginning of every calendar month.
Unlike the Rolling VWAP, which uses a continuously moving lookback window, the Monthly Anchored VWAP accumulates price and volume data from the beginning of the current month.
When the Monthly VWAP slope is positive, the central line becomes green.
When the Monthly VWAP slope is negative, the central line becomes red.
The upper and lower bands are calculated using the volume-weighted standard deviation of price around the Monthly VWAP. These bands create a dynamic range that reflects the current price structure and volatility within the month.
Multi-Period Trend Confirmation
By default, the trend direction is determined by the Monthly Anchored VWAP.
The following additional confirmation periods can be enabled in the settings:
* "Use Quarterly VWAP Confirmation"
* "Use Semiannual VWAP Confirmation"
* "Use Annual VWAP Confirmation"
The additional confirmation periods use AND logic.
For example, when Quarterly and Annual confirmation are enabled, a bullish trend will be confirmed only when the Monthly, Quarterly, and Annual VWAP slopes are all positive at the same time.
A bearish trend will be confirmed only when all enabled VWAP periods have negative slopes.
The more confirmation periods that are enabled, the stricter the trend filter becomes.
This reduces the number of confirmed trend conditions but increases the degree of agreement across different market horizons.
Synchronized Mode
The "Synchronized Mode" setting is one of the main features of the indicator.
When synchronization is disabled, the fill between the VWAP bands on the main chart is determined only by the Monthly Anchored VWAP direction and the selected additional confirmation periods.
When synchronization is enabled, two conditions must be satisfied simultaneously:
* the Anchored VWAP direction must be confirmed;
* the Rolling VWAP histogram must be positioned on the corresponding side of the zero line.
A green fill requires:
* bullish Anchored VWAP confirmation;
* a positive Rolling VWAP histogram.
A red fill requires:
* bearish Anchored VWAP confirmation;
* a negative Rolling VWAP histogram.
When the two indicator components point in opposite directions, the background fill disappears.
This indicates that there is no complete agreement between the current price impulse and the broader Anchored VWAP trend.
How to Interpret the Background Color on the Main Chart
The background fill between the Monthly Anchored VWAP bands is one of the most important visual elements of the indicator.
Particular attention should be paid to both the color and intensity of this background.
A light green fill indicates a confirmed bullish trend.
A stronger green fill indicates a confirmed bullish trend combined with a strong positive histogram breakout above the upper statistical boundary.
A light red fill indicates a confirmed bearish trend.
A stronger red fill indicates a confirmed bearish trend combined with a strong negative histogram breakout below the lower statistical boundary.
No background fill means that the indicator has not detected a synchronized directional condition.
This may occur during:
* sideways market conditions;
* transitional periods;
* weakening trends;
* disagreement between the Rolling VWAP component and the Anchored VWAP component;
* disagreement between the enabled Anchored VWAP confirmation periods.
The background color therefore represents the confirmed trend direction, while its intensity indicates whether the trend is also accompanied by an unusually strong statistical price impulse.
Rolling Trend Pointer Settings
VWAP Length
This setting determines the amount of positive and negative historical observations used to calculate the Rolling VWAP environment and the adaptive channel boundaries.
A lower value makes the indicator more responsive to recent market changes but may produce more frequent directional changes.
A higher value creates more stable statistical boundaries but causes the indicator to adapt more slowly when volatility conditions change.
The default value is "200".
Band Multiplier
This setting controls the distance between the zero line and the independent positive and negative boundaries.
A lower value moves the boundaries closer to zero and increases the number of detected breakouts.
A higher value moves the boundaries further away from zero and filters out weaker movements, leaving only stronger price impulses.
The default value is "0.5".
Channel Mode
Two channel calculation modes are available.
Current VWAP Variance
This mode uses the current volume-weighted variance of the positive and negative samples.
It adapts more quickly to the current distribution and volatility structure of the market.
Channel Width
This mode uses the historical variance of deviations from the corresponding positive and negative mean values.
It evaluates the established width of the distribution based on accumulated historical residuals.
For most trend-detection applications, testing should begin with "Current VWAP Variance".
Histogram Smoothing
The following histogram smoothing methods are available:
* None;
* SMA;
* EMA;
* WMA;
* RMA.
Smoothing reduces small histogram fluctuations and limits unnecessary directional changes around the zero line.
It is important to understand that smoothing is applied to the displayed histogram and to the histogram breakout conditions.
The statistical upper and lower boundaries continue to be calculated from the original positive and negative observations.
Histogram Smoothing Length
This setting controls the length of the selected histogram smoothing method.
A lower value preserves responsiveness.
A higher value produces a more stable histogram but increases calculation lag.
The default value is "10".
Synchronized Mode
This checkbox synchronizes the Rolling VWAP Trend Pointer with the Monthly Anchored VWAP component.
When enabled, the background fill on the main price chart appears only when both components agree on the market direction.
For normal visual analysis, this setting should generally remain enabled.
Show Breakout Background
This setting enables or disables the green and red background in the separate indicator panel when the histogram moves beyond its corresponding statistical boundary.
Monthly Anchored VWAP Settings
VWAP Source
This setting determines the price source used for the Anchored VWAP calculation.
The default source is "HLC3", which represents the average of the high, low, and close prices.
Band Multiplier
This setting determines the width of the upper and lower bands around the Monthly Anchored VWAP.
A lower value produces a narrower range.
A higher value produces a wider range and includes more substantial price deviations.
VWAP Slope Length
This setting determines the number of bars used to evaluate the direction of the VWAP slope.
A lower value reacts more quickly to changes in direction but may create more frequent trend switches.
A higher value produces a more stable trend direction but introduces additional delay.
The default value is "2".
Line Width
This setting changes the thickness of the Monthly Anchored VWAP line and its upper and lower bands.
Show VWAP Bands
This setting enables or disables the display of the upper and lower Monthly Anchored VWAP bands.
Use Quarterly VWAP Confirmation
When enabled, the Monthly VWAP direction must agree with the Quarterly Anchored VWAP direction.
Use Semiannual VWAP Confirmation
When enabled, the Monthly VWAP direction must agree with the Semiannual Anchored VWAP direction.
Use Annual VWAP Confirmation
When enabled, the Monthly VWAP direction must agree with the Annual Anchored VWAP direction.
Trend Direction Output for Strategy Integration
The indicator outputs the detected trend direction through a separate numerical variable called `trend_dir`.
This variable can be selected as an external data source and connected to other TradingView indicators or strategies.
The output ranges from "−2 to +2".
Possible values are:
* "+2" — confirmed strong bullish trend with a bullish histogram breakout;
* "+1" — confirmed bullish trend without a strong histogram breakout;
* "0" — neutral, conflicting, or unsynchronized market condition;
* "−1" — confirmed bearish trend without a strong histogram breakout;
* "−2" — confirmed strong bearish trend with a bearish histogram breakout.
This structure allows the indicator to be used not only for visual market analysis but also as a systematic trend filter inside automated trading strategies.
For example, a strategy can:
* allow long positions only when `trend_dir` equals +1 or +2;
* allow short positions only when `trend_dir` equals −1 or −2;
* disable entries during neutral conditions;
* test the neutral value separately;
* apply different trend requirements to long and short trades;
* distinguish between regular trends and statistically strong trend impulses.
My Strategy Test Results
In my case, the strategy produced the highest long-trade win rate when the value "+1" was used as the trend filter for long entries.
For short trades, the best result was obtained when the value "0" was used.
This means that long entries performed best during a confirmed bullish trend that was not accompanied by an extreme positive histogram breakout.
Short entries performed best during neutral or unsynchronized market conditions rather than during an already confirmed bearish impulse.
The value "0" is not inherently bearish.
It indicates that the indicator has not detected complete directional agreement between its components.
These results apply to the specific strategy, instrument, timeframe, settings, and historical period that were tested.
Each of the five `trend_dir` states should be tested independently before being applied to another strategy or market.
Practical Applications
Rolling Trend Pointer can be used for:
* identifying the main market direction;
* filtering entries against the prevailing trend;
* confirming breakout conditions;
* avoiding trades during conflicting market states;
* separating regular trends from strong trend impulses;
* providing an external trend variable to automated strategies;
* optimizing different filters for long and short positions;
* identifying periods of agreement between short-term momentum and broader volume-weighted direction.
For visual trading, it is recommended to keep "Synchronized Mode" enabled and focus primarily on the fill between the Monthly Anchored VWAP bands on the main chart.
A green or red fill indicates a synchronized directional condition.
A stronger fill indicates that the synchronized trend is also supported by a statistically significant histogram breakout.
The absence of a fill indicates that the current impulse and the broader Anchored VWAP direction are not fully synchronized.
Use Rolling Trend Pointer to identify market direction, filter weak signals, and connect an objective trend state to your trading strategies.
Penunjuk

Penunjuk

RSI Divergence Hunter [JOAT]RSI Divergence Hunter
Automatically detects the four classic RSI divergence types on confirmed pivots and frames each one as a trade.
What it is
Divergence between price and momentum is one of the oldest reversal and continuation reads, but marking it by hand is subjective and easy to force. This indicator detects all four divergence types algorithmically on confirmed pivots, so what you see is defined and repeatable, and then attaches a full trade structure to each. It is an original divergence engine, not a plain RSI plot.
How it works
• RSI core — the relative strength index measures the speed and size of recent moves. It is the momentum reference every divergence is measured against.
• Confirmed pivots — the engine waits for pivots on both price and RSI to confirm a set number of bars back before comparing them. Because pivots are only evaluated once confirmed, a plotted divergence does not repaint into or out of existence.
• The four types — regular bullish (price lower low, RSI higher low) and regular bearish (price higher high, RSI lower high) point to potential reversals; hidden bullish and hidden bearish point to trend continuation after a pullback. Each is drawn with a connecting line on both price and RSI and labelled by type.
• Zones and gating — overbought and oversold zones give context, and a minimum-gap control keeps divergence signals from stacking on lower timeframes.
Trade levels
Each qualifying divergence draws a red risk box to the stop and a green reward box to the third target, with inner dividers and right-edge labels for entry, stop and each take-profit at your R multiples. The stop is anchored beyond the pivot that formed the divergence.
The dashboard
An adjustable divergence-scope panel shows the current RSI value and zone, the most recent divergence type detected, the active signal, a conviction estimate, and a live first-target-before-stop tally from closed bars only.
How to use it
• Works on any asset and timeframe.
• Treat regular divergences as counter-trend reversal cues and hidden divergences as with-trend continuation cues — the distinction matters.
• Combine with structure or a trend filter; divergence works well as confluence, not in isolation.
Settings
RSI length and source, pivot strength, which divergence types to display, overbought/oversold levels, risk multiple and target R multiples, plus visual and dashboard controls.
Originality and usefulness
The contribution is a complete, confirmed-pivot detector for all four divergence classes with clear per-type labelling and integrated, non-repainting trade framing. By fixing the definition of a divergence and waiting for pivot confirmation, it removes much of the hindsight bias that makes manual divergence unreliable.
Notes and limitations
• Divergence signals can persist and reappear in strong trends; a divergence is a condition, not a timing guarantee.
• Confirmed pivots introduce a natural delay equal to the pivot strength — this is the cost of not repainting.
• The tally reflects only past bars on the current chart and is not a forecast.
• Educational and analytical tool, not financial advice.
— made with passion by officialjackofalltrades
Penunjuk

Penunjuk

Penunjuk

Penunjuk

ANDROMEDA MTF - TrendSyncThis script is a Multi-Timeframe (MTF) trend-following system designed to capture pullbacks in direction of the primary trend.
Rather than relying on a single indicator, ANDROMEDA MTF utilizes a specific mashup of Moving Averages, MACD, and RSI to establish a robust rule-based logic. The primary goal of combining these tools is to filter out lower-timeframe market noise and only authorize entries when momentum and structural trend are perfectly aligned on a higher timeframe.
⚙️ CORE MECHANICS (The Mashup Logic):
To avoid false signals during choppy markets, the script requires three distinct conditions to agree on the Higher Timeframe (MTF) before defining a trend:
Baseline Trend Structure: Uses two customizable Moving Averages (EMA or SMA). The fast MA must be above/below the slow MA to indicate directional bias.
Momentum Confirmation (Slope): The algorithm calculates the mathematical slope of the slow MA (MA - MA ). The trend is only validated if the slow MA is actively sloping in the trade direction, preventing entries in flat/consolidating markets.
Volume/Momentum Filter: The MACD Histogram must confirm the bias (Histogram > 0 for longs, < 0 for shorts).
🎯 ENTRY TRIGGERS & VISUAL FILTERS:
The Pullback Trigger: Once the Higher Timeframe establishes a firm trend (Blue for Bullish, Red for Bearish), the script monitors the local timeframe. A Buy/Sell signal is generated exactly when the local price pulls back and crosses the MTF Moving Averages, offering a discounted entry in the direction of the macro trend.
Exhaustion Filter (RSI): A fast RSI operates in the background. It overrides the candle colors (turning them orange by default) to visually warn the trader that the asset has reached overbought/oversold extremes, cautioning against late entries.
🛠️ HOW TO USE:
Apply the indicator to your execution timeframe (e.g., 15m) and set the MTF parameter in the settings to your macro directional timeframe (e.g., 240 for 4H). Wait for the trend lines to turn Blue/Red and enter on the printed signal arrows during pullbacks.
🇧🇷 (PORTUGUÊS)
Este script é um sistema seguidor de tendência Multi-Timeframe (MTF) projetado para capturar pullbacks na direção da tendência primária.
⚙️ COMO FUNCIONA (A Lógica):
Para evitar sinais falsos, o script exige que 3 condições concordem no Tempo Gráfico Maior (MTF) antes de definir a tendência:
Estrutura: Duas médias móveis (EMA/SMA). A rápida deve estar alinhada com a lenta.
Momento (Inclinação): O algoritmo calcula a inclinação matemática da média lenta. A tendência só é validada se a média estiver apontando para a direção da operação.
Filtro MACD: O Histograma do MACD deve confirmar o fluxo (Maior que zero para compras).
🎯 GATILHOS E FILTROS VISUAIS:
Gatilho: Quando o tempo gráfico maior estabelece a tendência (Azul para Alta, Vermelho para Baixa), o script gera o sinal de entrada no momento em que o preço atual faz um pullback e toca as médias móveis do tempo gráfico maior.
Filtro de Exaustão (RSI): Um RSI rápido colore os candles de laranja para avisar visualmente que o ativo chegou a uma zona de sobrecompra/sobrevenda, evitando que você entre muito tarde no movimento.
COMO USAR: Adicione o indicador no seu gráfico de execução (ex: M15) e configure o parâmetro MTF no menu para o seu gráfico de referência (ex: 240 para H4). Aguarde as médias ficarem azuis ou vermelhas e opere os sinais de seta a favor da co Penunjuk

Penunjuk

ORB & Session Liquidity Model [JOAT]ORB and Session Liquidity Model
Builds the opening range for your chosen session, maps the liquidity around it, and signals breakouts with session-aware trade control.
What it is
The first minutes of a session set a reference range that the rest of the session repeatedly reacts to. This indicator defines that opening range, tracks the liquidity sitting above and below it, and signals confirmed breakouts — with session timing, a daily trade cap and full trade framing built in. It is an original session-driven model, not a generic breakout line.
How it works
• Opening range — during a user-defined opening window (for example the first N minutes of your session), the tool records the high and low. Once the window closes, that range is locked as the reference for the rest of the day and drawn as a box.
• Session logic — the model resets cleanly each new day using a real session-change test, so counters and levels do not carry stale values across sessions. Trading is only permitted inside the active session window you define.
• Liquidity ladder — levels around the range (its extremes and projections) are drawn and labelled as the liquidity price is likely to seek. These give context for where a breakout may run to or reverse from.
• Breakout signals — a Buy fires on a confirmed close beyond the range high plus a buffer; a Sell on a confirmed close below the range low minus the buffer. A per-day maximum-trades cap and a minimum-gap control prevent the level from generating repeated prints as price oscillates around it.
Trade levels
Each breakout draws a red risk box to the stop and a green reward box to the third target, with inner dividers and right-edge labels for entry, stop and each take-profit at your R multiples. Stops relate to the range, which is the structure the trade is based on.
The dashboard
An adjustable session-console panel shows the current session phase (pre-range, range building, or live), the locked range, the directional bias relative to it, the trades used against the daily cap, the active signal, a conviction estimate, and a live first-target-before-stop tally from closed bars only.
How to use it
• Set the opening window and session to match the market you trade (indices, futures, forex sessions, crypto day boundaries).
• Wait for the range to lock, then trade confirmed breakouts in the direction of your bias; use the liquidity ladder for targets and invalidation.
• The daily cap keeps the model disciplined — respect it rather than overriding on every wiggle.
Settings
Opening-range window, session hours, breakout buffer, maximum trades per day, liquidity options, risk multiple and target R multiples, plus visual and dashboard controls.
Originality and usefulness
Opening-range breakout is a known concept; the contribution here is the integrated liquidity mapping around the range, the strict session reset and daily trade governance, the confirmed-close breakout logic, and the full non-repainting trade framing — assembled into one session-aware model and explained so each element's role is clear.
Notes and limitations
• Breakouts can fail, and range-bound sessions produce whipsaws around the levels — the buffer and daily cap reduce but do not eliminate this.
• Session settings must match the instrument; a mismatched window will define the range at the wrong time.
• The tally reflects only past bars on the current chart and is not a forecast.
• Educational and analytical tool, not financial advice.
— made with passion by officialjackofalltrades
Penunjuk

Penunjuk

Prestige Digital All-In-One MTF IndicatorPrestige Digital All-In-One MTF Indicator is a multi-timeframe chart overlay designed to help traders read market direction, liquidity behavior, key levels, order blocks, and potential entry areas from one tool.
The indicator combines higher-timeframe bias, liquidity sweeps, VWAP, VWAP deviations, opening range levels, prior session levels, order blocks, entry labels, stop/target planning, and a live dashboard into one chart overlay.
Main Features:
- Multi-timeframe trend dashboard
- Higher-timeframe bias tracking
- Liquidity sweep detection
- Bullish and bearish sweep labels
- Long and short entry labels
- Live forming-bar setup labels
- VWAP and VWAP deviation bands
- Opening range high and low
- Prior day high, prior day low, and prior close
- Overnight high and overnight low
- Optional RTH high and low
- Bullish and bearish order blocks
- Auto-removing broken order blocks
- Customizable colors
- Toggleable helper labels
- Entry, stop loss, and take profit tooltips
- Top-right signal dashboard
- Internal signal tracking stats
Default Multi-Timeframe Structure:
- 1H: Major bias timeframe
- 15M: Setup timeframe
- 5M: Trigger confirmation timeframe
- Current chart: Entry timeframe
Signal Types:
- Failed liquidity sweeps
- Sweep reversal breaks
- Higher-timeframe pullback rejections
- Momentum breaks
- Trend continuation breaks
- VWAP reclaim/reject setups
- Opening range breaks and retests
- Local EMA pullback triggers
Dashboard Meanings:
- No Setup: Conditions are not ready.
- Armed: Market context is aligned, but no entry trigger has appeared yet.
- Long Forming / Short Forming: A live candle is forming a possible setup and may disappear before candle close.
- Confirmed Long / Confirmed Short: The bar closed with a valid signal.
- Blocked: A trigger appeared, but a quality filter rejected the signal.
- Long Tracking / Short Tracking: The indicator is tracking a confirmed signal using its internal stop/target model.
Important:
This is an indicator, not a TradingView strategy. The dashboard includes internal signal tracking based on confirmed indicator entries and planned stop/target levels. These stats are for visual reference only and are not official TradingView Strategy Tester results.
Live forming signals can repaint or disappear before the candle closes. Confirmed signals only appear after bar close.
This tool is intended for analysis, education, and trade planning. It does not guarantee profitable trades or replace proper risk management. Penunjuk

Penunjuk

Regression Channel AutoRegression Channel Auto is a visual trend-structure tool based on least-squares linear regression.
The script draws a regression channel on the chart using either a fixed lookback length or an automatically selected best-fit length. In Auto mode, the script evaluates the available lookback lengths between the user-defined minimum and maximum settings, then selects the window with the highest absolute Pearson correlation. This helps identify the recent price segment that is most closely aligned with a straight-line regression structure.
What the script shows
- A center regression line
- Inner regression bands
- Outer regression bands
- Optional channel fill
- Direction-based coloring for rising, falling, or flat channel slopes
- Optional visual extension to the right
- Optional outside-channel break markers
- Optional alerts for closes outside the outer channel
How it works
The script calculates a least-squares regression line over the selected lookback window. It then measures the residual deviation around that regression line and plots inner and outer bands at user-defined deviation distances.
The channel color changes according to the slope of the regression line:
- Rising channel: positive slope above the flat threshold
- Falling channel: negative slope below the flat threshold
- Flat channel: slope inside the selected flat threshold
Auto Length mode
In Auto mode, the script scans the lookback range selected by the user and chooses the length with the strongest absolute Pearson correlation. This means the selected channel is the one whose recent price structure is most linear within the evaluated range.
A high correlation value describes how closely price followed a linear path during the selected window. It does not predict future price movement.
Fixed Length mode
Fixed mode uses one user-defined lookback length. This is useful when the user wants a stable channel length instead of an automatically changing one.
Main settings
Channel:
- Length mode
- Fixed length
- Auto minimum length
- Auto maximum length
- Source
- Flat threshold
Bands:
- Inner band deviation
- Outer band deviation
- Show inner bands
- Show channel fill
Display:
- Extend channel right
- Show info label
- Show current outer break marker
Lines:
- Center line width
- Inner band width
- Outer band width
- Center line style
- Inner band style
- Outer band style
Colors:
- Rising channel color
- Falling channel color
- Flat channel color
- Inner band transparency
- Channel fill transparency
Alerts
The script includes optional alert conditions for:
- Close above the upper outer regression channel
- Close below the lower outer regression channel
These alerts describe price moving outside the selected regression channel. They are not buy or sell signals.
How to use
Use this indicator to review whether price is moving inside a structured linear channel, near the upper or lower side of the channel, or outside the outer deviation bands.
The tool can be useful for visual trend review, mean-deviation context, and identifying when price has moved outside its recent regression structure.
Important note on refitting
This script is recalculated as new bars develop. In Auto mode, the selected lookback length can also change when new price data changes which window has the highest absolute Pearson correlation.
For this reason, the channel should be understood as a dynamic descriptive tool. It is not a fixed historical signal and it should not be interpreted as a prediction model.
Limitations
- The channel is based on recent price structure only.
- A high Pearson correlation measures linearity, not future performance.
- A close outside the channel does not automatically mean continuation or reversal.
- Outer-band contact is not a standalone trading signal.
- The optional right extension is a visual reference only and is not a forecast.
This indicator is intended for chart analysis, educational use, and visual review of regression-channel structure. Penunjuk

Fractal Structure Auto FiboFractal Structure Auto Fibo
This tool is designed for price action traders and structural analysts who want to optimize their charting. It automatically identifies valid market swings using fractal logic, draws clear ZigZag lines, and automatically draws Fibonacci retracement levels for the most recent trading range.
Key Features
Dynamic Fractal Detection: Identifies valid swing peaks and troughs based on a user-defined review period (n). It filters out market noise and visually marks confirmed swing points with clear arrows (⮝ / ⮟).
- The difference from other Fractal indicators is that it scans fractal levels; if there are multiple consecutive highs or lows, it selects the highest/lowest as the main fractal level. Eliminate structural doubts.
Draw a live ZigZag map: Connect confirmed structural points to give you a clear, unambiguous view of the current market trend.
Smart automatic Fibonacci: Eliminate the need to manually draw Fibonacci retracement levels!
Automatically identify the nearest swing peaks and troughs.
Automatically reverse based on the current trend (0.0 is at the peak in an uptrend to measure corrections, and vice versa).
Extend dashed Fibonacci levels forward to the current candle to create a clean, uncluttered chart.
Settings & Customization
Fractal Period (n): Determines the sensitivity of the pivot points. Larger numbers filter out small corrections for macro structure, while smaller numbers capture small swings.
Automatic Fibonacci On/Off: Easily turn the Fibonacci display on or off to keep your chart clean. Includes customizable line and text colors.
For Developers (Open Source)
The code is highly optimized using Pine Script v5 array to manage drawing objects (Lines and Labels). It automatically removes old Fibonacci levels and dynamically redraws new ones, ensuring your platform doesn't reach its maximum line limit. Feel free to copy this script to add your own order conditions, alerts, or advanced SMC filters!
Happy using the script and successful trading! Penunjuk

Trend Context Trend Context is a market-regime indicator designed to help traders identify whether the current market environment is predominantly bullish, bearish, or neutral.
Rather than relying on a single moving-average crossover or momentum oscillator, the indicator combines several normalized market characteristics into one composite regime model:
• Price location relative to an adaptive baseline
• Direction and strength of the baseline slope
• Recent price momentum
• Position within the recent trading range
• Directional efficiency
• Current volatility relative to its historical average
The objective is not to predict the next candle. Trend Context is designed to provide structured directional context that can be used as a market filter, confirmation layer, or visual framework for an existing trading strategy.
✦ Core Concept
Not every movement above or below a moving average represents a meaningful trend.
Markets frequently move in an irregular, inefficient manner, producing price fluctuations without sustained directional progress. Trend Context evaluates both the direction of price movement and the quality of that movement before confirming a new market regime.
A directional state is activated only when several independent components support the same conclusion.
This helps reduce unnecessary regime changes caused by isolated candles or short-term market noise.
⚙️ How the Indicator Works
1. Directional Efficiency
The indicator first measures how efficiently price has moved over the selected lookback period.
Directional efficiency compares:
• The absolute distance between the current price and the price at the beginning of the measurement period
• The sum of all individual price changes during that same period
A value closer to 1 indicates a relatively direct movement.
A value closer to 0 indicates that price has moved back and forth without making meaningful directional progress.
Directional efficiency influences both the adaptive baseline and the confidence applied to the final regime score.
2. Adaptive Baseline
Trend Context calculates a fast exponential moving average and a slow exponential moving average.
The directional-efficiency value determines how these two averages are blended:
• During efficient directional movement, the baseline shifts closer to the faster average
• During noisy or inefficient movement, the baseline remains closer to the slower average
The blended value is then smoothed again to reduce unnecessary fluctuations.
This creates a baseline that can respond more quickly during directional conditions while remaining more stable during irregular or sideways markets.
3. Volatility-Adjusted Context Zone
The indicator creates an upper and lower context boundary around the adaptive baseline.
The width of this zone is based on Average True Range, or ATR. It is also adjusted by comparing current ATR with its average value over the selected volatility lookback period.
This adjustment is bounded to prevent unusually quiet or volatile conditions from producing excessively narrow or wide zones.
As a result:
• The context zone expands as volatility increases
• The context zone contracts as volatility decreases
The active boundary provides a visual representation of the current directional context. It should not be interpreted as guaranteed support or resistance.
📊 Composite Regime Score
The market regime is calculated using four normalized components.
Price Location
Measures how far price is positioned above or below the adaptive baseline.
The distance is normalized by ATR so that the calculation remains comparable across instruments with different prices and volatility levels.
Baseline Slope
Measures whether the adaptive baseline is rising or falling.
The slope is normalized using ATR and the selected slope period.
Momentum
Measures the change in price over the selected momentum period.
This component is also normalized by ATR.
Range Position
Measures where the current price is located within its recent high-to-low range.
A position near the upper part of the range supports a bullish regime, while a position near the lower part supports a bearish regime.
The four components are combined using configurable weights. The resulting value is then adjusted by directional efficiency.
The final regime score is constrained between -1 and +1:
• Positive values support a bullish regime
• Negative values support a bearish regime
• Values close to zero indicate an uncertain or neutral environment
◇ Confirmed Three-State Regime Model
Trend Context uses three market states:
UP
NEUTRAL
DOWN
UP Regime
An UP regime requires:
• The composite score to exceed the activation threshold
• Price to remain above the adaptive baseline
• Directional efficiency to meet the minimum requirement
• The conditions to remain valid for the selected number of confirmation bars
DOWN Regime
A DOWN regime requires:
• The composite score to move below the negative activation threshold
• Price to remain below the adaptive baseline
• Directional efficiency to meet the minimum requirement
• The conditions to remain valid for the selected number of confirmation bars
Neutral Regime
The indicator returns to a neutral state when the absolute regime score remains inside the defined neutral zone for the required number of bars.
Regime transitions and UP/DOWN labels are confirmed only after the candle closes.
This confirmation process is intended to reduce rapid state changes caused by individual candles.
🎯 Visual Interpretation
UP Context
During an UP regime:
• The lower context boundary is displayed
• The area between price and the lower boundary is highlighted with the selected UP color
• An optional UP label appears when the regime changes into the bullish state
The active lower boundary represents bullish market context. It is not an automatic entry level or guaranteed support zone.
DOWN Context
During a DOWN regime:
• The upper context boundary is displayed
• The area between price and the upper boundary is highlighted with the selected DOWN color
• An optional DOWN label appears when the regime changes into the bearish state
The active upper boundary represents bearish market context. It is not an automatic entry level or guaranteed resistance zone.
Neutral Context
During a neutral regime, neither directional ribbon is active.
This means that the combined calculations do not currently provide sufficient evidence for a confirmed bullish or bearish market state.
How to Use Trend Context
Directional Filter
The indicator can be used to filter trades according to the active market regime.
For example:
• Consider bullish setups while the indicator is in the UP state
• Consider bearish setups while the indicator is in the DOWN state
• Reduce directional exposure or wait for additional confirmation during neutral conditions
Trend Context is not a complete entry system. Entry timing, stop-loss placement, position sizing, and profit targets must be defined separately.
Pullback Context
The active boundary and ribbon can help traders assess pullbacks within the current directional regime.
A return toward the active context zone is not an automatic trade signal.
It may be combined with:
• Market structure
• Support and resistance
• Candlestick confirmation
• Volume analysis
• A separate execution model
Higher-Timeframe Context
Trend Context can also be applied to a higher timeframe to identify the broader market regime while entries are managed on a lower timeframe.
Because market behaviour differs between instruments and timeframes, settings should be tested on the specific market being traded.
⚙️ Main Settings
Adaptive Baseline
Price Source
Selects the price series used in the calculations.
Fast Smoothing Length
Controls the faster exponential moving average.
Slow Smoothing Length
Controls the slower exponential moving average.
Efficiency Measurement Length
Defines the period used to measure directional efficiency.
Final Baseline Smoothing
Controls the final smoothing applied to the adaptive baseline.
Regime Model
Volatility Length
Sets the ATR calculation period.
Volatility Context Length
Defines the period used to compare current ATR with its historical average.
Baseline Slope Length
Controls the period used to calculate the baseline slope.
Momentum Length
Defines the period used for the momentum component.
Range Position Length
Sets the recent high-to-low range used in the range-position calculation.
Context Zone Multiplier
Controls the width of the volatility-adjusted context zone.
Regime Activation Threshold
Determines how strong the composite score must be before a directional regime can be activated.
A higher value produces fewer and more selective regime changes. A lower value increases sensitivity.
Neutral Zone Threshold
Defines how close the composite score must be to zero before the market can return to a neutral state.
Minimum Directional Efficiency
Prevents directional states from being activated when price movement is considered too inefficient.
Direction Confirmation Bars
Defines how many consecutive confirmed bars are required before an UP or DOWN state is activated.
Neutral Confirmation Bars
Defines how many consecutive bars inside the neutral zone are required before the indicator returns to a neutral state.
Component Weights
The indicator allows users to adjust the relative contribution of:
• Price location
• Baseline slope
• Momentum
• Range position
The total weight is normalized automatically, so the settings represent the relative importance of each component.
Visual Settings
Users can independently control:
• UP, DOWN, and neutral colors
• Trend ribbon visibility
• Active boundary visibility
• Adaptive baseline visibility
• Baseline visibility during neutral conditions
• Price-bar coloring
• UP and DOWN transition labels
🔔 Alerts
Alert conditions are available for:
• A confirmed transition into the UP regime
• A confirmed transition into the DOWN regime
These alerts indicate a change in market context. They should not be interpreted as automatic buy or sell orders.
Important Limitations
Trend Context is a reactive indicator based on historical price and volatility data. It does not predict future prices.
Like all trend and market-regime tools, it may react with a delay after sudden reversals and may produce repeated state changes during sideways or unstable conditions.
Increasing the activation threshold, minimum directional efficiency, or confirmation-bar settings may reduce sensitivity, but it will also delay regime transitions.
Decreasing these values will make the indicator respond faster, but may increase the number of short-lived or false regime changes.
Trend Context should be used together with independent risk management, position sizing, and trade validation.
This indicator is provided for analytical and educational purposes and does not constitute financial advice. Penunjuk

MTM Sensei for alertsMTM — Sensei X
A multi‑confirmation trading framework: reads trend, structure, order flow and volatility, then draws a complete, ready‑to‑manage trade — entry, stop, four exits, breakeven and trailing — with clean on‑chart panels and webhook‑ready alerts.
What it does
Sensei X scores every setup against 20 confirmations grouped into four engines and only triggers when enough of them align in the same direction:
Trend (DEMA): DEMA 15 / 50 / 238 alignment, slope and price location.
Momentum · Volume · Order Flow: volume validation, ADX strength, RSI regime, and real buy/sell delta computed from a lower timeframe (with an on‑chart proxy fallback), plus imbalance and absorption reads.
Market Structure (SMC): CHoCH, BOS, IDM, liquidity sweeps, Order Blocks and swing points.
Sensei / Phase / Volatility: Sensei Bands (1σ) + adaptive cloud, momentum/exhaustion phase and a volatility‑safety check.
Phase engine
Choose how signals fire:
Momentum – triggers on setup completion (continuation). Best for Scalp / Intraday / Aggressive.
Exhaustion – triggers on a full countdown (reversal). Best for Swing / Conservative.
Trading styles (one click) Penunjuk

Penunjuk

Supply & Demand Zones Liquidity & Stop Hunt [LunqFX]Supply and demand zones are where price reacts — but most indicators draw every swing as a box and leave you to guess which one matters. Liquidity Zones ranks them: it marks the key supply and demand zones, scores each one by how much liquidity it holds, and shows whether it is still fresh — so you know which level to trade and which to ignore.
❶ WHAT EACH ZONE SHOWS
Every zone is a coloured block — magenta = SUPPLY (sellers, above), teal = DEMAND (buyers, below) — and carries three readings that are original to this script:
LIQ SCORE (0–100) — how much volume traded inside the zone versus the strongest zone on the chart. 100 = the heaviest zone (the real magnet); a low score = a thin, weak level.
VOLUME ▲ / ▼ — the up-volume vs down-volume that built the zone: did buyers or sellers do the work inside it.
FRESH / TESTED N× — FRESH = price has not returned yet (strongest reaction expected); TESTED N× = already retested N times, weaker each time.
❷ HOW TO TRADE IT
1 — Read the BIAS in the panel. ▲ BUY-SIDE = favour longs, ▼ SELL-SIDE = favour shorts. Trade with it, not against it.
2 — Pick a zone with a HIGH LIQ Score (70+). Low-score zones are thin and unreliable — skip them.
3 — Prefer FRESH zones. A FRESH high-LIQ zone is the highest-probability reaction. A many-times-TESTED zone is more likely to break than hold.
4 — Wait for price to return to that zone. The bright edge line is your reference level.
5 — Enter on the reaction: LONG — bias BUY-SIDE, price drops into a FRESH teal DEMAND zone, LIQ 80, Volume ▲ (buyers dominant). Long on the reaction, stop below the zone, target the next supply zone above. SHORT — bias SELL-SIDE, price rallies into a FRESH magenta SUPPLY zone, LIQ 76, Volume ▼ (sellers dominant). Short on the reaction, stop above the zone, target the next demand zone below.
❸ WHAT TO AVOID
Trading low-LIQ zones — they hold little liquidity. Fading a zone whose Volume split disagrees with its side (e.g. a supply zone built on heavy up-volume) — the level is weak. Chasing a many-times-TESTED zone expecting a clean bounce.
Works on any symbol and timeframe — forex, gold (XAUUSD), indices, crypto and stocks — intraday and higher timeframes alike.
❹ DASHBOARD
The panel lists every zone with its price, LIQ Score, FRESH/TESTED status and side (BUY/SELL), plus a LIQ-weighted overall bias — the full picture at a glance. Optional neon candles can be turned off to keep your own style.
❺ HOW IT WORKS
1 — Swing highs and lows are found from confirmed pivots (closed bars — no repainting). Each swing high opens a supply zone, each swing low a demand zone. 2 — Each zone is a block centred on the swing, its height scaled to ATR so it fits the instrument's volatility. 3 — For every zone the script measures the volume traded inside it, the up/down-volume split, and how many separate times price entered it. 4 — LIQ Score = the zone's volume ÷ the strongest zone's volume, scaled 0–100. 5 — The bias is weighted by LIQ Score, so one heavy zone counts for more than several thin ones — an honest read of whether liquidity leans buy or sell.
No repainting
Zones are built only from confirmed pivots and rendered on the last bar over a fixed lookback. A zone that appears in a screenshot is a zone that was there live — history is never recalculated.
This indicator is an educational market-analysis tool, not financial advice. Zone strength and past reactions describe historical behavior and do not guarantee future results. Always confirm with your own analysis and manage risk. Penunjuk

Penunjuk

Trendline Architect [Quantum Algo]Trendline Architect
====================================================
🔶 OVERVIEW
Trendline Architect is an automatic trendline indicator that does what most trendline tools skip: it validates every line before drawing it, makes each line earn its status through real touches, grades every breakout by quality, and then automates the break-and-retest sequence that trendline traders normally track by hand. Lines are born as dotted candidates, promoted to solid confirmed trendlines only after the market validates them with a third touch, graded on breakout, kept on a retest watch after they break, and paired into parallel channels automatically — all with a deliberately quiet chart: one-letter signals whose full context lives in hover tooltips.
The problem this script solves is trendline spaghetti and trendline noise. Automatic trendline tools typically draw every pivot-to-pivot connection and alert on every violation. This engine rejects invalid lines at birth, refuses duplicates, caps how many lines can exist per side, silences the breaks of unproven lines by default, and filters weak breakouts by grade — so what remains on the chart is only what the market has actually respected.
🔶 WHAT IS A TRENDLINE BREAK AND RETEST?
A trendline connects successive swing points and acts as dynamic support or resistance while price respects it. A breakout occurs when price closes decisively through the line. The retest is what disciplined traders wait for next: price returning to the broken line from the other side and rejecting — old support acting as new resistance, or old resistance reclaimed as support. That return-and-reject is one of the most traded patterns in classical charting, and this engine detects the entire sequence automatically: validated line, graded break, watch window, confirmed retest.
🔶 WHY THIS SCRIPT IS ORIGINAL
1. Geometric validity at birth. A candidate line is rejected before it is ever drawn if any candle close violated the segment between its two anchor pivots. Lines that were never respected never reach the chart.
2. Touch-earned lifecycle. Every line starts as a dotted, untagged candidate. Each validated touch — a wick into tolerance with a close that respects the line — is counted, and only at the configured touch count is the line promoted: solid, thicker, fully colored, with a live ×N touch tag. The chart itself shows which lines the market obeys.
3. Anti-spaghetti engineering. Duplicate candidates with similar slope and position are refused, each side is capped at a configurable number of active lines with the weakest evicted first, and stale lines expire by age. The chart stays readable on every timeframe.
4. Breakout quality grading. Every breakout is scored from three observable components — volume z-score, penetration depth in Average True Range units, and breakout candle body ratio — into grades A, B, and C. Grade A signals highlight in the accent color.
5. A retest engine. Broken lines are not deleted; they turn into gray watch lines for a configurable window. A return to the broken line with a rejecting close prints the Retest signal — the classic polarity flip, automated.
6. Silence by default, depth on demand. Signals print as single letters — B for breakout, R for retest — with the full context (direction, grade, volume, penetration) in the hover tooltip. Two noise filters ship enabled: breaks of unconfirmed lines retire silently, and breakouts below a minimum grade stay off the chart and out of the alerts.
7. Automatic channel detection. When an active support line and resistance line run parallel within a slope tolerance, the engine fills the channel between them and reports it on the dashboard.
8. A live architecture dashboard. Active support and resistance counts, the nearest line with its distance in Average True Range units, a trend read derived from confirmed line slopes, the last break grade, the retest watch count, and channel status — in a compact, fully themeable panel.
🔶 HOW IT WORKS
Line construction: Confirmed swing pivots anchor every candidate line. Each new pivot is paired with the previous same-side pivot, the segment is checked for historical violations, duplicates are rejected, and side capacity is enforced before the line is created.
Touch validation: A touch counts only when the wick enters the tolerance band around the line and the close still respects it. Touches accumulate on the line's tag; the confirming touch promotes the line and, from that point, validated touches are marked with dots.
Breakouts: A close through the line beyond the buffer triggers the break. Confirmed lines produce graded signals; forming lines retire silently when the default filter is on. The broken line converts to a gray dashed watch line.
Retests: Within the watch window, a return to the broken line with a rejecting close prints R — upward reclaim of broken resistance, or downward rejection at broken support. Watch lines that see no retest expire quietly.
Channels: Active opposite-side lines are compared by slope; the closest parallel pair within tolerance is filled as a channel.
Non-repainting: Pivots require confirmation, and all touches, promotions, breaks, and retests are evaluated on closed bars only. Once printed, nothing moves.
Chart hygiene: Completed lines, touch dots, and signals are all capped by input, keeping the chart clean and the auto-scale anchored to current price.
🔶 HOW TO USE IT
1. Works on any market — cryptocurrency, forex, gold, indices, stocks, futures — and any timeframe. Raise the pivot length for larger structures.
2. Trust the visual hierarchy: dotted lines are candidates, solid lines with ×N tags are market-validated, gray dashed lines are broken and on retest watch.
3. Treat B signals as regime information: grade A breakouts with volume and penetration carry far more weight than the minimum-grade ones, and the grade is one hover away.
4. The R signal is the classic entry location: the broken line has flipped roles and price has confirmed the flip. Stops belong on the far side of the retested line.
5. Use the dashboard's Nearest row to know how far price is from the closest active line in Average True Range units before it gets there.
6. If you want the raw, unfiltered feed, disable the two noise filters in Signals — the engine detects everything either way.
🔶 SETTINGS
- Detection: pivot length, maximum anchor span, active lines per side, line expiry, completed lines to keep.
- Touches, breaks and retests: touch tolerance, touches to confirm, breakout buffer, retest watch window.
- Signals: breakout and retest toggles, confirmed-lines-only filter, minimum breakout grade.
- Channel detection with slope similarity tolerance.
- Full color customization, extension length, touch dots toggle.
- Themeable dashboard: position, four text sizes, title band, background, frame, grid, and three text colors.
🔶 ALERTS
- Trendline Confirmed — a line collected its confirming touch.
- Bullish / Bearish Trendline Breakout — a qualified close through a line, honoring the grade filter.
- Bullish / Bearish Retest Confirmed — a broken line was retested and rejected.
- Parallel Channel Detected — an active support and resistance pair is running as a channel.
🔶 FREQUENTLY ASKED QUESTIONS
Does the indicator repaint? No. Anchors are confirmed pivots and every touch, break, and retest is evaluated at bar close. Pivot confirmation introduces intentional lag equal to the pivot length.
Why do I see so few lines? By design. Between geometric validation, duplicate rejection, side caps, and expiry, only lines with genuine market respect survive. Raise the per-side cap or lower the confirmation count for a busier chart.
What do B and R mean? B is a graded breakout and R is a confirmed retest of the broken line. Hover either label for direction, grade, volume, and penetration details.
Why did a breakout print no signal? Either the line was still unconfirmed while the confirmed-only filter is on, or the break graded below your minimum. The line still changed state; only the signal was filtered.
What makes a grade A breakout? Elevated volume, deep penetration beyond the line in Average True Range terms, and a strong-bodied breakout candle — all three together.
🔶 CREDITS
Trendline analysis, breakout trading, and the break-and-retest pattern are classical charting techniques in the public domain, refined by generations of technicians. This script gratefully acknowledges that shared lineage. The geometric validity engine, touch-earned lifecycle, breakout grading model, retest watch engine, channel detection, noise-filtering architecture, and all code in this script are original work — no third-party or open-source script code was reused.
🔶 LIMITATIONS
Trendlines are geometry, not guarantees: valid lines break and graded breakouts fail. Pivot confirmation delays anchor recognition by design. Volume grading is less meaningful on symbols with unreliable volume reporting. Channel detection reports the closest parallel pair, not every possible channel. No indicator replaces independent analysis.
🔶 DISCLAIMER
This script is provided strictly for educational and informational purposes. It is not financial advice, an investment recommendation, or a solicitation to buy or sell any financial instrument. Past behavior of any trendline, breakout, or retest does not guarantee future results. Trading involves substantial risk. Always do your own research and manage risk independently.
Penunjuk
