MACD Trend Continuation Filter [algotim]MACD Trend Continuation Signals with Trend Strength and Session Validation is a trend-following indicator designed to reduce false MACD crossover signals by requiring confirmation from market direction, trend strength, and trading session activity before generating a signal.
Instead of treating every MACD crossover equally, the indicator applies a sequential validation process so that signals are only produced when momentum develops in the direction of the prevailing trend during active market sessions.
Problem Statement
Standard MACD crossover strategies often generate numerous signals during ranging markets, weak trends, or periods of reduced market participation. While many of these crossovers satisfy the basic MACD conditions, they frequently lack the broader context needed to support a higher-probability continuation move.
This indicator addresses that issue by combining momentum, trend direction, trend strength, and session timing into a single validation workflow. The objective is not to increase the number of signals, but to improve their selectivity by filtering out conditions that commonly produce lower-quality entries.
Methodology
The indicator evaluates each setup through four consecutive validation stages.
Stage 1 – Momentum Trigger
The process begins with a traditional MACD crossover.
A bullish setup requires the MACD line to cross above the signal line while both remain below the zero line, indicating that bullish momentum is emerging from previously negative momentum.
A bearish setup requires the MACD line to cross below the signal line while both remain above the zero line, indicating weakening bullish momentum before potential downside continuation.
Stage 2 – Trend Direction
After a valid MACD crossover is detected, price location relative to the selected EMA determines the higher-level trend.
Long signals require price above the EMA.
Short signals require price below the EMA.
This prevents taking counter-trend MACD crossovers.
Stage 3 – Trend Strength
The indicator then evaluates ADX.
Signals are only accepted when ADX exceeds the user-defined threshold, indicating that directional movement has sufficient strength. When enabled, this filter attempts to reduce signals generated during low-volatility consolidation periods.
Stage 4 – Session Validation
Finally, signals are restricted to the selected trading sessions.
By default, only London and New York sessions are considered valid. These periods generally coincide with higher market participation and increased liquidity compared with quieter trading hours.
Only when all four stages agree is a signal plotted.
Signal Workflow
Bullish Signal
MACD crosses above its signal line.
MACD remains below zero.
Price trades above the EMA trend filter.
ADX exceeds the minimum strength threshold (optional).
The current bar occurs during an enabled trading session (optional).
A bullish signal is displayed.
Bearish Signal
MACD crosses below its signal line.
MACD remains above zero.
Price trades below the EMA trend filter.
ADX exceeds the minimum strength threshold (optional).
The current bar occurs during an enabled trading session (optional).
A bearish signal is displayed.
Why This Indicator Is Different
Many MACD-based scripts generate signals immediately after every crossover.
This indicator instead applies a layered validation process where each filter serves a distinct analytical purpose:
MACD identifies the momentum shift.
The EMA confirms the broader directional bias.
ADX measures whether the market is exhibiting sufficient directional strength.
The session filter limits signals to predefined periods of higher market activity.
Rather than operating as independent indicators displayed together, these components form a sequential decision process where each stage must validate the previous one before a signal is produced.
Inputs
The indicator allows customization of:
MACD fast, slow, and signal periods
EMA length
ADX length
Minimum ADX threshold
London session
New York session
Enable/disable ADX filtering
Enable/disable session filtering
Alerts
Built-in alert conditions include:
Bullish Signal
Bearish Signal
Alerts trigger only after all enabled validation stages have been satisfied.
Practical Usage
The indicator is intended for traders who prefer trading with the prevailing market direction rather than reacting to every MACD crossover.
Because multiple filters must align, signal frequency is intentionally lower than a standard MACD indicator. Traders may use the signals alongside their own price action analysis, support and resistance levels, or risk management rules.
Limitations
Signals are generated only after bar confirmation.
Strong trends may still produce losing trades during rapid market reversals.
Session filtering may exclude valid opportunities occurring outside the selected trading hours.
ADX measures trend strength but does not indicate future price direction.
The indicator is designed as a confirmation tool and should not be relied upon as the sole basis for trading decisions.
Notes
This script is intended for educational and analytical purposes. It visualizes a structured validation process that combines momentum, trend direction, trend strength, and trading session timing into a single signal-generation workflow. As with any technical indicator, outputs should be evaluated within a broader trading plan that includes appropriate risk management. Индикатор

FCP | HL Levels | Daily Weekly Monthly Multi Timeframe High LowHL Levels draws the high, low and midpoint of each completed higher-timeframe candle directly on your chart, so you can see where the market reacted without switching timeframes.
What it plots
For every closed candle of the selected timeframe, three horizontal segments are drawn across the range of that period:
High — the peak of the previous period
Low — the trough of the previous period
Midpoint — the 50% level between them, drawn as a dotted line
Each segment spans only its own period, so the chart reads as a sequence of ranges rather than a cluster of endless rays.
Timeframes
Three fixed groups are available out of the box:
Daily — previous day's high, low and midpoint
Weekly — previous week's high, low and midpoint
Monthly — previous month's high, low and midpoint
Each can be toggled independently and given its own colour and line width.
Custom timeframe
A fourth group lets you pick any timeframe you want. It is off by default. Turn it on, choose a timeframe, and set how many candles back to draw.
This is aimed at intraday traders who work on low timeframes but need a mid-level reference — for example a 5-minute chart showing 4-hour highs and lows. Its look-back is measured in candles, not days, because the timeframe is yours to choose and a day-based count would produce thousands of objects on a 1-minute setting.
Look-back
The three fixed groups share a single look-back measured in days (default 60). The indicator converts that into the right number of candles for each timeframe automatically, so one setting controls all three consistently.
Notes
A group is skipped when its timeframe is lower than the chart's own timeframe, since those levels would change faster than the bars drawn beneath them.
Higher-timeframe data is requested with lookahead_on applied to high and low — that is, only fully closed candles are read. Nothing repaints.
The script respects Pine's 500-line drawing budget. Older periods are removed as new ones form.
How to use it
Previous-period highs and lows are among the most watched levels in any market. Price approaching a prior daily high often meets sellers; a prior weekly low often attracts buyers. The midpoint marks the equilibrium of that period and frequently acts as support or resistance in its own right.
These are reference levels, not signals. Combine them with your own analysis and risk management. Индикатор

EVA Ai + POC, Liquidity & Smart Money## Overview
**EVA Ai+ Volume Profile — POC, Value Area & Liquidity** is a market-structure and volume-distribution indicator designed to analyze where trading activity is concentrated across price.
Its primary purpose is to combine price-based Volume Profile information with confirmed liquidity structure in one analytical framework.
The script calculates a horizontal volume distribution, Point of Control (POC), Value Area, High-Volume Nodes (HVN), Low-Volume Nodes (LVN), directional volume estimates, and confirmed buy-side/sell-side liquidity pools.
These components are not intended to function as independent entry signals. They are combined to help answer a specific analytical question:
**Where is price currently being accepted, where is participation relatively low, and where does confirmed unswept liquidity remain in relation to that auction structure?**
The indicator does **not** generate automatic LONG or SHORT recommendations and does not execute trades.
---
## Purpose of the combined architecture
Volume Profile and liquidity analysis describe different aspects of market behavior.
Volume Profile measures how the available volume data is distributed across price.
Liquidity structure identifies confirmed areas around comparable swing highs and lows that have not yet been fully cleared according to the script's rules.
EVA combines these concepts because either one viewed in isolation can omit relevant context.
For example:
* POC and Value Area describe the center and boundaries of accepted value;
* HVNs identify local concentrations of calculated participation;
* LVNs identify comparatively low-volume regions;
* directional volume provides context about the composition of the calculated profile;
* confirmed BSL/SSL pools identify unresolved liquidity structures;
* distance and quality calculations place those structures in relation to current volatility and price.
The intended result is a single auction map showing **value, participation, low-volume structure, and confirmed liquidity context together**.
This interaction is the principal reason these components are included in one script.
---
## Volume Profile
The script distributes the available volume across horizontal price rows within the active calculation range.
The profile is intended to show where the selected market spent comparatively more or less trading activity.
### Point of Control — POC
POC is the price row containing the largest amount of calculated profile volume.
It represents the highest-volume row of the current profile calculation.
It should not be interpreted as an automatic support, resistance, entry, or reversal signal.
### Value Area
The Value Area contains the configured percentage of calculated profile volume surrounding the profile's primary volume concentration.
A commonly used setting is 70%.
The script displays:
* **VAH** — Value Area High;
* **VAL** — Value Area Low.
Price inside the Value Area indicates that it is trading within the profile's calculated value region.
Price above VAH or below VAL indicates that it is outside that region, but this condition alone does not imply continuation or reversal.
---
## HVN and LVN structure
### High-Volume Nodes — HVN
HVNs are local concentrations within the calculated profile where neighboring rows contain comparatively high volume.
They can be used to identify areas of previous acceptance or repeated participation.
Possible market behavior around an HVN can include rotation, consolidation, retesting, support/resistance behavior, or no meaningful reaction at all.
The script does not assume that an HVN must hold.
### Low-Volume Nodes — LVN
LVNs are local low-volume regions between areas of greater calculated participation.
They can highlight portions of the profile where historical acceptance was comparatively limited.
Price may sometimes traverse these areas more quickly, but an LVN does not guarantee acceleration or determine direction.
HVN and LVN structures remain components of the calculated profile and can change when the active profile range changes.
---
## Directional volume context
When lower-timeframe data is available, the script classifies lower-timeframe volume according to candle direction and aggregates that information into the profile.
The resulting values are displayed as:
* Up Volume;
* Down Volume;
* Delta.
**Delta in this indicator is the difference between the script's classified Up Volume and Down Volume.**
It is important to distinguish this from exchange-level bid/ask order-flow delta.
Pine Script does not provide the script with a complete historical exchange order book or universal historical bid/ask footprint data.
Therefore, EVA does not claim to reconstruct those datasets.
Directional volume is an approximation derived from the available lower-timeframe OHLCV data.
---
## BSL and SSL liquidity structure
The liquidity component identifies confirmed structures around comparable pivot highs and lows.
### BSL — Buy-Side Liquidity
BSL structures are created above qualifying comparable swing highs.
### SSL — Sell-Side Liquidity
SSL structures are created below qualifying comparable swing lows.
The script does not label every swing high or swing low as liquidity.
A liquidity structure requires multiple confirmed pivot observations that satisfy the script's similarity, spacing, volatility, and quality conditions.
This filtering is intended to reduce the number of insignificant structures displayed on the chart.
Liquidity terminology in this script represents a technical model based on price structure. It does not imply direct observation of hidden orders or stop orders in an exchange order book.
---
## Liquidity Quality
Each qualifying liquidity structure receives a quality value based on several measurable properties of the detected structure.
Depending on the active configuration, these properties include factors such as:
* relative volume;
* rejection characteristics;
* spacing between qualifying pivots;
* volatility-adjusted geometry.
The quality value is used for filtering and ranking detected structures.
It is a relative analytical score created by this script. It is **not a probability of a profitable trade or a prediction that a liquidity level will be reached or swept**.
---
## Liquidity states
Detected pools can move through several states.
### FRESH
The qualifying structure has been confirmed and has not yet met the script's test or sweep conditions.
### TESTED
Price has interacted with the structure according to the configured testing rules without completing the full sweep condition.
### OFF
The structure remains internally valid but falls outside the configured volatility-adjusted working radius and is therefore not displayed as an active nearby structure.
### SWEPT
Price has crossed the structure's defined far boundary.
Once this condition is confirmed, the corresponding active pool drawings are removed.
The state system prevents historical liquidity structures from remaining visually active after the script considers them resolved.
---
## Nearest structural references
The dashboard identifies nearby calculated structures such as:
* BSL;
* SSL;
* HVN;
* LVN.
Distances can be normalized using ATR so that the displayed distance is comparable across instruments with different nominal prices and volatility.
These values describe **location**, not trade expectancy.
A nearby BSL, SSL, HVN, or LVN should not be interpreted as a recommendation to enter a position.
---
## Profile modes
The script supports several ways to define the profile range.
### Visible Range
The profile is calculated from the chart region used by the script's visible-range logic.
Changing the visible chart area can therefore change the profile.
This behavior is intentional.
A Visible Range profile is dynamic and should not be interpreted as an immutable historical signal.
### Session
The profile is calculated using the selected session boundaries.
This mode can be used to examine session-specific POC, Value Area, and volume distribution.
### Fixed Range
The profile is calculated between user-defined time boundaries.
This mode can be used to inspect a specific impulse, consolidation, expansion, or other manually selected market segment.
---
## Adaptive configuration
The optional adaptive mode adjusts selected calculation parameters according to chart conditions.
Depending on configuration, this can include:
* lower-timeframe selection;
* profile row density;
* HVN/LVN sensitivity;
* pivot sensitivity;
* liquidity-zone width;
* minimum liquidity-quality threshold;
* volatility-adjusted display radius.
The purpose of this mode is to maintain usable analytical resolution across different chart timeframes and price scales.
Adaptive configuration does not optimize for future profitability and does not predict future market direction.
Users can disable adaptive behavior and use manual settings where required.
---
## Dashboard
The dashboard summarizes the current calculated state of the indicator.
Depending on the selected configuration, it can display:
### Auction
The location of current price relative to VAH, VAL, and the calculated Value Area.
### Range / Source
The active profile mode and the data source currently used by the calculation.
### Rows × Step
The effective number of price rows and the price increment represented by each row.
### Up / Down / Delta
The directional volume classification generated from the available data.
### POC / Distance
The current POC and price distance from it.
### Nearest BSL / SSL
The nearest qualifying liquidity structure together with distance, quality, and state.
### Nearest HVN / LVN
The nearest calculated high-volume and low-volume structures.
### Structure
A descriptive classification of the current volume distribution.
### Status
Information concerning the current calculation mode and available data.
The dashboard summarizes calculated information; it does not produce trading instructions.
---
## How to interpret the map
### Price inside Value Area
Price inside VAH and VAL is trading within the profile's calculated value region.
POC and HVNs can help locate concentrations of historical participation.
This does not necessarily imply a ranging market or predict that price will remain inside the Value Area.
### Price above VAH
Price above VAH is outside the upper boundary of the calculated Value Area.
Whether the move continues or returns into value depends on subsequent market behavior.
VAH alone is not a breakout confirmation.
### Price below VAL
Price below VAL is outside the lower boundary of the calculated Value Area.
VAL alone does not confirm bearish continuation.
### Interaction with an LVN
An LVN identifies a region of comparatively low calculated participation.
It can be used to observe how price behaves when entering a low-volume region, but it does not guarantee rapid movement through that area.
### Interaction with liquidity
When price reaches a BSL or SSL structure, users can observe whether the level remains active, becomes tested, or satisfies the script's sweep condition.
A sweep is a structural event only.
**A liquidity sweep does not by itself imply a reversal or continuation.**
---
## Data handling and confirmation
Where available, lower-timeframe OHLCV data is used to improve the allocation of volume within higher-timeframe chart candles.
When the requested lower-timeframe sample is unavailable or insufficient for the selected calculation, the script can use its documented fallback calculation instead of presenting an incomplete lower-timeframe profile as if it were complete.
Liquidity structures are based on confirmed pivot events.
Because a pivot requires subsequent bars for confirmation, a newly confirmed liquidity structure can appear later than the historical bar on which the pivot itself occurred.
The script does not interpret this confirmation delay as advance knowledge.
Developing profiles can change as additional data arrives.
Visible Range profiles can also change when the chart viewport changes.
These behaviors are inherent to dynamic profile calculations and should not be interpreted as historical trade signals being rewritten.
---
## Originality and design rationale
The script uses established analytical concepts such as Volume Profile, POC, Value Area, pivots, ATR normalization, and liquidity terminology.
It does not claim that those individual concepts are proprietary.
The distinctive functionality of this implementation is their integration into a unified state-based analytical system.
Instead of independently displaying several unrelated indicators, EVA:
1. builds a common price-row volume model;
2. derives POC and Value Area from that same distribution;
3. identifies local HVN/LVN structure within the profile;
4. estimates directional volume from lower-timeframe data where available;
5. independently confirms comparable pivot structures;
6. applies volatility-, geometry-, and participation-based filtering to those structures;
7. maintains lifecycle states for active liquidity pools;
8. relates nearby volume and liquidity structures to current price using a common dashboard and normalized distance model;
9. provides explicit fallback behavior when detailed source data is unavailable.
The purpose of the integration is to provide one coherent representation of **auction value, relative participation, low-volume structure, and unresolved price-based liquidity** rather than a collection of independent signals.
---
## Why the source code is protected
The source code is protected to preserve the implementation of the script's integrated profile construction, adaptive parameter logic, node-classification methods, liquidity-quality filtering, state transitions, data-fallback handling, and visualization architecture.
Closed-source visibility is not intended to prevent users from understanding the indicator's behavior.
This description therefore documents the script's purpose, inputs, main calculations, interpretation, data limitations, and expected dynamic behavior without exposing implementation-specific formulas and thresholds.
---
## Important limitations
Users should understand the following limitations before using the indicator:
* The script only has access to data supplied to Pine Script by TradingView and the active symbol's data provider.
* Volume characteristics differ between markets and symbols.
* On some Forex instruments, the available volume can represent tick volume rather than centralized exchange volume.
* The script does not have access to a complete historical exchange order book.
* It does not know the location of actual individual traders' stop orders.
* BSL and SSL are price-structure models, not observations of hidden orders.
* Directional volume is derived from available candle data and is not equivalent to true exchange bid/ask footprint delta.
* Confirmed pivots necessarily introduce confirmation delay.
* Visible Range calculations can change when the chart viewport changes.
* Developing profiles can change as new bars or intrabars become available.
* HVNs, LVNs, POC, VAH, VAL, BSL, and SSL do not predict future price behavior.
* No individual component should be interpreted as a guaranteed support, resistance, breakout, reversal, entry, or target.
* Different symbols, sessions, timeframes, and data feeds can produce materially different profile structures.
---
## Intended use
EVA is intended as a **market-reading and contextual-analysis tool**.
A typical workflow is:
1. identify the current Value Area and POC;
2. inspect the shape of the volume distribution;
3. locate nearby HVN and LVN structures;
4. identify confirmed active BSL and SSL structures;
5. compare those structures with current price and volatility;
6. observe subsequent price and volume behavior;
7. perform an independent trade and risk assessment.
The indicator deliberately does not convert this information into automatic LONG or SHORT instructions.
---
## Risk disclosure
This script is an analytical indicator and does not execute orders.
It does not provide financial advice, guarantee trading outcomes, or predict future market behavior.
Historical structures and previous market reactions do not establish how price will behave in the future.
Users remain responsible for independent analysis, position sizing, execution decisions, and risk management.
Индикатор

ADX / DMI(+)(-) TRENDICATOR## Draft Description
**ADX / DMI(+)(-) TRENDICATOR** is a responsive trend-strength and directional-momentum indicator designed to complement an **8 EMA / 20 EMA trading system**.
It combines:
- **ADX** to measure trend strength
- **DI+** to measure bullish directional pressure
- **DI−** to measure bearish directional pressure
- **20 and 40 ADX levels** to identify developing and strong trends
- **Angel Crosses** when DI+ crosses above DI−
- **Death Crosses** when DI− crosses above DI+
- Confirmed-candle alerts designed to avoid intrabar repainting
The default calculation settings use an **8-period DI length** and **8-period ADX smoothing** for a faster response to recent price candles. All calculation settings remain adjustable for different markets and timeframes.
The indicator includes customizable:
- ADX, DI+, and DI− visibility
- ADX and DI line widths
- Line, stepline, and circle plot styles
- Indicator colors
- Horizontal level visibility and styles
- ADX alert threshold
- Directional DI fill
Use ADX to determine whether a market is trending, then use DI+ and DI− to identify the dominant directional pressure. For example, a bullish EMA alignment combined with DI+ above DI− and ADX above 20 may indicate strengthening bullish momentum.
## How It Differs From Typical ADX/DMI Indicators
### 1. Confirmed-candle behavior
Many indicators react to changing intrabar values, causing temporary crosses or signals that can disappear before the candle closes. This indicator commits ADX, DI+, and DI− values only after candle confirmation, helping prevent intrabar signal repainting.
### 2. Designed for faster EMA-based systems
The default **8/8 settings** are intended as a responsive starting point for an **8 EMA / 20 EMA trend system**, rather than relying exclusively on the traditional slower 14/14 settings.
### 3. Clearer trend-strength framework
The fixed **20 and 40 levels** provide a simple visual framework:
- Below 20: weak or ranging conditions
- Above 20: trend development or moderate strength
- Above 40: strong trend conditions
### 4. More complete customization
Instead of only changing colors, users can control visibility, line widths, plot styles, level styles, and directional fills directly from the settings panel.
### 5. Expanded alert system
The indicator includes confirmed alerts for:
- Angel Crosses
- Death Crosses
- ADX crossing above or below 20
- ADX crossing above or below 40
- ADX crossing the custom alert threshold
### 6. Direction and strength are separated
Unlike systems that treat ADX as a buy or sell signal, this indicator keeps the concepts separate:
- **ADX = strength**
- **DI+ / DI− = direction**
- **8 EMA / 20 EMA = trend structure**
This helps reduce the common mistake of interpreting a rising ADX alone as a bullish signal. Индикатор

iNaka 3-Bar SequenceiNaka 3-Bar Sequence marks every place a three-bar candlestick sequence that YOU define completes. You set what the 1st, 2nd and 3rd bar must each be - Bull Bar, Bear Bar, Hammer, Shooting Star, Doji, or Any Bar for "I do not care what shape this one is" - and the script marks the bar that finishes that sequence. Around it sit six optional gates that decide whether a completed sequence counts here.
Two things here are uncommon, and they are the reason it exists. The sequence is defined ACROSS ALL THREE POSITIONS independently, with an Any Bar wildcard on each, so the same script expresses a two-bar pair, a three-bar reversal or a single candlestick without changing anything but the dropdowns. And the RSI test is a SEPARATE BAND PER POSITION rather than one reading at the signal bar - momentum is checked as a shape running through the sequence, not as a threshold at the end of it.
WHY THIS IS ONE TOOL AND NOT A PILE OF INDICATORS
The three-bar sequence is the only thing the six gates can fire. Bollinger Bands, the two moving averages, RSI, the price window and the time window produce no signal of their own: none of them plots a cross, an arrow or an alert, and none of them can trigger anything by itself. They are AND-gates on the same event, and each answers a different question about the SAME three bars:
- RSI, read separately at each of the three bar positions: what momentum was doing THROUGH the sequence. This is not "RSI is overbought" - it is a band per bar, so you can say "already extended two bars ago, more extended one bar ago, still up here" and reject the same candlestick shape when it appears with flat momentum.
- Bollinger band width: was the market wide enough for a three-bar sequence to mean anything. The same three candles inside a dead flat band are noise.
- Bollinger band touch: did the sequence complete AT an extreme rather than in the middle of the range.
- Fast and slow moving average: did it complete with the prevailing trend or against it.
- Price window: is price in the area you are willing to trade at all.
- Time window: is the bar inside the date range you are testing.
Every gate is off by default, so the script starts as a plain pattern detector and you add context one gate at a time. That is the design: a candlestick shape is not a setup until you have said where and when it counts, and each gate is one clause of that sentence.
WHAT IT DRAWS
- A red triangle above every bar that completes the sequence, plus a green background tint on that bar.
- A green numbered label above the bar each time an alert is allowed through. The number is a running count of alerts on the chart. With Silent Minutes left at 0 every detection is numbered.
- A red numbered label below the bar where a Silent-Minutes mute window ended, carrying the number of the alert that started it - so a muted stretch reads as a matched green/red pair.
- Optionally the Bollinger Bands, the two moving averages, and the New High / New Low lines. All three are off by default. Drawing the bands or the moving averages changes nothing at all; the New High / New Low toggle also arms that pair of alerts, which is described in its own section below.
HOW A BAR IS CLASSIFIED
- Bull Bar: close above open, with an optional minimum body size in POINTS (1 point = 1 tick, so the value follows the feed's precision: on a 2-decimal XAUUSD feed 100 points = $1.00, on a 3-decimal one 1000 points = $1.00). Bear Bar is the mirror.
- Hammer: lower shadow longer than Hammer Shadow % of the bar's high-low range, upper shadow no more than (1 - Hammer Body %) of it, and body no more than Hammer Body % of it.
- Shooting Star: the same test with the shadows swapped, using its own body and shadow percentages.
- Doji: body no more than Doji Body % of the range.
- Any Bar: no bar-type constraint at this position. Its RSI band and bar-comparison rule, if you enabled them, still apply.
HOW THE SEQUENCE IS TESTED
The 1st bar is two bars back, the 2nd is one bar back, and the 3rd is the current bar. All three are tested on every bar, so the sequence is reported the moment its last bar completes it. On top of the type test, two optional rules can be attached:
- Bar Comparison, separately for the 2nd and the 3rd bar: require that bar's close to be higher or lower than the open, high, low or close of a bar a chosen number of bars before it. This is how you turn "Bull, Bull, Shooting Star" into "Bull, Bull that closed above the bar before it, Shooting Star".
- The RSI band for that position, if RSI detection is on.
THREE THINGS THAT WILL SURPRISE YOU IF NOBODY SAYS THEM
1. Any Bar switches off the bar-TYPE test for that position and nothing else. Its RSI band and its Bar Comparison rule, if you enabled them, still apply. That is the point: "any shape here, but momentum had to be in this range" is a setup you can actually express.
2. If you tick both Near Upper BB and Near Lower BB, Near Upper wins and Near Lower is ignored. The same applies to Detect Above MA and Detect Below MA: ticking both is treated as Above.
3. Use MA Detection with NEITHER Above nor Below ticked blocks every signal. That is deliberate rather than an oversight - the gate is on and you have not told it which side - but it looks like the script has stopped working, so it is worth knowing.
SETTINGS
Sequence - the master switch and the three bar types. Bar Definitions - what each type means: minimum bull/bear body in points, and the body and shadow percentages for Hammer, Shooting Star and Doji. Bar Comparison - the optional higher/lower rules for the 2nd and 3rd bars. Momentum (RSI) - one RSI length, then a min/max band for each of the three positions. Bollinger Context - length, basis MA type, source, standard deviation; whether to draw the bands; the width filter in points; and the Near Upper / Near Lower band-touch gate. Trend (Moving Averages) - fast and slow type and length, which side to require, and whether to draw them. Price & Time Window - an absolute price range and a date range. Note the price range defaults to 0-100, which blocks everything on any instrument priced above 100, so set it before switching it on. New High / New Low - a separate pair of alerts, described below. Alerts & Display - the triangle and highlight toggles and their colours, Silent Minutes, and the numbered markers.
NEW HIGH / NEW LOW - READ WHAT IT ACTUALLY TESTS
This is an independent pair of alerts, not part of the sequence and not a gate on it. New High fires when the close is at or above the highest high of the last N bars including the current one. Because a bar's close can never exceed its own high, that can only be true when the bar closes exactly at its high AND that high is the highest of the window. It is therefore a good deal stricter than "price made a new high", and on most instruments it fires rarely. New Low is the mirror.
Why it ships in this script rather than as a separate one: the sequence engine describes SHAPES, and this is the one piece of context a shape cannot express - the moment price closes at the extreme of the last N bars. It shares the same Silent Minutes throttle and the same numbered labels, so one alert stream covers both, and a sequence alert on the same bar takes precedence over it. Leave Use New High / New Low switched off and it draws nothing and fires nothing.
SILENT MINUTES
After an alert is allowed through, all further alerts from the script are suppressed for this many minutes. Detection is never suppressed: the triangles and the highlight keep appearing, so the chart still shows you everything that happened while the alerts were muted. 0 disables it.
HOW TO USE IT
- Start with the pattern alone, every gate off, on the timeframe you actually trade. Find out how often your shape occurs before you start filtering it.
- Add ONE gate at a time and watch what it removes. If a gate removes nothing, it is not doing work; if it removes everything, it is the wrong gate for that market.
- Add the RSI bands last, and set them from what you observe on the chart rather than from the usual 70/30 habits. The three bands are a shape, not a threshold.
- If you use this for alerts on a fast timeframe, set Silent Minutes rather than tightening the pattern: you keep seeing every occurrence on the chart and stop getting told about each one.
LIMITATIONS, WHICH YOU SHOULD READ BEFORE USING IT
- The 3rd bar of the sequence is the CURRENT bar. The triangle, the background tint and the alert condition are evaluated on a bar that is still forming, so they can appear and disappear until it closes. Closed bars never change. Set every alert to "Once Per Bar Close". The numbered labels are drawn only on confirmed bars and never repaint. The New High / New Low lines, if you switch them on, also move while the current bar forms.
- Apart from the RSI bands, which are read at each bar's own position, the gates read the CURRENT bar's state. The band-touch gate compares all three bars against the current bar's Bollinger Bands, and the band-width, MA, price and time gates are all evaluated on the bar that completes the sequence.
- Candlestick classification is threshold arithmetic on one bar's four prices. It has no notion of context, and the same shape on a 1-minute chart and a daily chart is not the same event.
- Only the most recent 500 numbered labels are kept. Scroll back far enough and the older ones have been deleted; the triangles and the highlight are not affected and go back as far as the chart data.
- The default percentages for Hammer, Shooting Star and Doji are conventional starting values, not optimised or validated ones. Every instrument has its own shadow distribution and you should expect to change them.
- This is a detection tool. It does not generate entries or exits, does not size or manage a position, and makes no claim about profitability.
ALERTS
Three conditions: "3-Bar Sequence Detected", "New High" and "New Low". All three respect Silent Minutes. Set them to "Once Per Bar Close".
The chart above is not on default settings. The sequence is set to 1st Bar = Bear Bar, 2nd Bar = Bear Bar, 3rd Bar = Bull Bar. Use Bar Comparison for 3rd Bar is on, so the closing bar must also close above the OPEN of the first bar of the sequence (Comparison Type = Higher, Compare Against = Open, Lookback Period = 2). Use RSI Detection is on with a different band at each position - 1st Bar 1-30, 2nd Bar 1-40, 3rd Bar 1-50. Read together that is: two down bars completing from deeply oversold, reclaimed by an up bar that closes back above where the move began, with the momentum requirement widening one step at a time across the three bars. Everything else is at its default.
Published open-source under the Mozilla Public License 2.0. Индикатор

The Trap IndicatorThe Trap Indicator
WHAT IT IS
The Trap Indicator is a structure-based tool that automatically detects and marks a specific market sequence known as "the trap": a Change of Character (CHoCH) that catches one side of the market off guard, followed by a Break of Structure (BOS) that catches the opposite side, before price turns to sweep the liquidity left behind by both groups. Instead of drawing every structure break on the chart, it isolates this particular chained sequence and highlights only the CHoCH, the BOS, and the liquidity pool that sits between them.
WHAT IT IS BASED ON
The indicator is built on core Smart Money Concepts (SMC) / ICT-style ideas: market structure shifts (CHoCH and BOS), and liquidity resting above and below swing points as pools of stop orders that price tends to gravitate toward. The specific sequence it looks for is a practical extension of those building blocks: a structure break in one direction traps traders who enter on it, the market then reverses and breaks structure in the other direction, trapping a second, opposite group, and only after that combined liquidity has been swept does the underlying move tend to unfold with less resistance. The individual concepts (CHoCH, BOS, liquidity) are standard SMC/ICT vocabulary; the way they are chained together here into one tracked pattern is this indicator's own interpretation of that idea.
WHAT IT IS MADE OF
The indicator works from three consecutive swing points, labeled A, B and C:
- Swing A: a confirmed pivot (high or low) taken as the starting reference.
- Swing B: the swing right after A, in the opposite direction.
- Swing C: the swing right after B, in the same direction as A, but going further than A (a lower low for a bullish resolution, a higher high for a bearish resolution). This is what confirms the CHoCH — structure breaking against the initial A-to-B move, trapping whoever entered on it.
From there:
- BOS line: plotted when price closes back beyond swing B, confirming a Break of Structure in the opposite direction and trapping a second group of traders who act on that break.
- Rebound Zone: a box drawn across the price range between swings A and C — the pool of liquidity left behind by both trapped groups. The box grows bar by bar for a set number of bars after the BOS confirms, then disappears automatically, leaving only the CHoCH and BOS marks on the chart.
Swing detection uses standard pivot highs/lows, with an optional ATR-based minimum-amplitude filter to ignore minor, noise-level swings.
HOW TO USE IT
Add the indicator to any symbol and timeframe. When a valid CHoCH forms, an orange line appears at the level that was broken, labeled "CHoCH." If price then breaks structure the other way, a second line (green for a bullish resolution, red for a bearish one) appears at that level, labeled "BOS," together with the Rebound Zone box marking the liquidity range between swings A and C. That box is the area to watch: it represents the combined liquidity from both trapped groups, which price often revisits before the larger move plays out. Once the configured number of bars has passed, the box disappears on its own, while the CHoCH and BOS lines remain as a permanent record of the structure shift.
Settings worth adjusting:
- Pivot lookback/lookahead and the amplitude filter control how sensitive swing detection is — lower values catch more (and smaller) swings, higher values focus on more significant structure.
- Rebound zone duration (bars) sets how long the liquidity box stays visible before it is removed.
- Bullish/bearish resolutions can be toggled independently, and all colors, line width and label size are configurable.
This indicator only marks structure — it does not plot entries, targets, or stop levels, and it does not predict that price will necessarily reverse inside the Rebound Zone. It is meant to help visualize where this specific liquidity-trap sequence is forming, so it can be combined with the trader's own confirmation (price action, volume, or other tools) before making any decision. It is provided for educational and analytical purposes only and does not constitute financial advice. Индикатор

Volume Tide [JOAT]Reads participation like an ocean tide — from drained to institutional surge — and carves volume-weighted zones during the bursts.
◆ WHAT IT IS
Volume Tide reframes volume as a tide : it measures how strongly current participation is running against its own long-term baseline and classifies the market into four intuitive states. It is a pure market-context tool — it maps where real activity is entering the market and builds structure from it. It does not print buy/sell signals.
This is 100% original code, written from scratch. It is not a repackaged volume oscillator.
◆ HOW IT WORKS
1. The tide ratio. A short-term volume average is divided by a long-term baseline. This ratio — incoming wave versus sea level — tells you whether participation is expanding or draining, independent of the raw volume scale of the symbol.
2. Four tide states. The ratio is banded into:
• EBB — participation drained out
• RISING — filling back up
• FLOOD — active participation
• SURGE — institutional-scale bursts
All four are painted as a seamless aquatic gradient in the lower pane.
3. Tide pools. When a SURGE begins, the tool carves a tide pool onto the price chart across the traded range. As price continues to trade inside that pool, it accumulates volume by price overlap and computes:
• a volume-weighted anchor line (a natural magnet level), and
• a live buy/sell pressure split with a total-volume readout.
◆ WHAT YOU SEE
• A gradient tide histogram with Ebb / Flood / Surge threshold guides
• Tide pools on the price chart during surges, each with a volume-weighted anchor and live buy/sell delta stats
• A resizable dashboard showing the tide state and direction (coming in / going out), the tide ratio with a wave meter, fast-versus-baseline volume, live pool count, the newest pool's volume and delta, and surge history
◆ HOW TO USE IT
• Use the tide state as a conviction filter : breakouts and trends that develop during FLOOD or SURGE have real participation behind them, while moves during EBB are thin and prone to reversal.
• The volume-weighted anchor inside a tide pool often acts as support/resistance when price returns to it.
• The buy/sell delta inside a pool shows which side did the heavy lifting during the surge.
• Works on all symbols and timeframes that provide volume.
◆ NOTES & LIMITATIONS
Volume Tide requires a genuine volume feed — on symbols without one the tide ratio is not meaningful. It describes participation conditions and structure; it is not financial advice and does not predict direction on its own. Use it alongside a directional method and your own risk management.
— made with passion by officialjackofalltrade
Индикатор

Absorption Bubbles [vault]Absorption Bubbles
Absorption Bubbles is a tool for spotting high volume absorption at swing highs and lows, showing where aggressive orders pushing into an extreme were absorbed before the move gives it away.
How it works
The script measures every candle's volume against its own standard deviation (Threshold STDEV Length), so thresholds adapt automatically to any instrument and timeframe instead of relying on fixed volume numbers. A bubble prints only when three conditions line up on the same candle: price makes a local swing high or low, the candle closes with a rejection wick at that extreme, and scaled volume clears the selected threshold multiplier. On top of that, volume below its moving average (Threshold EMA Length) never prints, which filters out low-activity noise by design.
Green bubbles under swing lows signal buyers absorbing sell pressure. Red bubbles above swing highs signal sellers absorbing the push up. Absorption at an extreme tells you where the fight happened — the move that follows is usually the confirmation.
Bubble tiers
- Small, Medium, and Large bubbles, each with its own independent toggle and threshold multiplier (default 2x / 3x / 4.5x)
- Bubble size scales with absorption intensity, so weak, moderate, and heavy prints are visually distinguishable at a glance
- Optional Strength Gradient Color keys the bubble color to absorption intensity instead of flat buy/sell colors
Additional settings
- Bubble Positions: right at the wick or slightly offset above/below the extreme
- Bubble Size: Compact, Normal, or Large display presets
- Appearance Delay: shifts the bubble by N candles for confirmation
- Show POC: draws a line at the absorption price that extends until the next print, usable as a level to trade back into
- Timeframe-Adjusted Settings: independent STDEV/EMA lengths and threshold multipliers for 5m, 15m, 1H, and 4H — the script switches automatically based on the chart timeframe
- Built-in alerts for buy-side and sell-side absorption
- Works on any timeframe and any instrument with volume data
Disclaimer:
This is a context tool, not a signal service. Nothing here constitutes financial advice. Индикатор

CRT Engine [vault]CRT Engine
CRT Engine is a complete Candle Range Theory toolkit built around one idea: the higher timeframe candle sets the range, the lower timeframe shows you how that range gets manipulated and delivered. The script tracks the HTF range, detects sweeps of the previous high or low, confirms the shift with an order block or a CISD, and follows the model until it either reaches its target or gets invalidated. Around that core it adds HTF fair value gaps, previous period highs and lows, SMT divergence, multi timeframe moving averages and a compact dashboard, all sharing one color palette so the chart stays readable.
HOW THE CRT MODEL WORKS
Every new HTF candle opens a new range. Its high and low are tracked live on the chart timeframe. When the HTF candle closes, the script compares it to the previous HTF candle:
• Sweep of the high: the candle traded above the previous high and closed back below it. Bias flips to bearish, the previous low becomes the target.
• Sweep of the low: the candle traded below the previous low and closed back above it. Bias flips to bullish, the previous high becomes the target.
• Double purge: both sides were taken in the same candle. Bias is decided by the candle direction (bullish close = bullish bias) and the sweep is labeled D-Purge.
From that point the model is Active. It becomes Success when price reaches the target side of the previous range and Invalidated when price breaks back through the swept level. Status is reflected on the range box border and on the HTF candle panel.
MODEL 1 VS MODEL 2
Model 1 is the faster version. The sweep is detected in real time on the chart timeframe, not only at HTF close. As soon as price breaches the previous high or low and closes back inside, the sweep line, the target line and an order block line are drawn. The order block is the low of the candle that set the swept high (or the high of the candle that set the swept low). If price later trades through the sweep level, everything is cleared and the model resets.
Model 2 is the confirmation version. After the sweep candle closes, the script looks back through the consecutive same-direction candles that built the manipulation leg and stores the opening price of that series. A CISD (change in state of delivery) prints when a chart timeframe candle closes through that level. The sweep candle is labeled C1 and the CISD candle is labeled C3, matching the classic three candle CRT structure.
A bias filter lets you run the model long only, short only, or neutral.
TIMEFRAME PAIRING
Auto mode picks the HTF from the chart timeframe: 1m to 15m, 3m to 30m, 5m to 1H, 15m to 4H, 1H to 1D, 4H to 1W, 1D to 1M. Presets are available for 1H-1D, 4H-1W, 1D-1M and 1W-3M, and a custom HTF can be set for anything else. The script validates that the HTF is higher than the chart timeframe and stays idle otherwise.
HTF CANDLE PANEL
On the right side of the chart the script draws the last few HTF candles as mini candles with wicks. Above them sits the HTF label with a live countdown to the next close, below them the current model bias. Sweeps between panel candles are marked with a small line and a sweep label, and the candle borders change color with the model status (neutral while active, bull color on success, bear color on invalidation). Offset, spacing, width and candle count are adjustable.
HTF FAIR VALUE GAPS
Fair value gaps are detected on a higher timeframe, either automatically chosen from the chart timeframe or set manually. Each gap is drawn as a box that starts at the close of the first candle of the three candle pattern, which is where the imbalance actually forms, and extends to the right with an optional midline and a label showing the HTF. A gap is removed once the HTF candle closes through it. You can cap how many gaps stay on the chart.
HTF LEVELS
Previous day, week, month, quarter and year highs and lows, with the previous open as an optional third line. Lines start at the bar where the level was formed and stop exactly where price first touches them, so a mitigated level is still visible but no longer projected forward. Labels use the PDH / PDL / PWH / PWL convention. Line style, width and label size are shared across all timeframes.
SMT DIVERGENCE
The script compares the chart symbol with a correlated instrument and flags divergence in two ways: at HTF close (one symbol made a higher high while the other did not, with a matching candle direction) and on chart timeframe pivots (a new higher high on the chart while the paired symbol printed a lower high, or the mirror for lows). Divergence is drawn as a line between the two swing points with the pair name as a label. Auto pairing covers index futures (NQ, ES, YM, RTY and their micros), CFD indices, major and cross forex pairs, currency futures, gold, silver, oil products and BTC/ETH. A manual pair can be set for anything else. Optionally only the latest bullish and bearish SMT are kept.
MOVING AVERAGES
Five configurable moving averages (SMA, EMA, RMA, WMA, HMA, VWMA), each with its own length and timeframe. Lines are hidden by default and can be toggled with one switch. When enabled, all lines automatically hide once the chart timeframe is higher than the highest MA timeframe in use, so a 15m EMA never gets drawn on a daily chart. The dashboard trend rows keep reading the first three MAs whether the lines are visible or not.
DASHBOARD
A small table showing the chart and HTF pairing, the active model and bias filter, the current bias, an aggregated MA trend (bullish, bearish or mixed) with per-MA arrows, the SMT pair in use and the date. Position and text size are configurable.
COLOR SCHEMES
Seven schemes, each defining the bull, bear, neutral, text and accent colors that every element on the chart uses:
• Vault Dark: teal and rose on a dark background, the default
• Light: near black text and lines with blue and red accents, made for white charts
• Midnight: blue and pink
• Neon: bright green and magenta
• Ember: orange and red
• Mono: greyscale
• Custom: set all five colors yourself
Box transparency is controlled with a single slider.
ALERTS
• Model formed: a new HTF candle closed and the model state was evaluated
• Sweep: a sweep of the previous high or low was detected
• Double purge: both sides of the previous range were taken
• Model success: the target was reached
• Model invalidated: the sweep level was broken
NOTES
The model logic does not repaint. HTF data is requested without lookahead and the Model 1 real time sweep is confirmed on candle close. Drawings such as the panel, the labels and the level extensions are repositioned on the last bar for display only.
The script is a context and structure tool. It does not generate trade signals and nothing in it should be treated as financial advice.
Индикатор

Gradient Ribbon | EMA Ribbon Slope-Acceleration SystemMost EMA ribbon strategies only check if the moving averages are stacked in order — but a ribbon can stay stacked long after the actual trend has run out of steam. Gradient Ribbon looks past the stacking and measures the slope of each EMA directly, only signaling when the ribbon is actively accelerating apart. It catches trend ignition early and flags deceleration before the EMAs ever cross.
Features
5-EMA ribbon (8/13/21/34/55) with per-line slope calculated as % change over a configurable lookback
Fan-open detection: all slopes must be same-direction and increasing in magnitude from slowest to fastest EMA — true acceleration, not just alignment
Long and short logic, fully symmetrical
RSI confirmation filter tuned to each direction, avoiding both weak momentum and overbought/oversold extremes
Volume filter requiring above-average participation, so fans opening on thin volume get filtered out
ATR-based stop loss with equity-percentage position sizing — size automatically adapts to current volatility
Fixed R-multiple take profit
Compression-based exit: closes the trade when the fan starts flattening back toward parallel, ahead of an actual EMA cross
Gradient-intensity fill between the fastest and slowest EMA — barely tinted when flat, vivid teal (bullish) or fuchsia (bearish) when fanning hard, so acceleration is visible at a glance
Entry/exit background highlights for quick visual confirmation on the chart
Explanation
The core idea is that trend strength isn't binary — it has an angle. A ribbon that's flat-stacked from an old move looks the same as one that just started accelerating, if all you check is order. By measuring each EMA's slope and requiring the spread between fastest and slowest slope to be expanding, the script isolates the moments where a trend is genuinely gaining momentum, not just persisting. Exits work the same way in reverse — instead of waiting for a lagging crossover, the script reads the fan closing back up as an early deceleration signal.
Tips
The fanEnterThresh value is highly instrument- and timeframe-dependent. Start with the default and walk it up/down while backtesting rather than trusting it blindly.
Shorter slopeLookback reacts faster to fresh acceleration but is noisier on choppy instruments; lengthen it for smoother, higher-timeframe use.
On low-liquidity instruments, consider loosening or disabling the volume filter — thin markets can have naturally erratic volume that isn't meaningful.
Watch the gradient fill even without a signal — a fan that's steadily brightening (even pre-threshold) is often a useful early heads-up.
Pair with a higher-timeframe trend filter if you want to trade only in the direction of the larger structure; this script is direction-agnostic by design.
Стратегия

Prism [vault]Prism
Prism takes eight independent reads of the market and fuses them into one confluence score. Instead of watching ten indicators and guessing which one matters, you get a single dashboard that tells you what the trend is, who is in control, where the liquidity sits and whether enough conditions line up to justify a trade.
How it works
Eight engines run on every bar. Each one votes bullish, bearish or neutral. The votes are counted and a signal fires only when one side clearly outweighs the other and the total score clears your threshold.
1. Momentum: Laguerre RSI, Fisher Transform, TSI, MFI, VFI, OBV and CMF blended into one normalized Momentum Index. Positive and rising = bullish vote.
2. Structure: supply and demand zones from volume-confirmed pivots, fair value gaps, mitigation tracking (wick, close or average fill). Price inside demand or above an FVG = bullish vote.
3. Wave: ALMA-smoothed momentum against five EMA basis levels. All basis levels aligned or momentum beyond 2 standard deviations = vote. Spread shows expansion or exhaustion.
4. Liquidity: buy side (BSL) and sell side (SSL) levels from swing points. A sweep is a wick through the level with a close back inside. Bullish sweep = bullish vote.
5. Trend matrix: Hull MA, SuperTrend, ADX, EMA 9/21/50 and SMA 100/200 combined into five regimes from Strong Bear to Strong Bull. Counter-trend setups (CTR dots) flag momentum turning against a weak trend at the Hull MA.
6. Divergence: price pivots checked against RSI, MACD, TSI and Stochastic. Regular divergence (solid line) needs at least two oscillators to agree. Hidden divergence drawn dashed.
7. Volatility: Bollinger inside Keltner = compression. Breakout direction on release becomes a vote. Volatility percentile ranks the regime as Low, Normal or High.
8. Flow: CMF, MFI, OBV and A/D tracked as a Flow Index with five phases from Strong Distribution to Strong Accumulation. Also feeds a sentiment gauge (Fear / Greed).
Two extra votes come from value (discount or premium relative to the 100-bar range) and volume surges on directional candles.
Signals
LONG fires when bullish votes reach the minimum score and beat bearish votes by at least the set margin, with price above the Hull MA. SHORT is the mirror. Strength: Weak (under 4), Moderate (4), Strong (5), Very Strong (6 to 7), Extreme (8+). A minimum bar gap between signals prevents clustering.
On the chart
- Hull MA colored by regime, SuperTrend band, gradient fill between them that gets denser as ADX rises
- SUP / DEM boxes, FVG boxes, BSL / SSL dashed levels
- Equilibrium line with discount and premium markers
- Optional candle coloring by flow phase or momentum
- Background tint for strong trends and compression
- Volume surge squares on the bottom
Dashboard
Three blocks: Context (trend, ADX, flow, volatility, value, structure), Engines (momentum, Laguerre, Fisher, CMF, MFI, wave, divergence, liquidity) and Confluence (score, sentiment). Live signal and strength sit in the header. Four color schemes, three text sizes, four positions.
How to trade it
1. Read Context first. Sideways plus Compression means wait for the breakout, do not chase.
2. Look for alignment: bullish trend, accumulation, discount value, price at demand.
3. Take LONG / SHORT labels only at Strong or better, and only in the direction of the higher timeframe.
4. Enter at the zone, stop beyond it, so risk is defined by structure not by feel.
5. Exit on the opposite signal or when Flow flips phase against you.
Alerts
Buy, Sell, Strong Bull, Strong Bear, Squeeze Breakout, Bullish Divergence, Bearish Divergence, Strong Accumulation, Strong Distribution, Bullish Sweep, Bearish Sweep, Extreme Greed, Extreme Fear.
Limits
Best on liquid instruments with real volume. On symbols without volume the flow and volume votes stay neutral, so max score drops. Signals describe current conditions, they do not predict. Use a stop every time.
Disclaimer
Educational tool, not financial advice. Trading carries substantial risk. Past signals do not guarantee future results. You are responsible for your own decisions. Индикатор

ICT Everything v2ICT Everything v2 is an open-source intraday charting toolkit for ICT-style time, liquidity, and displacement analysis.
The script combines related tools in one chart workflow. Sessions identify relevant trading windows, opening prices and prior-period levels provide liquidity context, gaps mark displacement areas, and SMT compares confirmed swings with a correlated market.
What it shows
London, New York, London Close, afternoon, Asia, and custom sessions
Midnight, New York, equities, afternoon, weekly, and monthly opening prices
CBDR, FLOUT, and Asia ranges with configurable standard-deviation extensions
Fair Value Gaps with consequent encroachment and fill handling
New Week and New Day Opening Gaps with optional midpoint lines
Previous week and previous month highs and lows
Confirmed-pivot SMT divergence against a comparison symbol
Day separators, day labels, session boxes, and selected confirmed-bar alerts
Why these tools are combined
The components share the same session and timezone context. This avoids building a chart from several unrelated scripts that may use different boundary definitions.
Sessions establish when activity occurs. Opening prices and prior-period levels mark reference liquidity. FVG, NWOG, and NDOG objects show displacement and reopening gaps. SMT adds relative-strength context by comparing the chart symbol with a correlated instrument over the same swing window.
This is a charting toolkit, not an entry system or strategy.
How to use it
The default configuration is intended for intraday charts. The script hides its drawings above a configurable ceiling, which defaults to 31 minutes.
The default timezone is New York and follows daylight-saving time automatically. Fixed UTC offsets are also available.
Most added modules are disabled by default. Enable only the features needed for the current analysis. Weekly and monthly opens, prior-period levels, FVGs, opening gaps, SMT, and session boxes can be enabled independently.
For SMT, select a positively correlated comparison symbol with similar trading hours. For example, NQ and ES generally provide cleaner comparisons than instruments with unrelated sessions.
Alerts use confirmed bars. TradingView alerts store the script version and settings that existed when the alert was created, so alerts should be recreated after a script update.
Boundary behavior
Continuous futures use locally captured evening-session boundaries for weekly and monthly opens. Crypto uses the standard UTC calendar boundaries: Monday 00:00 UTC for the week and the first day at 00:00 UTC for the month.
Broker sessions can differ, so users should verify opening levels against the instrument and feed they trade.
Meaningful changes in v2
The retained session and range foundation from the original script is credited below. V2 materially changes and extends that foundation with:
Pine Script v6 support
DST-aware New York session handling and additional timezone options
Reworked weekly and monthly boundaries for futures and crypto
Mechanical FVG, NWOG, and NDOG modules with bounded object retention
Previous week and month high/low tracking
Confirmed-pivot SMT using a same-window comparison method
Session-box and high-low rendering modes
Independent deviation counts for CBDR, FLOUT, and Asia
Confirmed-bar alerts for range breaks, gaps, and prior-period sweeps
Drawing cleanup and redraw changes that prevent stale objects and reduce unnecessary recalculation work
Open-source origin and credit
Based on ICT Everything by coldbrewrosh, formerly itsroshlol:
Contains code from ArdOfCrypto's ICT Index Futures Vertical Lines:
The original publication credited Shanxia as inspiration and thanked I_Am_ICT. Those acknowledgements are preserved.
This is an independently maintained derivative work. The credited authors do not endorse this publication. The source is published openly under the Mozilla Public License 2.0.
Limitations
This script does not predict market direction or promise trading performance. SMT depends on the selected comparison instrument and its available trading hours. Fixed-offset session choices do not adjust for daylight-saving time. Users remain responsible for confirming that the configured sessions match their market and data feed.
This publication is not affiliated with or endorsed by Inner Circle Trader, TradingView, or the credited authors. Индикатор

MYND Fractal Support/Resistance Density Map [v1.4]MYND Fractal Support/Resistance Density Map
A decayed, multi-scale support/resistance DENSITY map - not a single pivot-line tool. It detects swing highs/lows at 3 configurable pivot scales, scores every confirmed pivot into a rolling price-bin array (volume-weighted), and decays that score every bar so old, stale levels fade out instead of piling up forever. The Top-N highest-density bins are surfaced as ranked, cluster-merged S/R zones - with early-warning alerts, reject-vs-break classification across all tracked zones, an optional full heatmap view, on-chart labels, and now a dashboard that shows distance-to-#1-zone, the single nearest zone to price, and when a zone's density really represents several folded-together levels.
WHAT IT DOES
Three pivot scales (short/medium/long) independently detect confirmed swing highs and lows. Every confirmed pivot adds a weighted density score to whichever price bin it touches - longer, more significant scales contribute more, and a pivot's own relative volume scales its contribution further. All accumulated density decays by a fixed factor every bar, so a level that mattered years ago but hasn't been touched since gradually fades. Near-adjacent candidate bins fold into one merged zone rather than showing as near-duplicates. The highest-density bins are ranked and surfaced as the tool's Top-N zones.
HOW TO USE IT
Treat higher-density zones as levels more likely to produce SOME reaction - a bounce, a rejection, a pause - not as levels guaranteed to hold. Use the Approaching-Zone alerts (Zone #1-specific or the all-zone aggregate) as your cue to start watching closely, then read the Reject/Break tag once price actually resolves. Check the new Nearest Zone to Price row for what's immediately relevant right now, separate from which zone ranks #1 by density overall. Raise Zone Cluster Merge Distance if nearby zones keep reading as near-duplicates - and watch for the "merged Nx" tag as a reminder that a zone's density may represent several folded levels, not one. Raise Minimum Touches to Show if you only want to act on zones that have already proven themselves. Turn on HTF Confluence for extra cross-timeframe conviction, and the Density Heatmap to see the whole structure at a glance.
KEY FEATURES
A live dashboard showing each Top-N zone's price, density, freshness, merge status, and touch-threshold status, plus distance-to-#1-zone and the single nearest zone to price. On-chart zone price labels. Volume-weighted, cluster-merged density scoring. Fully adjustable zone line width/style/color (per rank), table border width/color, and heatmap color. Full cross-tool export for all 5 possible zones plus distance-to-#1-zone. 10 individual alerts plus 1 combo bundle.
SETTINGS WORTH TUNING FIRST
Per-Bar Decay Rate is the core dial on how fast old levels fade. Enable Volume-Weighted Density is on by default - turn off if a ticker's volume data is unreliable. Zone Cluster Merge Distance controls how aggressively nearby candidates get folded together (and how often you'll see a "merged Nx" tag). Minimum Touches to Show is 0 by default - raise it to filter out unproven levels. Enable HTF Confluence Check is off by default.
WHAT THIS TOOL DELIBERATELY DOES NOT DO
Density is a proxy for level significance, not a guarantee a zone will hold. HTF Confluence compares against the HTF's own recent swing high/low, not a second full density map - a disclosed simplification. The touch count keeps accumulating in the background regardless of the Minimum-Touch filter setting. Zone lines, labels, and the heatmap only reflect the most recent bar's selection, not a full historical record. The new merge-count and nearest-zone-to-price data are dashboard-only - not yet exposed via the Cross-Tool Signal Export plots.
ALERTS
10 individual alerts (Price Entered Top-N Zone, Price Exited All Top-N Zones, Top Zone Reshuffled, Price Approaching #1 Zone, Zone #1 Rejected/Bounce, Zone #1 Broken Through, Zone #1 Aligned with HTF Level, Any Zone Approaching, Any Zone Rejected, Any Zone Broken Through) plus 1 combo bundle (ALL Fractal S/R Signals).
FEEDBACK WELCOME
If you've tweaked a setting, found a combination with another indicator that works well, or have an idea for what would make this more useful, I'd genuinely like to hear about it - drop a comment below (it helps other users too), or send a direct message if you'd rather keep the details private.
This tool identifies patterns in past price and structure - it is not a guarantee of future performance. This tool is provided for informational and educational purposes and does not constitute financial advice. Trading involves risk; past performance and historical patterns do not guarantee future results. Индикатор

Overnight Range & Trend-Day Probability Overnight Range & Trend-Day Probability
Grades the coming cash session before it opens. It measures the overnight block, compares it to the instrument's average daily range, and answers one question: has today's expansion already happened overnight, or is it statistically still ahead?
The bias read
The overnight block runs from the Asia open to the cash open and freezes there. Its height is compared against the average daily range (ADR) to produce a trend-day grade:
A small overnight range relative to ADR means the day's expansion is statistically still ahead — graded HIGH.
A mid-sized overnight range grades MEDIUM.
A large overnight range means the move may have already been spent overnight, favouring range-bound or reversal conditions — graded LOW.
The grade always prints with the number that produced it, so the read is verifiable at a glance rather than a bare word. A directional lean accompanies it, taken from where price trades relative to the open anchors — all above reads bullish, all below reads bearish, split reads mixed, with the vote count shown. An optional modifier flags when the week has already consumed most of its average weekly range.
What it draws
The overnight range block — grows through the night, freezes at the cash open.
Open-anchor lines — Midnight Open, News Open, Cash Open — each on its own custom time, extending to the cash close.
AR projection lines — the anchor open ± ADR, with optional 1/3 and 2/3 ADR levels and optional ± AWR lines. The anchor is selectable: Midnight Open, Cash Open, or Asia Open.
An on-chart bias label with the full read in one line.
A compact table: the trend-day verdict first, then the lean, the overnight range, and the Asia share of the overnight block. Threshold arithmetic lives in the cell tooltips.
The chart carries one day at a time — the previous day's drawings clear the moment a new session begins.
Asia decomposition
The overnight block merges Asia, the dead zone, London, and pre-NY. This engine isolates the Asia kill zone portion and reports it as a share of the whole block, classified as Normal, Elevated, or Inverted against adjustable thresholds. An inverted reading — Asia doing the expansion leg instead of accumulating — is readable directly from the table. The verdict resolves at the cash-open freeze, since the share is undefined while Asia still is the whole block.
Settings
Every session time is a custom input: the overnight block bounds, each open anchor, the Asia kill zone clock, and four optional session range boxes (Asia, London KZ, dead zone, NY AM KZ) — each drawn only across its own session high-low with its name on top, never as a full-height background tint. All off by default, each with its own colour.
ADR and AWR lookbacks are adjustable.
The probability thresholds, the Asia decomposition thresholds, and the exhaustion alert level are all adjustable.
Alerts
Trend-day probability finalised at the cash-open freeze.
Price crossing the Midnight Open or the Cash Open.
Overnight range exhaustion against ADR.
All session logic runs on New York time with daylight saving handled automatically. Detection runs on confirmed bars only, so nothing repaints. Works across all instruments and timeframes — designed for price delivery analysis on MNQ, MES, MYM, XAU/USD, and related markets.
Disclaimer
This indicator is a chart analysis tool, not financial advice. It identifies price levels and statistical tendencies; it does not predict the market or generate trade signals. Always do your own analysis and manage your own risk. Индикатор

MYND Structure Shift v1.3MYND Structure Shift
A market-structure tool: HH/HL/LH/LL swing labeling, Break of Structure (BOS) and Change of Character (CHoCH) detection, and a liquidity-sweep engine that only confirms a reversal once a swept swing point is followed by a genuine displacement candle and a volume spike - now with the signal-suppressing alignment gate turned into an informational tag, a grace period for confirmations, and a base-rate tally so frequency is tunable with real data.
WHAT IT DOES
This indicator tracks market structure the way price actually prints it: every confirmed swing high/low is classified as a Higher High, Higher Low, Lower High, or Lower Low, and every break of a swing level is tagged either BOS (continuation) or CHoCH (a potential structural reversal). Separately, a liquidity-sweep engine watches for wicks that pierce a swing point and close back inside it, and only treats it as a real signal once validated by a strong-range, strong-close, high-volume displacement candle within a confirmation window.
HOW IT WORKS
Swing points confirm once enough bars have passed on both sides. A close-based break of the most recent swing level is BOS if it agrees with standing structure bias, CHoCH if it reverses it. Independently, a wick piercing a swing point and closing back inside it opens a confirmation window (extended once by the Grace Period if it would otherwise expire without Invalidating); only a subsequent displacement candle within that window turns the sweep into a Confirmed Reversal, which as of v1.3 fires regardless of Structure Bias by default.
KEY FEATURES
A live dashboard showing Structure Bias, Last Break Event, Sweep Status (with a grace-used indicator), Last Sweep Outcome, Last Signal Quality, the new Sweep Outcome Tally, Equal High/Low context, and HTF Bias/prior levels. A "(vs Structure)" tag on any confirmed reversal that runs counter to the structural bias. Independent label size/color controls. Invisible signal-export plots for wiring into other MYND tools.
HOW TO USE IT
Only act on the BUY/SELL Confirmed Reversal triangle - note whether it's tagged "vs Structure" (countertrend, weigh accordingly). If signals still feel rare, check the Sweep Outcome Tally: a lot of Expired suggests loosening the displacement/volume/window thresholds; a lot of Invalidated suggests this ticker/timeframe may not suit the tool's sweep-and-reverse premise as well as others would.
SETTINGS WORTH TUNING FIRST
Enable Confirmation Grace Period / Grace Extension Bars - gives pending sweeps more room; watch the Tally to see the effect. Require Confirmed Reversal to Align With Structure Bias (Blocking) - off by default now, only turn on if you specifically want countertrend reversals blocked outright. Enable Signal Cooldown, Filter Out Low-Quality Signals - the remaining quality/noise levers, unchanged from v1.2.
WHAT THIS TOOL DELIBERATELY DOES NOT DO
Order Block and Fair Value Gap zones remain purely visual. The Setup Quality Score is a heuristic, not a backtested probability. The Sweep Outcome Tally counts from whenever the indicator was added or its inputs last changed - it's not a fixed historical backtest total.
ALERTS
16 alerts total, unchanged from v1.1/v1.2 - v1.3 changed which signals reach those alerts (by removing the blocking gate), not the alert types themselves.
FEEDBACK WELCOME
If you've tweaked a setting, found a combination with another indicator that works well, or have an idea for what would make this more useful, I'd genuinely like to hear about it - drop a comment below (it helps other users too), or send a direct message if you'd rather keep the details private.
This tool identifies patterns in past price, volume, and structure - it is not a guarantee of future performance. This tool is provided for informational and educational purposes and does not constitute financial advice. Trading involves risk; past performance and historical patterns do not guarantee future results. Индикатор

NRTR Adaptive Trailing Reverse [MarkitTick]💡 An adaptive trailing-stop and reversal system built around the Nick Rypock Trailing Reverse (NRTR) algorithm, extended with a configurable smoothing engine, ADX confluence filtering, automatic risk-based trade level projection, and a live position-sizing dashboard. Rather than applying NRTR to raw closing price, this tool lets the trailing calculation run on top of one of eight selectable smoothing methods, giving traders control over how reactive or how filtered the underlying trend estimate is before the trailing stop is derived from it.
✨ Originality and Utility
The classic NRTR trailing stop is normally computed directly from price. This script decouples the "source" the trailing calculation reacts to from raw price by routing it through a selectable adaptive filter stage first — SMA, EMA, RMA, Double WMA, Triple VWMA, HMA, a custom LLAMA slope-projection filter, or a Kalman filter. This means the trailing envelope itself can be smoothed, decoupled from tick-level noise, or shaped to lag less than a conventional moving average, without changing the core NRTR ratchet-and-flip mechanic.
Beyond the trailing engine, the script closes the loop between "signal" and "trade management," which most trailing-stop tools leave to the user. Once a trend flip is confirmed, it automatically derives a stop-loss from the NRTR level itself and projects three risk-multiple take-profit targets, tracks whether each has been hit, calculates a suggested position size from a risk percentage or fixed-dollar risk model, and optionally suppresses new signals for a cooldown period after a stop-out. An ADX confluence filter can additionally require a minimum trend strength reading before a flip is treated as valid. The combination is justified because each component consumes the output of the one before it: the adaptive filter conditions the source, the NRTR logic converts that source into a trailing stop and flip signal, the ADX filter validates the flip's context, and the risk/sizing engine turns the validated flip into an actionable, fully quantified trade plan — a single coherent pipeline rather than an arbitrary bundling of unrelated indicators.
🔬 Methodology and Concepts
• The Adaptive Source Filter
Before any trailing-stop math happens, closing price is optionally passed through one of these transformations, selected from the "Adapt Filter" input:
SMA / EMA / RMA — standard moving averages, included as familiar baselines.
Double WMA — a Weighted Moving Average applied twice in succession (a WMA of a WMA), which produces a lower-lag response than a single WMA of the same length.
Triple VWMA — a Volume Weighted Moving Average cascaded three times, folding volume-weighting into a lower-lag smoothing chain.
HMA — the Hull Moving Average, using weighted-moving-average differencing to reduce lag relative to standard smoothing.
LLAMA — a proprietary two-part filter that combines a simple moving average of the source with a linear slope term measured over the same lookback (the rate of change between the current source value and the value from `length` bars ago, divided by `length`). The slope is scaled by half the filter length and added to the SMA, producing a trend-projected estimate that leans ahead of a plain average in the direction of the recent slope.
Kalman Filter — a lightweight recursive estimator that updates a running estimate of the "true" price using a prediction/correction cycle. It maintains an internal error estimate and a gain term derived from the ratio of process noise (set by the inverse of the filter length) to measurement noise, blending each new price observation into the estimate proportionally to that gain.
None — the trailing logic operates directly on closing price.
When "None" is selected, the tool behaves as a standard price-based NRTR. Any other selection substitutes that smoothed series as the "source" for every downstream calculation.
• NRTR Trailing Calculation
The script offers two modes for sizing the trailing offset, chosen via "NRTR Mode":
Percent — the offset is a fixed percentage of the (lagged) adaptive source value.
ATR — the offset is a multiple of the Average True Range over a configurable lookback, scaling the trailing distance to current volatility rather than a fixed percentage.
In an uptrend, the script tracks the highest adaptive-source value reached since the last flip (the "extreme") and subtracts the offset from it to produce a trailing level that can only rise or stay flat — never fall — while the trend persists. In a downtrend, the mirror logic tracks the lowest extreme and adds the offset, producing a level that can only fall or stay flat. A trend flip occurs the moment the prior bar's adaptive source closes beyond the trailing level: closing below it in an uptrend flips the state to a downtrend (and vice versa), at which point the extreme and trailing level reset and begin tracking in the new direction. Because the ratchet only ever tightens toward price, this produces the classic NRTR "stair-step" trailing behavior rather than a smooth curve.
• Confirmation and Non-Repainting Behavior
The trend-state comparison that triggers a flip always references the previous bar's confirmed adaptive-source value, and every alert condition is additionally gated behind `barstate.isconfirmed`. This means a signal only fires once its triggering bar has fully closed — the trailing level and trend state do not repaint once a bar is confirmed, and alerts cannot fire prematurely intrabar.
• ADX Confluence Filter
When enabled, a flip is only accepted as a valid trading signal if the prior bar's ADX reading (calculated over the same configurable length for both DI and ADX smoothing) is at or above the threshold input. This is intended to suppress flips that occur while the market lacks directional strength, where trailing-stop whipsaws are most common.
• Cooldown Guard
When enabled, a stop-loss hit on one side of the market starts a bar-count cooldown during which a new signal in that same direction is suppressed, intended to reduce immediate re-entry into a level that has just failed.
• Trade Level Projection and Position Sizing
On a valid signal, the entry is taken at the current close, the stop-loss is set to the NRTR trailing level at that moment, and the initial risk distance (entry-to-stop) is multiplied by three independently configurable multiples to project TP1, TP2, and TP3. Each target and the stop are tracked bar-by-bar for whether price has traded through them, updating their on-chart labels accordingly. A suggested position size is calculated from either a percentage of a user-defined account size or a fixed dollar risk amount, divided by the entry-to-stop distance in price, giving a size that risks a consistent dollar or percentage amount regardless of current volatility.
🎨 Visual Guide
NRTR Line — a grey step-line plotting the current trailing-stop level.
Heatmap Candles — the chart's candles are recolored using the Bull/Bear color inputs (teal/red by default) to reflect the current trend state directly on price, rather than requiring a separate indicator pane.
Cooldown Background — a shaded background tint appears while a directional cooldown is active after a stop-out, using the Cooldown BG color.
Trade Level Lines and Labels (on signal) — a solid red Stop Loss line, a dashed blue Entry line, and three dashed green Take Profit lines (TP1 lightest, TP3 most opaque) extend from the signal bar. Each carries a right-aligned label showing its exact price; once a target or stop is touched, its label updates in place to show the hit and the resulting percentage gain or loss from entry.
Risk/Reward Shading — a light red fill shades the zone between Entry and Stop Loss (the risk side), and a light green fill shades the zone between Entry and TP3 (the full reward side), giving an immediate visual sense of the trade's risk-to-reward geometry.
Dashboard Table — a corner-anchored panel (position configurable) summarizing, in real time: current trend direction, Lock status, the live NRTR level, active entry/stop/TP1 prices, the current ADX reading (colored by pass/fail against the threshold), the active adaptive filter, cooldown status and remaining bars, the calculated risk amount, the suggested position size, and a filled bar-graph showing how close price currently sits to the trailing stop as a percentage of the total offset distance.
📖 How to Use
A flip from red to teal candles (and the NRTR line stepping below price) signals a potential long entry; the mirror flip signals a potential short.
Use the auto-drawn Entry, Stop Loss, and Take Profit lines as a starting risk/reward framework — the SL is anchored to the trailing level at the moment of the flip, not an arbitrary distance.
Enable the ADX Filter if you want flips confirmed only during periods of measurable trend strength, which reduces (but does not eliminate) signals generated in choppy, low-ADX conditions.
Enable Cooldown Guard if you want to avoid immediate re-entry into a direction that was just stopped out — useful in ranging conditions prone to repeated whipsaws.
Enable Lock Signal to freeze the currently displayed trade levels in place (rather than having them update to the latest signal), useful for reviewing a specific historical setup without it being overwritten by newer signals.
Watch the "Dist Trail" bar in the dashboard as a quick visual read of how far price currently sits from the trailing stop relative to the configured offset — a nearly full bar means price is close to triggering a flip.
The built-in alert payloads are formatted as JSON and include action, ticker, timeframe, direction, entry, stop, and target fields, making them usable directly as webhook bodies for external automation without additional parsing.
⚙️ Inputs and Settings
NRTR Mode — switches the trailing offset calculation between a fixed Percent of price and a volatility-adaptive ATR multiple.
NRTR % / ATR Len / ATR Mult — control the magnitude of the trailing offset in each respective mode; larger values produce a looser trail with fewer, later flips, smaller values produce a tighter trail with more frequent flips.
Use ADX Filter / ADX Len / ADX Thresh — toggle and configure the trend-strength confluence filter described above.
Adapt Filter / Adapt Len — select the smoothing method applied to price before the NRTR calculation, and its lookback length.
Cooldown Guard / Cooldown Bars — toggle and configure the post-stop-out re-entry suppression window.
Lock Signal — freezes the currently plotted trade levels rather than letting them advance to the newest signal.
Position Sizing / Sizing Mode / Risk % Trade / Fixed Risk $ / Account $ — configure whether suggested size is derived from a percentage of account equity or a fixed dollar risk figure, and the inputs feeding that calculation.
TP1/TP2/TP3 Mult — the risk multiples applied to the entry-to-stop distance to project each take-profit level.
Heatmap Candles / NRTR Line / Trade Levels — independently toggle each visual layer on or off.
Dash Pos / Show Dash — position and visibility of the dashboard table.
Alert Action fields (Long/Short/Close Long/Close Short) — customize the "action" string embedded in each webhook JSON payload, useful for matching the field names expected by a specific external automation system.
Color inputs — independently customize every plotted and dashboard color.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The NRTR mechanic itself belongs to a family of stop-and-reverse trailing systems related conceptually to Wilder's Parabolic SAR and to chandelier-style trailing stops: all three share the property that the trailing level is a one-directional ratchet — it can only move in the direction that tightens toward price — which is what mechanically prevents the trailing stop from ever "giving back" more than the configured offset once a trend is underway. Where NRTR differs is in decoupling the ratchet from a fixed acceleration curve (as in Parabolic SAR) and instead deriving it directly from a percentage or volatility-scaled offset off a tracked local extreme, which is closer in spirit to a Donchian- or Chandelier-style trailing construction.
The ATR-based offset mode draws on Welles Wilder's concept of using recent true-range volatility, rather than a fixed percentage, to size a trailing distance — the rationale being that a constant percentage offset is too tight in high-volatility regimes (generating premature stop-outs) and too loose in low-volatility regimes (giving back excess profit), while an ATR-scaled offset expands and contracts with the instrument's own recent behavior.
The Double WMA and Triple VWMA filters are cascaded-smoothing constructions in the same family as Hull's differencing approach: repeatedly passing a series through a weighted average and recombining the outputs is a general technique for pushing a smoothing filter's group delay down without simply shortening its lookback (which would otherwise increase noise sensitivity). The Kalman filter option applies a simplified, single-state version of the classic recursive Bayesian estimator from control theory, where each new observation is blended into a running estimate according to a gain term balancing assumed process noise against assumed measurement noise — conceptually the same estimation framework used in tracking and signal-processing applications outside of finance. The custom LLAMA filter combines a central-tendency estimate (a simple moving average) with a first-order trend term (a discrete slope measured over the same window), an approach related in principle to linear trend-projection and regression-based smoothing techniques that attempt to reduce lag by explicitly modeling the direction a series is moving rather than only its recent average level.
The ADX component derives from Wilder's Directional Movement System, in which ADX quantifies the strength (not direction) of a trend by smoothing the divergence between positive and negative directional movement — using it as a confluence filter reflects the broader technical-analysis principle that trend-following and trailing-stop methods perform better in the specific market regime (trending, directional) they are designed for, and using a strength filter is one common approach to distinguishing that regime from a ranging one.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Индикатор

Round Number Nearest LevelRound Number Nearest Level is a simple visual reminder of the round-number price level nearest to the current market price.
During fast-moving trading sessions, it is easy to focus on entries, exits, volume, and momentum while overlooking an approaching round number. This can be especially challenging for newer traders. Round-number prices often attract attention and may act as potential support, resistance, targets, or areas of increased activity.
The indicator keeps the chart uncluttered by displaying only the nearest level. As the price moves, the plotted line automatically steps to the next closest round number.
HOW IT WORKS
Automatic mode selects the interval based on the current price:
• Below $5: nearest $0.50 level
• $5 and above: nearest $1.00 level
Custom mode allows you to define your own multiplier. For example, a multiplier of 5 plots the nearest $5 level, while a multiplier of 0.25 plots the nearest quarter-dollar level.
The level is displayed as an orange stepped line directly on the price chart.
This indicator is intended as a situational-awareness aid. Round-number levels are reference points, not guaranteed support or resistance, and should be considered alongside price action, volume, risk management, and your broader trading plan. Индикатор

SHM 8.0 Dual-WMA Momentum Oscillator
SHM Dual-WMA Momentum Oscillator
Overview
The SHM Dual-WMA Momentum Oscillator (DWO) is an institutional-grade momentum indicator engineered to isolate structural trend direction, momentum acceleration, and high-probability reversal zones across custom timeframes.
By measuring the percentage distance between a Fast WMA and a Slow WMA, the DWO filters out market noise and locks calculation logic to a customizable higher timeframe wave—allowing you to project and track macro momentum seamlessly across every chart resolution.
Key Features & Architecture
Flexible Multi-Timeframe (MTF) Engine: Full control over your anchor timeframe (Anchor Momentum Timeframe). Choose your preferred momentum wave (e.g., 1H, 4H, Daily/24H, 3D, Weekly) and lock it to display consistently across all timeframes without repainting or distortion.
Universal Timeframe Visibility: Lock your preferred anchor to the 4-Hour wave, and that 4H momentum wave stays strictly visible whether you zoom down to a 15-minute execution chart or step up to inspect the Daily/Weekly macro chart.
Macro Trend Isolation: Eliminates transient intraday volatility, revealing where higher-timeframe capital flow is actually moving.
Triple Equilibrium Baselines: Features customizable numeric anchor points (+33, 0, -33) paired with dynamic 4-color momentum acceleration histograms to easily spot expansion, exhaustion, and mean-reversion zones.
Signal Tracking Line: Integrates a smoothed tracking curve for identifying momentum crossovers and zero-line baseline retests.
How to Use for Analysis
Selecting Your Anchor Timeframe:
Set the Anchor Momentum Timeframe in the settings input to your preferred cycle (e.g., 240 for 4H execution, 1440 for Daily macro, or 1W for high-tf positioning).
Determining Trend Bias:
DWO Line Above Zero Baseline: The selected anchor wave is structurally bullish. Intraday pullbacks act as buying liquidity.
DWO Line Below Zero Baseline: The selected anchor wave is structurally bearish. Intraday bounces act as counter-trend rallies.
Equilibrium Acceleration Histograms:
Green / Teal Histograms: Positive momentum acceleration relative to your selected anchor timeframe.
Red / Dark Red Histograms: Negative momentum acceleration relative to your selected anchor timeframe.
Inputs & Settings
Anchor Momentum Timeframe (Default: 24H / 1440): Selects the timeframe wave to project across all charts (supports 1m up to 1W).
Fast WMA Lookback (Default: 65): Controls the sensitivity of the primary signal curve.
Slow WMA Lookback (Default: 480): Establishes the baseline filter for long-term trend isolation.
Signal Smoothing Line (Default: 63): Adjusts the sensitivity of the signal tracking curve.
Triple Baseline Configuration: Sets the Y-axis levels for upper (+33), zero (0), and lower (-33) histograms.
Disclaimer
This script is designed for educational, informational, and analytical charting purposes only. It does not constitute financial or trading advice. Always perform independent analysis and practice strict risk management. Индикатор

Trend Conviction Divergence [ZynAlgo]1. Overview
Trend Conviction Divergence measures how much conviction is behind the current trend, not just its direction. It blends four proxies - Price Efficiency, Participation, Follow Through and Breakout Acceptance - into a single 0-100 Conviction Score shown in its own pane, and keeps trend direction separate so a fading trend stays visible.
2. What Builds the Conviction Score
Price Efficiency - a Kaufman-style efficiency ratio: net directional move divided by total bar-to-bar movement. Near 1 is a clean push, near 0 is chop.
Participation - recent volume average versus an older baseline; volume draining during a move flags weak participation (volume is a proxy and can be unreliable on some symbols).
Follow Through - size of the latest swing leg versus the average of prior legs; shrinking legs mean weakening follow-through.
Breakout Acceptance - the share of recent range breakouts that held instead of being rejected.
3. How to Read the Conviction Score
The score plots as columns: red below the Weak level (default 40), yellow between, green above the Strong level (default 70). Two dashed lines mark the 40 and 70 levels.
Divergence read: when direction stays BULLISH or BEARISH but the score slides toward or under the weak line, conviction is leaving the trend before price turns.
Confirming read: when price is trending and the score holds in the green zone above the Strong level, conviction is backing the move rather than fading.
Use it as a confirmation and filter layer over your own setups - lean in when conviction is high and rising, be cautious when it is weak or diverging. It is analytical context, not an entry trigger.
The dashboard shows PRICE (BULLISH or BEARISH), CONVICTION (the score as a percentage) and STATUS (WEAK TREND / MODERATE / STRONG TREND).
4. Inputs / Settings
Trend Reference Length - moving-average length that sets the BULLISH or BEARISH direction.
Efficiency Lookback - window used for the Price Efficiency ratio.
Participation - recent and baseline volume lengths plus the baseline offset.
Follow Through - swing pivot length and how many legs are remembered for the average.
Breakout Acceptance - breakout lookback, bars-later acceptance check, and how many recent breakouts are averaged.
Conviction Score Weights - the weight of each of the four components in the blend.
Display - Weak and Strong thresholds that drive the coloring and status.
5. Notes
Like any oscillator, the current bar value updates until the bar closes; closed bars do not change.
This is an analytical tool, not a signal generator, and does not guarantee any trading result. Always use your own analysis and risk management.
Индикатор

Smart Gaussian Channel - Band & Breakout Statistics [Dots3Red]🔔 GAUSSIAN CHANNEL AI — BAND & BREAKOUT STATISTICS
The Gaussian Channel is one of the most-followed tools, and this indicator goes a step further and keeps score: how often does each band actually hold, how often does a breakout genuinely continue, and how often has the filter's own direction call been right?
✨ WHY THIS MATTERS
A smooth channel is only useful if you know how much to trust it. Most Gaussian Channel scripts leave that entirely to feel, but nothing tells you whether the upper band has actually been holding lately or getting run through. This script tracks three separate things continuously and reports them plainly:
📊 Band respect — "Upper Band: 58% rejected (n=33)"
📊 Breakout follow-through — "Breakouts ▲: 61% continued (n=18)"
📊 Flip win rate — did the filter's last direction change actually hold up?
Nothing here is a prediction. It is a running record of what has already happened on this specific chart, so you can judge the channel's current reliability instead of assuming it.
⚙️ HOW IT WORKS
🔔 The Gaussian filter — a proper Ehlers-style low-lag filter, cascaded through up to 4 poles for extra smoothness. The same cascade applied to true range sets the band width, scaled by a multiplier. This is standard signal-processing math — the same construction behind the well-known versions of this tool. It is a fixed formula, not a model that adapts on its own.
📏 Band respect grading — every time price wicks into a band without closing beyond it, that's logged as a touch. The script then watches what happens next: if price moves back away from the band by a meaningful distance, it's graded a rejection; if price later closes through, it's graded a break. The running percentage accumulates per band, separately for upper and lower.
🚀 Breakout follow-through grading — a genuine close beyond a band (not just a wick) starts a separate track: does price keep moving in that direction by a further meaningful distance, or does it fall back inside the channel? Measured independently for upward and downward breakouts, since a channel can behave very differently on each side.
🔄 Flip grading — every time the filter's direction turns, the turn is checked a set number of bars later: did price actually end up where the new direction implied? The running win rate is a direct, honest answer to "when this line flips, how often has it been right so far."
🔒 Non-repainting — all grading happens strictly on confirmed bars. Nothing here retroactively changes what already printed.
🧭 HOW TO USE
1️⃣ Read the band stats before assuming a level will hold. If the upper band shows "72% rejected (n=40)," that's a meaningfully different situation than "48% rejected (n=12)" — same-looking channel, very different track record.
2️⃣ Use breakout stats to judge whether a close beyond the channel deserves attention. A high continuation rate on breakouts in one direction, paired with a low one in the other, tells you this instrument doesn't behave symmetrically — worth knowing before treating both sides the same way.
3️⃣ Check the flip win rate as context, not a green light. A filter flip that's been correct 40% of the time recently deserves more skepticism than one running at 65%. The count (n=) tells you how much to trust that percentage itself.
4️⃣ Let the sample sizes build up. Early on a fresh chart, expect small n values and treat the percentages as provisional until they've accumulated real history.
5️⃣ Adjust the poles and sampling period to the timeframe. Fewer poles and a shorter period track price more closely with less lag; more poles and a longer period produce a smoother, slower-reacting channel. Neither is universally correct — it depends on how much noise you want filtered out.
🛠️ SETTINGS
🔔 Gaussian Filter
• Source, Sampling Period, Poles, Band Multiplier — the core filter construction
🎯 Statistics Engine
• Touch Tolerance, Rejection Distance — define what counts as a touch and a genuine rejection
• Breakout Continuation, Outcome Window — define what counts as real follow-through
• Flip Grading Window — how far ahead a direction flip is checked
🎨 Visualization
• Channel Fill toggle and transparency
• Touch / Breakout Markers toggle, with independent line widths and marker sizing
🎨 Colors
• Rising / Falling / Flat channel colors
• Independent touch-marker and breakout-marker colors for each side
• Full dashboard color control — background, borders, header, and the good/bad outcome indicators
🖥️ Dashboard
• Show/hide, position — current channel direction plus all three statistic layers in one place
📝 NOTES
The statistics are cumulative from when the indicator was added to the chart — they are not a backtest over the full available history unless you scroll back far enough for the script to process it. A small sample size on any row means that particular statistic is still developing; treat it accordingly.
⚠️ DISCLAIMER
This is an analytical and visualization tool. It does not generate trade signals and does not constitute financial advice. Historical band, breakout, and flip statistics do not guarantee future performance. Индикатор

AlphaVault - Iron Turtle 1D v2.00Iron Turtle — scheduled spot accumulation, bear regimes only
BTC/USDT · Daily chart only · spot · buy-only, never sells
WHAT IT DOES
The Iron Turtle buys a fixed amount of BTC on a fixed schedule, but only while a
long-term downtrend is confirmed. When the downtrend ends it stops buying and tells you
so. It never sells, never uses leverage, and never tries to time a bottom.
It is not a trading strategy and does not pretend to be one. It is a rule that decides
when a recurring purchase should be switched on and off.
HOW IT WORKS
Two things, and that is the whole system.
1. THE REGIME TEST. On each daily close the script compares price against a 200-period
simple moving average of daily closes and a 20-period exponential moving average of
weekly closes, both taken from the last COMPLETED bar. Price below BOTH means the
bear regime is confirmed. Anything else means it is not.
2. THE SCHEDULE. While the bear regime is confirmed, the script marks a buy every N
days — 7 by default — for a fixed cash amount you set. It plots each one on the
chart and can fire an alert so you place the order yourself, or route it to a bot.
When price closes back above both filters for a set number of confirming days, the
script stops marking buys and fires a hand-off alert. That is the end of its job. What
you do with the accumulated position is entirely your decision; the script has no
opinion and no sell logic.
The regime test is deliberately the same one our other scripts use to stay OUT of the
market. Here it runs in reverse: what makes a timing strategy go flat is what makes
this one buy.
WHY IT IS OPEN SOURCE
Because there is nothing in it worth hiding, and pretending otherwise would be
dishonest. There are no optimised parameters — the moving average lengths are the
conventional ones, the schedule is a plain interval, and every rule was fixed before
any testing. You are reading the entire method above, and the code says the same thing.
A closed-source version of this would be asking you to trust a black box that has no
box.
HOW TO USE IT
- Set the chart to BTC/USDT on the Daily timeframe. The script blocks signals on any
other timeframe and shows a warning.
- Set your tranche size — the fixed cash amount per purchase.
- Set the interval in days.
- Right-click a buy marker to create an alert, or use the built-in alert for a bot.
- Add a second alert on the hand-off signal. That is the one that matters most and it
may be months away.
THE ONE THING THAT DECIDES WHETHER THIS WORKS FOR YOU
Budget for the whole bear before you start. A crypto bear market can run two years.
If you intend to buy weekly, size the tranche so you could keep buying for that long
without stopping — roughly tranche × 100 committed in total. Running out of money
halfway through is the single most common way scheduled accumulation fails, and it
converts a working plan into a realised loss at the worst possible moment.
LIMITATIONS AND SHORTCOMINGS — PLEASE READ
- It will be underwater for most of the time it is running. It buys into falling
prices by design, so an unrealised loss during accumulation is arithmetic, not
malfunction. If watching that for months is not something you can sit through,
this is the wrong tool and it is better to know now.
- No performance figures are shown here, and that is not modesty. An indicator
produces no strategy report on TradingView, so any number quoted would be
unverifiable. The rules are fully described above; test them yourself.
- It assumes bear markets eventually end. Every crypto bear so far has resolved into
a bull, but that is history, not a law, and nothing here guarantees it repeats.
- It never sells, so it gives you a position and no exit plan. That is deliberate,
and it means the hard decision is still yours.
- It does nothing at all in a bull market. Most of the time, the correct behaviour of
this script is to sit still.
- It cannot time a bottom and does not try. It will keep buying while price falls
further, and will stop buying only after the trend has already turned.
NO REPAINTING
The regime state and every buy marker use completed daily and weekly bars only,
requested without lookahead. A marker that appears on a closed bar will not move or
disappear afterwards. Индикатор

iNaka Market StructureiNaka Market Structure marks Break of Structure (BOS), Change of Character (CHoCH) and liquidity
sweeps from confirmed swing pivots, and scores every break from 0 to 100 so a decisive break and a
marginal one are distinguishable without eyeballing the candles.
It is one self-contained engine, not a combination of existing indicators. ATR appears only as a unit
of measurement, so that a threshold means the same thing on gold as on a currency pair; it is never
used as a signal.
WHAT IT DRAWS
- A dashed line at the active Ref High and Ref Low: the most recent confirmed swing high and swing low
that price has not yet broken. Dotted instead of dashed means the level is an equal-high/equal-low
cluster.
- BOS or CHoCH labels carrying the 0-100 strength score, with a line drawn back to the pivot that was
broken.
- "sweep" marks where price ran a level intrabar and closed back inside it.
- A status panel showing the current bias, the leg count, and both active levels.
HOW IT WORKS
1. Pivots. A pivot high is a bar whose high exceeds the Pivot Left bars before it and the Pivot Right
bars after it; a pivot low is the mirror. Two resolutions run in parallel on the same bars, Major
(default 15/15) and Minor (default 5/5), and you choose which one drives the labels, the bar
colouring and the alerts.
2. Reference levels. The most recent confirmed pivot on each side becomes a reference level. At most
one is live per side: one above price, one below. After a break, that side has no level at all
until the next pivot confirms - and because a pivot is only confirmed Pivot Right bars after it
prints, the level that replaces it is always at least that old.
3. Equal highs and equal lows. If a new pivot lands within Equal-Level Tolerance of the live reference,
it is treated as the same level being retested rather than a new one. The original level and its bar
index are kept and the level is flagged as a cluster. A double or triple top is therefore one level
tested three times, not three separate levels drifting down toward price.
4. Sweeps. If price trades through a live level but closes back inside it, that is reported as a sweep,
not a break: liquidity was taken and structure held. Each level reports its sweep once, so a level
poked twenty times inside a range produces one mark rather than twenty.
5. Breaks. A close through the level consumes it. If the prevailing bias already pointed that way, the
break is a BOS (continuation of the current leg). If it pointed the other way, it is a CHoCH, the
first break of a new leg. Bias starts undefined, so the first reported break on a chart is always a
BOS rather than a change of character with nothing to change from.
6. Break strength, 0 to 100, is the sum of four terms:
- up to 40 for displacement: how far beyond the level the bar closed, measured in ATR, saturating
at 1 ATR
- up to 25 for the leg count: how many consecutive breaks the current direction has produced,
saturating at 3
- 20 if the break follows a sweep on its own side inside the Sweep Arm window, i.e. a break that
first ran the stops resting behind it
- 15 if the level broken was an equal-high/low cluster, on the reasoning that repeated tests leave
more resting orders behind a level
WHAT IS DIFFERENT ABOUT IT
These are the specific design choices the engine makes, and the reasons it exists:
- Breaking and reporting are separate decisions. A close through a level always consumes it, so a
level can never sit stranded below price and then fire a stale break dozens of bars later. The
filters decide whether that break is reported at all: the bit, the label, the alert and the bias
update. The bias therefore advances only on reported breaks, so a CHoCH is always measured against the last bias you actually saw drawn. The leg count
deliberately does not: it advances on every break, because gating it would let one filtered break
starve every later break's score.
- Every break carries a composite 0-100 score built from four separately weighted, individually
explained terms - displacement, leg count, a side-matched sweep, and whether the broken level was a
cluster - and Min Break Strength filters on that score. The score is a ranking of breaks against
each other, not a probability.
- Equal levels cluster rather than replace. A near-equal pivot keeps the older level instead of
overwriting it, so a level that has been tested repeatedly stays anchored where the market actually
respected it.
- Two resolutions are computed in parallel on every bar, Major and Minor, with independent pivot
lengths and independent state. You choose which one reports; both stay live.
- Sweeps are one-shot per level. A sweep is treated as an event, not as a condition that re-reports on
every touch for as long as price hovers under the level.
SETTINGS
Structure
- Structure Resolution: which resolution is reported, Major or Minor. Both are always computed.
- Major Pivot Left / Right (15 / 15) and Minor Pivot Left / Right (5 / 5). Pivot Right is also the
confirmation lag: a pivot is only known that many bars after it prints.
Break Rules
- Equal-Level Tolerance (ATR), default 0.10. How close a new pivot must be to count as an equal
high/low. 0 disables clustering.
- Break Displacement (ATR), default 0. How far beyond the level the close must be for the break to be
reported. 0 reports every close-through.
- Displacement ATR Length, default 14. Used by both the displacement gate and the tolerance.
- Sweep Arm (bars), default 3. How long after a sweep a same-side break still earns the sweep bonus.
0 disables the bonus.
- Min Break Strength, default 0. Breaks scoring below this are not labelled or alerted.
Display
- Toggles for the reference levels, break marks, sweep marks, the score on labels, bar colouring by
bias, and the status panel; how many marks to keep on the chart; and the three colours.
HOW TO USE IT
- Start at defaults on the timeframe you actually trade. Major answers "what is the structural
direction"; Minor answers "what is happening inside the current leg".
- Treat a CHoCH as the first evidence that a leg has ended and a BOS as evidence that it continues.
The leg count in the panel tells you how extended the current sequence already is - note it counts
every break, including ones a filter hid, so it can move with no new label on screen.
- If the chart is too busy, raise Break Displacement or Min Break Strength rather than lengthening the
pivots. Longer pivots delay every level; the filters only hide the marginal breaks.
- A sweep followed by a same-side break is the sequence the strength score rewards most: the level was
defended, the stops behind it were taken, and then it broke anyway.
LIMITATIONS, WHICH YOU SHOULD READ BEFORE USING IT
- Pivots confirm Pivot Right bars after they print. A level therefore becomes active that many bars
late, and a break occurring inside that window is not seen. That lag is exactly what makes the engine
non-repainting on closed bars; it is inherent to confirmed pivots and no setting removes it.
- Within a forming bar, levels and marks can appear and disappear as the bar's high, low and close
move. Set every alert to "Once Per Bar Close".
- Reference levels ratchet. A newly confirmed pivot replaces the live one even when it sits lower for a
Ref High, because the rule is "most recent confirmed pivot", not "highest untouched pivot".
- The strength weights are a starting calibration chosen so the score stays interpretable. They are not
an optimised or validated result. Use the score to rank breaks against each other, not as a
probability of anything.
- Only the most recent marks are kept on the chart (default 60 of each kind). Scroll far enough back
and the older BOS, CHoCH and sweep marks have been deleted, and the two reference lines, which run from
their pivot to the right edge, leave the frame once you scroll back past their pivot. A blank
history is the drawing budget, not a fault.
- Break labels are placed at the midpoint of the line drawn back to the broken pivot, not on the break
bar itself, so on a long line the label sits well to the left of where the break happened.
- This is an analysis tool. It does not generate entries or exits, does not size or manage a position,
and makes no claim about profitability.
ALERTS
Six conditions: Bullish BOS, Bearish BOS, Bullish CHoCH, Bearish CHoCH, Bullish sweep, Bearish sweep.
All fire on the selected resolution. Set them to "Once Per Bar Close".
Published open-source under the Mozilla Public License 2.0.
```
**Conditional addition — only if you take the Minor fallback in chart-plan step 5.** Publishing a
chart on non-default settings without disclosing them is the violation-1 family, which binds every
visibility type. Add this line immediately above `Published open-source under the Mozilla Public
License 2.0.`:
```
The chart shown uses Structure Resolution = Minor. All other settings are at their defaults. Индикатор

Fibonacci Retracement Depth & Retest Grid - Swing High LowOVERVIEW
Fibonacci Retracement Depth & Retest Grid - Swing High Low is an open-source chart overlay for measuring retracement depth inside an automatically selected price leg.
The script combines an automatic right-confirmed swing engine, a bounded local-range fallback, optional manual-origin control, rolling-range analysis, configurable Fibonacci ratios, distinct touch-episode tracking, fixed-horizon response measurements, larger-range ratio proximity, factual alerts, and a compact context readout.
It is a descriptive research tool. It does not generate entries, exits, targets, stops, position sizes, probability estimates, win rates, or performance claims. It does not use artificial intelligence, machine learning, external datasets, or third-party libraries.
CORE FIBONACCI CALCULATION
For an active origin and terminal, each level is calculated as:
level = terminal + (origin - terminal) * ratio
The terminal anchor is 0%, and the origin anchor is 100%.
Current retracement depth is calculated as:
depth = (reference price - terminal) / (origin - terminal)
This produces the same interpretation for upward and downward legs:
- 0% means price is at the terminal anchor.
- 100% means price is at the origin anchor.
- A value below 0% means price has moved beyond the terminal.
- A value above 100% means price has moved beyond the origin.
The current-depth cursor displays the actual calculated value. Its chart position is bounded between the two anchors so that an extreme value does not distort the visible layout.
ANCHOR ENGINES
The script provides three anchor engines.
1. Automatic swing
Automatic swing is the default.
The engine detects pivot highs and lows from either wicks or closing prices. A pivot is accepted only after the configured number of right-side bars has closed. Accepted pivots must alternate between high and low.
A new opposite-side pivot must satisfy:
- Minimum spacing in chart bars.
- A non-zero price distance.
- An optional minimum leg size expressed in ATR.
A later pivot of the same type can revise the active terminal only when it is more extreme by at least the configured minimum-tick threshold. This reduces small live revisions and visual flicker.
When a complete confirmed pivot pair is not yet available, the script uses a bounded local high-low range so the chart does not remain blank. The default local window is 120 finalized bars. The fallback is replaced automatically when a valid confirmed swing pair becomes available.
2. Manual origin
Manual origin is an explicit optional mode.
The user selects a paired time-and-price point as the structural origin. The script then searches after that point for the most extreme valid terminal in the selected direction.
Direction can be:
- Auto from point
- Up leg
- Down leg
The origin price can snap to the selected bar or preserve the exact selected price. By default, the terminal uses closed bars only to reduce intrabar movement of the complete Fibonacci structure.
Manual origin does not silently fall back to an automatic structure. If the selected point or terminal is invalid, no manual grid is displayed until the point or settings are corrected.
3. Rolling range
Rolling range uses the highest and lowest selected source values inside a fixed lookback. The chronological order of the two extremes determines whether the leg is upward or downward.
A minimum span in bars is required between the extremes. The anchors can change as the lookback advances, so current-structure statistics reset whenever the active pair changes.
CONFIRMATION AND HISTORICAL PLACEMENT
In Automatic swing mode, an H or L marker is placed at the historical pivot bar after that pivot becomes confirmed.
The diagonal anchor leg connects the actual origin and terminal bars. However, the horizontal Fibonacci levels do not begin before the complete structure became available to the script. They begin from the availability point rather than being extended backward through bars where the completed pair was not yet knowable.
This distinction is intentional:
- The anchor marker shows where the pivot occurred.
- The level start shows when the active structure became available.
A marker on a historical pivot bar should not be interpreted as evidence that the pivot was known on that original bar.
If a high pivot and low pivot are both confirmed from the same chart bar, finalized OHLC data cannot prove which extreme occurred first inside that bar. When a previous terminal type exists, the engine prefers the opposite candidate to preserve alternation. It does not invent an intrabar order that the available data cannot establish.
PAST-CHART STUDY
When Use visible right edge in past charts is enabled and the chart is scrolled away from the latest bar, the visible right edge becomes the study endpoint.
Inside the configurable local window, the script first looks for a recent accepted confirmed swing. If a suitable pair is not available, it uses a bounded local high-low range ending at the visible right edge.
This prevents historical study from automatically expanding to the absolute high and low of an excessively large viewport.
Past-chart auto-follow is retrospective. The completed visible period is already known. Therefore:
- Sequential touch-response statistics are disabled.
- Price-event alerts are disabled.
- The readout changes from Response to Study.
For chronology-sensitive historical testing, use Automatic swing with TradingView Bar Replay. Pivots will become available only after the configured right-side confirmation bars.
CONFIGURABLE FIBONACCI LEVELS
The script contains ten independently editable ratio slots.
The default enabled ratios are:
- 0.000
- 0.236
- 0.382
- 0.500
- 0.618
- 0.786
- 1.000
The following ratios are available but disabled by default:
- 0.650
- 0.705
- 0.886
Each slot can be enabled, disabled, or changed. Inputs accept values from -2.000 to 3.000, allowing custom retracement or extension research.
The script does not assume that a custom ratio is predictive or statistically significant.
DEPTH BANDS
Three optional visual bands organize the interior of the active retracement.
By default, they represent:
- 38.2% to 50.0%
- 50.0% to 61.8%
- 61.8% to 78.6%
The bands are built from configurable ratio slots. Changing those inputs changes the corresponding band boundaries.
The readout classifies proportional location as:
- Shallow
- Mid
- Deep
- T+ for beyond the terminal
- O+ for beyond the origin
These labels describe location only. They do not describe trade quality or reversal probability.
DISTINCT TOUCH EPISODES
Reaction research is available for enabled interior ratios greater than 0 and less than 1.
A level is contacted when the bar range intersects the configured tolerance around that price. Tolerance can be defined using:
- ATR
- A percentage of the active leg
- Minimum ticks
The script does not count every consecutive bar near a level as a separate reaction.
After an initial touch, price must move completely outside the wider re-arm envelope before another touch can be counted. This separates repeated contact into distinct touch episodes and reduces inflated counts caused by several bars remaining near the same price.
The latest counted touch for each level can be marked on the chart.
Touch statistics belong only to the current active anchor structure. They reset whenever the active origin or terminal changes.
FIXED-HORIZON RESPONSE RESEARCH
Each new touch episode creates an independent pending measurement.
After the configured number of chart bars has elapsed, the script measures the closing price relative to the touched level and normalizes the result by the active leg size.
The sign is aligned with the active leg direction:
- A positive response means the horizon close moved toward the terminal direction.
- A negative response means the horizon close moved toward the origin direction.
The readout uses:
- T for counted touch episodes.
- R for completed fixed-horizon measurements.
The displayed average is the arithmetic mean of completed measurements for the nearest enabled ratio within the current active structure.
This measurement is not:
- A bounce rate.
- A support or resistance score.
- Maximum favorable excursion.
- Maximum adverse excursion.
- A win rate.
- A probability estimate.
- A strategy result.
If the active anchors change before a pending response reaches its horizon, that pending measurement is discarded with the other statistics from the previous structure.
LARGER-RANGE RATIO PROXIMITY
The script can calculate a second Fibonacci structure from a longer rolling high-low range.
Each enabled primary level is compared with every enabled level in the larger-range structure. Proximity tolerance can be defined using:
- ATR
- A percentage of the primary leg
- Minimum ticks
When a primary level is sufficiently close to a larger-range ratio:
- Its line is highlighted.
- Its line width is increased.
- A diamond is added to its label.
This is a distance comparison only. It does not mean that the level is stronger, that price will reverse, or that the level will hold.
VISUAL OUTPUT
The default visual structure includes:
- A directional origin-to-terminal anchor leg.
- H and L anchor markers.
- Configurable Fibonacci level lines.
- Ratio and price labels.
- Three optional depth bands.
- A current-depth cursor.
- Latest-touch markers.
- Larger-range proximity diamonds.
- A compact bold context readout.
The readout summarizes:
- Active anchor engine and leg span.
- Current retracement depth.
- Nearest enabled level and ATR-normalized distance.
- Touch and response information, or historical study scope.
- Larger-range proximity and event-timing context.
Detailed explanations are available through cell and label tooltips so the visible panel can remain concise.
The readout also reserves a transparent horizontal edge-clearance lane. This keeps TradingView High/Low labels and price-scale markers visible when the panel is placed at a chart edge. The default clearance is 6% and can be adjusted in Settings.
Colors, line style, line widths, label content, label size, table position, table size, edge clearance, band opacity, and individual ratios are configurable.
ALERTS
The script provides factual alert conditions for:
- New confirmed Fibonacci swing structure
- Confirmed Fibonacci terminal revision
- Fibonacci level touch episode
- Core Fibonacci band entered
- Fibonacci origin crossed
- Fibonacci terminal crossed
The core band is defined by the Ratio 4 and Ratio 5 inputs.
Dynamic touch alerts are also available. When enabled, create a TradingView alert using Any alert() function call. The message reports the touched ratios, symbol, chart timeframe, and current close.
Confirmed-bar event evaluation is enabled by default.
Past-chart retrospective mode does not generate these price-event alerts.
Alerts report observed chart events only. They are not trade recommendations.
SUGGESTED WORKFLOWS
For current-market observation:
1. Keep Anchor engine on Automatic swing.
2. Keep Evaluate events on confirmed bars only enabled.
3. Select Wicks or Closes according to the research definition.
4. Adjust pivot left and right bars to control swing sensitivity.
5. Use Minimum leg ATR and Minimum bars between alternating pivots to reduce minor structures.
6. Use Automatic local window bars to control the warm-up and historical fallback horizon.
7. Read current depth and responses as descriptive context, not as an entry instruction.
For chronology-sensitive historical study:
1. Keep Anchor engine on Automatic swing.
2. Start TradingView Bar Replay before the period being studied.
3. Advance one bar at a time or at a controlled speed.
4. Observe when pivots become confirmed and when the Fibonacci grid becomes available.
5. Review touch episodes and completed fixed-horizon responses as replay advances.
For fast retrospective study:
1. Keep Use visible right edge in past charts enabled.
2. Scroll to the historical period.
3. Adjust the chart so the desired local structure is near the visible right edge.
4. Adjust Automatic local window bars if more or less structural context is required.
5. Review the Past swing or Past range readout state.
For a user-defined structural start:
1. Select Manual origin.
2. Set or reset the paired Origin point.
3. Choose Auto from point, Up leg, or Down leg.
4. Choose whether to snap to the selected bar or use the exact selected price.
5. Keep closed-bar terminal updates enabled for the more stable live behavior.
For an objective fixed-window range:
1. Select Rolling range.
2. Set the desired lookback.
3. Increase Minimum range span bars when short high-low pairs create excessive changes.
WHAT MAKES THIS IMPLEMENTATION DISTINCT
Fibonacci ratios and arithmetic retracement geometry are established public concepts. This script does not claim ownership of them.
Its distinct implementation choices include:
- Separation of historical pivot location from the later time when the structure becomes available.
- Availability-gated horizontal levels rather than unrestricted backward extension.
- Automatic confirmed-swing selection with a bounded finalized-bar warm-up fallback.
- Local past-chart auto-follow that avoids forcing the absolute extremes of a large viewport.
- Optional manual-origin and rolling-range engines in the same open implementation.
- Minimum spacing, ATR size, range-span, and tick-based terminal-revision filters.
- Distinct touch episodes controlled by a re-arm envelope.
- Independent fixed-horizon measurements normalized by active leg size.
- Direction-aligned descriptive responses rather than predictive bounce scores.
- Larger-range ratio proximity with configurable tolerance.
- Explicit separation of live, Bar Replay, and retrospective chart study.
- Compact tooltips and an edge-clearance lane designed to preserve chart-label visibility.
- Factual alerts without entries, exits, or performance claims.
The implementation uses conventional Fibonacci arithmetic and Pine Script built-ins. It does not import another author's library, reproduce a paper-specific model, request outside-market data, or present a proprietary trading methodology.
LIMITATIONS
- Fibonacci levels are proportional reference levels. They do not guarantee support, resistance, reversal, continuation, or any other future outcome.
- Confirmed pivots require right-side bars, so recognition necessarily occurs after the pivot bar.
- The active terminal can be revised when a later confirmed same-side pivot exceeds it by the configured threshold.
- During automatic warm-up, the bounded local-range fallback can change as finalized bars change until a confirmed pivot pair becomes available.
- The script displays one active Fibonacci structure rather than a permanent archive of every historical grid.
- Rolling range changes as its lookback advances and can reset all current-structure statistics.
- Past-chart auto-follow is retrospective and changes when the visible right edge or local-window setting changes.
- Finalized OHLC bars do not reveal the sequence of price movement inside each bar.
- If one bar intersects several levels, each level can be recorded, but their exact intrabar order is unknown.
- If confirmed-bar evaluation is disabled, realtime event states can change before the bar closes. Reloaded historical bars contain finalized OHLC, not the original realtime tick sequence.
- The calculation uses the chart's current symbol, timeframe, session, and price series. It does not request higher-timeframe or external-market data.
- Results depend on the history supplied by TradingView and the selected data provider.
- The Fibonacci calculation is arithmetic in price. Changing the chart to logarithmic scale changes visual spacing but does not change the underlying formula.
- Heikin-Ashi, Renko, Kagi, Line Break, and other non-standard charts can contain synthetic prices. Use standard candles when actual traded-price geometry is required.
- ATR-normalized filters and distances depend on the selected symbol and timeframe.
- Custom ratios can be duplicated, reordered, or placed outside the 0-to-1 interval. Users are responsible for interpreting custom configurations.
- Default settings are general research starting points. They are not optimized for any instrument, timeframe, market, or outcome.
- This is an indicator, not a strategy or backtest engine.
- Nothing displayed by the script constitutes financial or investment advice.
OPEN-SOURCE NOTE
The source is published under the Mozilla Public License 2.0 so users can inspect, verify, modify, and study the implementation.
The script is intended to support transparent chart research without hidden calculations, restricted access, or performance promises. Индикатор
