ADR & LoD. Dist%Why we built this
We wanted one clean indicator that showed both ADR% and distance from low of day. Existing tools either showed only one, had shit interfaces, or produced unreliable numbers across timeframes, so we built our own.
Who it's for
Breakout traders who want a quick read on whether a setup is still worth taking. ADR% helps you judge if the stock still has room based on its normal daily range. If price is already beyond its typical ADR%, you may choose not to buy. LoD dist helps with intraday entries by showing how far price is from the low of day, especially when using that low as your stop.
What it shows
ADR% — average daily range as a percentage, calculated from the 20-period average of daily high/low using closed daily bars only, so it stays stable intraday.
LoD dist — current price distance from the regular-hours low of day, in percent. It updates during RTH, ignores pre/post-market prints, and freezes after the session closes.
ATR — optional, off by default, for traders who size using absolute range instead of percentage.
Accuracy
Most accurate on the daily chart and reliable on the 5-minute chart, so the table is limited to those two timeframes instead of showing numbers we are not confident in.
Enjoy!
Written by Gordon Lee, Peter Lee
Coding work supported by Claude AI. Indicator

Cyberpunk MA Spectrum# Cyberpunk MA Spectrum
Cyberpunk MA Spectrum is an indicator designed to display multiple moving averages, from short-term to long-term, and visualize their direction through color changes.
When a moving average is sloping upward, it is displayed in cyan. When it is sloping downward, it is displayed in magenta.
Short-term moving averages are shown with higher transparency, while longer-term moving averages become progressively darker and more visible. This makes it easier to distinguish short-term price movement from the broader long-term trend on a single chart.
## Key Features
### Multiple Moving Averages
By default, the indicator displays the following 12 moving averages:
5, 10, 20, 30, 40, 50, 75, 100, 125, 150, 175, and 200
Each period can be changed individually in the settings.
Displaying short-, medium-, and long-term moving averages together makes it easier to analyze trend direction, moving average alignment, convergence, and expansion.
### Slope-Based Color Display
Each moving average changes color according to its current direction.
* Upward slope: Cyan
* Downward slope: Magenta
* Flat: Gray
The direction is determined by comparing the current moving average value with its value a specified number of bars ago.
This allows users to quickly identify which moving averages are rising and which are falling.
### Short-Term to Long-Term Gradient
Short-term moving averages are displayed with greater transparency, while longer-term moving averages are shown with stronger opacity.
The 5-period moving average is the lightest, and the lines gradually become darker toward the 200-period moving average.
This design helps maintain chart readability even when many moving averages are displayed at the same time.
### EMA and SMA Selection
The moving average calculation method can be changed from the settings.
* EMA: Exponential Moving Average
* SMA: Simple Moving Average
EMA reacts more quickly to recent price movements, while SMA calculates the average price evenly across the selected period.
Choose the calculation method that best suits your analysis style and trading approach.
### Adjustable Slope Lookback
The setting titled “Slope Lookback Bars / 傾きの比較本数” determines how many bars are used to evaluate the direction of each moving average.
The default value is 1.
When set to 1, the current moving average value is compared with the previous bar.
Increasing this value reduces the influence of small short-term fluctuations and evaluates the moving average direction over a broader period.
### Bilingual Settings
All settings are displayed in both English and Japanese.
This makes the indicator easier to use for both Japanese-speaking and English-speaking users.
## Settings
### MA Type / 移動平均の種類
Select EMA or SMA as the moving average calculation method.
### Source / 計算対象
Select the price source used for the moving average calculation.
The default source is the closing price.
### Slope Lookback Bars / 傾きの比較本数
Sets how many bars back the current moving average value is compared against.
### MA Lengths / 移動平均期間
Allows each of the 12 moving average periods to be adjusted individually.
### Line Width / 線の太さ
Changes the thickness of the moving average lines.
### Show Flat MA in Gray / 横ばいをグレーで表示
Determines whether a moving average with no change in value is displayed in gray.
When disabled, flat moving averages are displayed in cyan.
## Example Uses
Cyberpunk MA Spectrum can be used to assist with:
* Identifying short-, medium-, and long-term trend direction
* Checking bullish or bearish moving average alignment
* Visualizing upward and downward market conditions
* Identifying moving average convergence and expansion
* Supporting pullback and retracement analysis
* Evaluating the broader market structure using long-term moving averages
When several moving averages turn cyan and align upward from the short-term lines to the long-term lines, it may indicate that upward momentum is strengthening across multiple time horizons.
Conversely, when several moving averages turn magenta and align downward, it may indicate that downward momentum is becoming stronger.
However, this indicator only visualizes the current condition of moving averages. It does not predict or guarantee future price movements.
## Important Notes
This indicator does not provide guaranteed entry signals, exit signals, or profits.
Moving averages are lagging indicators calculated from historical price data. They may react slowly during sudden price movements and may produce frequent direction changes during sideways or range-bound markets.
Do not rely on this indicator alone when making trading decisions. Consider using it together with price action, volume, candlestick patterns, support and resistance levels, and the broader market environment.
All investment and trading decisions are made at your own risk.
# Cyberpunk MA Spectrum
Cyberpunk MA Spectrumは、短期から長期までの複数の移動平均線を同時に表示し、相場の方向性を色の変化で視覚的に把握するためのインジケーターです。
移動平均線が右肩上がりの場合はシアン、右肩下がりの場合はマゼンタで表示されます。
また、短期の移動平均線は薄く、長期の移動平均線になるほど濃く表示されるため、短期的な値動きと長期的なトレンドを一つのチャート上で確認できます。
## 主な機能
### 複数の移動平均線を同時表示
初期設定では、以下の12本の移動平均線を表示します。
5、10、20、30、40、50、75、100、125、150、175、200
各期間は設定画面から自由に変更できます。
短期、中期、長期の移動平均線をまとめて表示することで、トレンドの方向性や移動平均線の並び方、収束・拡散の状態を確認しやすくなります。
### 傾きに応じたカラー表示
それぞれの移動平均線の傾きを判定し、状態に応じて色を変更します。
* 右肩上がり:シアン
* 右肩下がり:マゼンタ
* 横ばい:グレー
移動平均線の現在値と、指定した本数前の値を比較して方向を判定します。
色を見るだけで、どの時間軸の移動平均線が上向きなのか、下向きなのかを直感的に確認できます。
### 短期線から長期線へのグラデーション
短期の移動平均線ほど透明度を高くし、長期の移動平均線ほど濃く表示します。
5期間の移動平均線は薄く、200期間の移動平均線に近づくほど濃く表示されます。
これにより、多数の移動平均線を表示しても長期線の位置を把握しやすく、チャート全体の視認性を保てるように設計しています。
### EMAとSMAの切り替え
設定画面から、移動平均線の計算方法を切り替えられます。
* EMA:指数平滑移動平均線
* SMA:単純移動平均線
EMAは直近の価格変動を比較的早く反映し、SMAは一定期間の平均価格を均等に計算します。
分析方法や取引スタイルに合わせて選択してください。
### 傾き判定期間の変更
「Slope Lookback Bars / 傾きの比較本数」から、移動平均線の傾きを判定する比較期間を変更できます。
初期設定は1本です。
1本に設定した場合は、現在の移動平均線と1本前の値を比較します。
数値を大きくすると、短期的な細かい上下の影響を抑え、少し長い期間で上向き・下向きを判定できます。
### 日英バイリンガル設定
設定項目は、英語と日本語を併記しています。
日本語利用者だけでなく、英語環境でも設定内容を理解しやすい仕様です。
## 設定項目
### MA Type / 移動平均の種類
移動平均線の計算方法をEMAまたはSMAから選択します。
### Source / 計算対象
移動平均線の計算に使用する価格を選択します。
初期設定は終値です。
### Slope Lookback Bars / 傾きの比較本数
現在の移動平均線と何本前の値を比較するか設定します。
### MA Lengths / 移動平均期間
表示する12本の移動平均線の期間を個別に変更できます。
### Line Width / 線の太さ
移動平均線の太さを変更します。
### Show Flat MA in Gray / 横ばいをグレーで表示
移動平均線の値に変化がない場合、グレーで表示するか設定します。
無効にした場合、横ばいの移動平均線はシアンで表示されます。
## 活用例
Cyberpunk MA Spectrumは、以下のような確認に利用できます。
* 短期・中期・長期トレンドの方向確認
* 移動平均線のパーフェクトオーダー確認
* 上昇トレンドと下降トレンドの視覚的な判別
* 移動平均線の収束・拡散の確認
* 押し目や戻りの位置を分析する際の補助
* 長期移動平均線を基準とした相場環境の確認
複数の移動平均線がシアンに変化し、短期線から長期線まで上向きにそろっている場合は、全体として上昇方向の勢いが強まっている状態を確認できます。
反対に、複数の移動平均線がマゼンタに変化し、短期線から長期線まで下向きにそろっている場合は、下降方向の勢いが強まっている状態を確認できます。
ただし、本インジケーターは移動平均線の状態を視覚化するものであり、将来の価格上昇や下落を保証するものではありません。
## 注意事項
本インジケーターは、売買タイミングや利益を保証するものではありません。
移動平均線は過去の価格を基に計算される遅行指標であり、急激な価格変動やレンジ相場では、実際の値動きに対して反応が遅れる場合があります。
本インジケーター単体で売買を判断せず、価格帯、出来高、ローソク足、サポート・レジスタンス、相場全体の環境などと組み合わせてご利用ください。
投資判断はご自身の責任で行ってください。
Indicator

ADR & LoD. dist%Why we built this
We wanted one clean indicator that showed both ADR% and distance from low of day. Existing tools either showed only one, had shit interfaces, or produced unreliable numbers across timeframes, so we built our own.
Who it's for
Breakout traders who want a quick read on whether a setup is still worth taking. ADR% helps you judge if the stock still has room based on its normal daily range. If price is already beyond its typical ADR%, you may choose not to buy. LoD dist helps with intraday entries by showing how far price is from the low of day, especially when using that low as your stop.
What it shows
ADR% — average daily range as a percentage, calculated from the 20-period average of daily high/low using closed daily bars only, so it stays stable intraday.
LoD dist — current price distance from the regular-hours low of day, in percent. It updates during RTH, ignores pre/post-market prints, and freezes after the session closes.
ATR — optional, off by default, for traders who size using absolute range instead of percentage.
Accuracy
Most accurate on the daily chart and reliable on the 5-minute chart, so the table is limited to those two timeframes instead of showing numbers we are not confident in.
Enjoy!
Written by Gordon Lee, Peter Lee
Coding work supported by Claude AI. Indicator

ADR% & LoD. dist%Who it's for
Breakout traders who want a quick read on whether a setup is still worth taking. ADR% helps you judge if the stock still has room based on its normal daily range. If price is already beyond its typical ADR%, you may choose not to buy. LoD dist helps with intraday entries by showing how far price is from the low of day, especially when using that low as your stop.
Why we built this
We wanted one clean indicator that showed both ADR% and distance from low of day. Existing tools either showed only one, had shit interfaces, or produced unreliable numbers across timeframes, so we built our own.
What it shows
ADR% — average daily range as a percentage, calculated from the 20-period average of daily high/low using closed daily bars only, so it stays stable intraday.
LoD dist — current price distance from the regular-hours low of day, in percent. It updates during RTH, ignores pre/post-market prints, and freezes after the session closes.
ATR — optional, off by default, for traders who size using absolute range instead of percentage.
Accuracy
Most accurate on the daily chart and reliable on the 5-minute chart, so the table is limited to those two timeframes instead of showing numbers we are not confident in.
Enjoy!
Written by Gordon Lee, Peter Lee
Coding work supported by Claude AI.
Indicator

QIFM SMC Market Structure QIFM SMC Market Structure — 2CR/2CG, BOS, CHoCH, FVG & OB
OVERVIEW
QIFM SMC Market Structure is a rule-based charting indicator designed to identify and display developing market structure using a custom Two-Candle Retracement framework.
The indicator combines:
• Two-Candle Retracement confirmation: 2CR and 2CG
• Developing and confirmed Break of Structure levels
• Pending and confirmed Change of Character levels
• Dual CHoCH identification
• Structure-based Fibonacci retracement levels
• Structure-leg Fair Value Gaps
• Order Blocks associated with accepted FVG patterns
• Previous Day High and Low
• Previous Week High and Low
• Optional candle classification and live OHLC analysis
This is a market-structure analysis tool. It does not place trades, calculate position size, or provide guaranteed buy and sell signals.
ORIGINALITY AND PURPOSE
The central feature of this indicator is its custom structure-confirmation sequence.
Instead of defining every local high or low as market structure, the script waits for a specific two-candle retracement condition before establishing a pending BOS level. Confirmed BOS and CHoCH events are then used to control where the indicator searches for FVG and Order Block zones.
The main original component is the sequencing of:
Impulse extreme → 2CR/2CG confirmation → pending BOS → confirmed BOS → protected CHoCH point → confirmed CHoCH → structure-leg FVG and OB filtering.
This structure-based filtering is intended to reduce the number of randomly marked gaps and blocks that are not connected to a confirmed market-structure event.
1. TWO-CANDLE RETRACEMENT: 2CR AND 2CG
The indicator uses two types of retracement confirmation.
2CR — Two-Candle Red Retracement
During a developing bullish structure:
• The script records a bearish candle as the first retracement candle.
• The next bearish candle must close below the low of the first bearish candle.
• When this condition is completed, the pattern is marked as 2CR.
• The highest price reached before the confirmed retracement becomes the pending bullish BOS level.
2CG — Two-Candle Green Retracement
During a developing bearish structure:
• The script records a bullish candle as the first retracement candle.
• The next bullish candle must close above the high of the first bullish candle.
• When this condition is completed, the pattern is marked as 2CG.
• The lowest price reached before the confirmed retracement becomes the pending bearish BOS level.
Inside-range behavior is also evaluated while the pattern is developing. A candle contained within the tracked range does not automatically confirm the retracement.
2. PENDING AND CONFIRMED BREAK OF STRUCTURE
After a valid 2CR or 2CG pattern, the script creates a waiting BOS line.
Bullish BOS:
• A 2CR confirms the retracement.
• The preceding bullish extreme becomes the pending BOS level.
• A bullish BOS is confirmed when a candle closes above that level.
Bearish BOS:
• A 2CG confirms the retracement.
• The preceding bearish extreme becomes the pending BOS level.
• A bearish BOS is confirmed when a candle closes below that level.
The waiting BOS line and the confirmed BOS line have separate style, width, and color controls.
A wick through the BOS level is not sufficient. BOS confirmation is based on the candle close.
3. PENDING CHoCH POINT
After a confirmed bullish BOS, the lowest point of the confirmed retracement becomes the bearish protected structure level.
After a confirmed bearish BOS, the highest point of the confirmed retracement becomes the bullish protected structure level.
This protected level is displayed as:
P.CHoCH — Pending Change of Character
The active pending CHoCH line represents the level that must be broken to confirm a potential change in the current market structure.
Users can separately display:
• The current pending CHoCH level
• Previous pending CHoCH levels
4. CONFIRMED CHANGE OF CHARACTER
A CHoCH requires two consecutive candle closes beyond the active protected level.
Bearish CHoCH:
• The current structure is bullish.
• Two consecutive candles close below the active bearish P.CHoCH level.
• The script marks a confirmed bearish CHoCH.
• The internal trend state changes from bullish to bearish.
Bullish CHoCH:
• The current structure is bearish.
• Two consecutive candles close above the active bullish P.CHoCH level.
• The script marks a confirmed bullish CHoCH.
• The internal trend state changes from bearish to bullish.
The candle colors are not used for CHoCH confirmation. Only the two consecutive closing prices relative to the protected level are evaluated.
5. DUAL CHoCH
The Dual CHoCH feature tracks an additional structural reference following a confirmed change in direction.
It is intended to highlight a secondary two-close break beyond the previous structural extreme. This can help users distinguish an initial change of character from a more developed structural transition.
Dual CHoCH lines, labels, colors, widths, and styles can be customized separately.
6. STRUCTURE-BASED FIBONACCI LEVELS
When a valid 2CR or 2CG creates a pending BOS setup, the indicator calculates Fibonacci levels across the relevant structure range.
The visible default levels are:
• 0.50
• 0.618
• 0.70
• 1.00
The script can display:
• The current structure Fibonacci
• A selected number of previous Fibonacci structures
• Individual Fibonacci level labels
• Custom colors, widths, and line styles
The 0.50-to-1.00 portion of the calculated range is also used internally as a location filter for qualifying FVG and Order Block zones.
In bullish structure, this generally represents the deeper or discount side of the measured range.
In bearish structure, this generally represents the deeper or premium side of the measured range.
Fibonacci levels are reference locations only. They are not automatic trade-entry signals.
7. FAIR VALUE GAP LOGIC
The script does not search for FVGs across every candle on the chart.
It searches for FVGs only inside confirmed BOS and CHoCH displacement legs.
Bullish FVG requirements include:
• A three-candle bullish wick imbalance
• The third candle’s low is above the first candle’s high
• The third candle closes above the second candle’s high
• Additional inside-candle checks reject compressed or fully contained formations
• The FVG and its associated Order Block must be positioned within the active Fibonacci filtering band
Bearish FVG requirements include:
• A three-candle bearish wick imbalance
• The third candle’s high is below the first candle’s low
• The third candle closes below the second candle’s low
• Additional inside-candle checks reject compressed or fully contained formations
• The FVG and its associated Order Block must be positioned within the active Fibonacci filtering band
Only qualifying structure-leg FVGs are displayed.
8. ORDER BLOCK LOGIC
For each accepted FVG pattern, the script defines the full high-to-low range of the first candle in the three-candle FVG formation as the associated Order Block.
The OB is therefore directly connected to:
• A confirmed BOS or CHoCH leg
• An accepted three-candle FVG pattern
• The active Fibonacci location filter
Bullish and bearish Order Blocks have separate visibility and color settings.
The OB zones are analytical reference areas. They should not be treated as guaranteed reversal or entry locations.
9. FVG AND OB MITIGATION
Users can choose between two FVG mitigation methods.
First Touch:
The zone is considered mitigated when price first enters the FVG boundary.
Full Fill:
The zone remains active until price reaches the opposite boundary of the FVG.
When mitigation occurs, users can choose to:
• Keep the zone as faded historical information
• Hide the completed zone
The associated OB is updated together with its corresponding FVG.
Historical zones show where a valid structure-leg imbalance previously existed. They do not indicate that the zone remains tradable.
10. PREVIOUS DAY AND PREVIOUS WEEK LEVELS
The indicator can display:
• PDH — Previous Day High
• PDL — Previous Day Low
• PWH — Previous Week High
• PWL — Previous Week Low
These values are taken from completed daily and weekly periods.
PDH and PDL alert conditions are included. An alert can be triggered when price touches the active Previous Day High or Previous Day Low for the first time relative to the preceding chart bar.
The levels are contextual liquidity references and are not independent buy or sell signals.
11. OPTIONAL CANDLE ANALYSIS
The optional live candle-analysis panel displays:
• Candle status: live or closed
• Bullish, bearish, or doji classification
• Open, high, low, and close
• Candle-body percentage
• Upper and lower wick sizes
• Full-range or body-inside classification
• Direct 2CR or 2CG close test
Users can also enable candle coloring based on the same classifications.
The panel is intended for studying the conditions used by the structure engine. It is not an order-execution panel.
HOW TO USE THE INDICATOR
1. Use a standard candlestick chart.
2. Select the symbol and timeframe appropriate for your analysis.
3. Observe whether the script is tracking a bullish or bearish structural sequence.
4. Wait for a confirmed 2CR or 2CG marker.
5. Observe the waiting BOS line created at the preceding impulse extreme.
6. Wait for a candle close beyond the waiting BOS line to confirm BOS.
7. After BOS, monitor the newly created P.CHoCH level.
8. A CHoCH is confirmed only after two consecutive closes beyond the protected level.
9. Use structure-leg FVG, OB, Fibonacci, PDH, PDL, PWH, and PWL zones as additional context.
10. Apply independent risk management and entry confirmation before making any trading decision.
The indicator is best used as a chart-organization and market-structure tool rather than as a standalone trading system.
IMPORTANT SETTINGS
2CR / 2CG Settings:
Control retracement labels, zone visibility, colors, and the maximum number of displayed zones.
BOS Settings:
Control waiting BOS lines, confirmed BOS lines, labels, colors, widths, and styles.
CHoCH Settings:
Control confirmed and pending CHoCH levels, previous protected levels, labels, colors, widths, and styles.
Dual CHoCH Settings:
Control secondary CHoCH lines and labels.
BOS Fib Settings:
Control the current Fibonacci structure, previous structures, visible retracement levels, labels, colors, widths, and styles.
FVG Settings:
Control bullish and bearish FVG visibility, mitigation method, active zones, historical zones, scan distance, colors, and maximum stored zones.
Order Block Settings:
Control bullish and bearish OB visibility, active zones, historical zones, text, borders, and colors.
Previous Day / Week Levels:
Control PDH, PDL, PWH, and PWL visibility and PDH/PDL alerts.
Candle Analysis:
Control the live OHLC panel and optional candle classification colors.
REAL-TIME BEHAVIOR
The current candle’s high, low, close, classification, developing structure, and panel values can change while the candle is still open.
Close-dependent conditions such as:
• 2CR confirmation
• 2CG confirmation
• BOS confirmation
• CHoCH confirmation
• FVG body confirmation
should be evaluated after the relevant candle has closed.
Confirmed historical calculations do not intentionally use future candles. Previous-day and previous-week levels are taken from completed reference periods.
LIMITATIONS
• The script begins with an internal bullish structure state and then adapts as confirmed structure events occur.
• Market structure depends on the selected symbol, timeframe, data feed, and available chart history.
• Lower timeframes may produce more structural changes and visual noise.
• A confirmed BOS or CHoCH does not guarantee continuation or reversal.
• FVG, OB, Fibonacci, PDH, PDL, PWH, and PWL levels can be crossed without producing a reaction.
• The script does not account for spread, commission, slippage, economic news, liquidity conditions, or position sizing.
• The number of displayed historical objects is limited by the selected settings and PulseWire’s drawing-object limits.
• Results can differ between brokers or exchanges because their OHLC data may differ.
ALERTS
The current version includes alert conditions for:
• Previous Day High touched
• Previous Day Low touched
Users should create alerts from PulseWire’s alert menu after adding the indicator to a chart.
EDUCATIONAL DISCLAIMER
This indicator is provided for technical-analysis, educational, and informational purposes only.
It is not investment advice, financial advice, or a recommendation to buy or sell any financial instrument. No market-structure event, FVG, Order Block, Fibonacci level, or previous-period level can guarantee a profitable outcome.
Trading and investing involve substantial risk. Users are responsible for independently evaluating all information, testing the indicator, managing their risk, and making their own trading decisions. Past market behavior does not guarantee future results.
Indicator

PO3 Matrix+ (M1D)PO3 Matrix+ (M1D)
Projects the recent candles of a chosen higher timeframe as a compact candle matrix beside live price, then marks the liquidity events, structure and PD array context that develop on that timeframe — taken swings, structure shifts, fair value gaps, previous-day levels, and cross-market divergence. The intent is to read higher-timeframe conditions without leaving the execution chart, and to keep every drawn element sourced from the same data so nothing drifts out of step.
── HOW IT IS BUILT ──
The selected higher timeframe is pulled once, as a snapshot of its recent candles, and every element is drawn on the last bar from that one source. Dividers, high/low rails, quadrants, sweeps, gaps and structure all read the same array, so they cannot disagree with each other. The forming candle is accumulated from chart bars, so it updates live without repainting its history.
Level lines are origin-anchored: each one begins at the candle that actually printed the extreme, not at the bar where the level happened to be calculated. Derived midlines (equilibrium, the inner quartiles) have no originating candle, so they run from the period open instead.
── WHAT IT DRAWS ──
PO3 CANDLE MATRIX — the selected higher timeframe's recent candles, projected to the right of price with time dividers on the live chart and a per-candle high/low rail. A countdown above the block shows the timeframe in use and the time left on the forming candle. The PD array context is mirrored onto the block at its own horizontal scale, and each event carries a compact direction marker there, so the block reads as a standalone view of what that timeframe is showing.
CANDLE EQUILIBRIUM — the true 50 percent of each completed candle in the block, as a reference the following candle can retrace into.
CURRENT-RANGE QUADRANTS — the forming candle's high, 75 percent, equilibrium, 25 percent and low projected across price as a live premium and discount reference.
LIQUIDITY SWEEPS — only swing liquidity is marked. A level qualifies when it is a swing high or swing low that a later candle raids and then closes back inside: wick beyond, body back within. A candle that simply trades past its neighbour is not a sweep and is not marked.
SMT DIVERGENCE — the correlated market is read on the same higher-timeframe grid, so the two align candle for candle. A SMT is marked when your chart takes a swing but the peer fails to take its matching swing, meaning the move lacked cross-market participation. The peer auto-pairs across equity indices, precious metals and BTC against ETH, in matching contract sizes, and can be overridden with any symbol. It deliberately does not guess a peer for markets where the correlation is too loose for a divergence to mean anything; with no pairing, no SMT is drawn. A SMT is invalidated in real time once price trades back through the extreme that formed it, and is then either faded or removed.
MARKET STRUCTURE SHIFT — a true swing broken by a body close. A swing here means a level price actually turned at: a swing low sits at the change from a down candle to an up candle, a swing high at the change from an up candle to a down one. A low that merely sits under its neighbours while price kept running the same way is not a swing and is never used, which is what separates this from a plain pivot break. The first candle to CLOSE beyond the swing's full wick — body, not wick — marks the shift; later closes past the same level are continuation and are not marked. An optional setting requires a liquidity raid to precede the shift, for the classic sweep-then-shift sequencing: a buyside raid before a bearish shift, a sellside raid before a bullish one.
FAIR VALUE GAPS (BISI+ / SIBI-) — detected on the higher-timeframe snapshot, so they are multi-timeframe by construction. Only fully formed gaps are drawn; a gap still forming on the live candle is ignored until it completes. Each zone moves through four states: live, active, inverted, or spent. A gap closed clean through has inverted — the old support is now resistance, or the reverse — and it stays inverted, flipped and redrawn in the inversion colour, for as long as that break holds. No retest is required, because a retest is where the level gets traded rather than what makes it valid. Closing back through in the original direction takes the gap back; the zone is spent, and fades but stays on the chart as history rather than disappearing.
PREVIOUS-DAY LEVELS — previous high, low and equilibrium, drawn from session start and dimming once taken. Three definitions of the day are offered because they genuinely differ on futures: the symbol's own daily candle, midnight to midnight New York, or the regular-hours session only. Regular hours are taken from the instrument itself rather than a fixed clock, so index futures, metals and everything else each use their own session. The label carries the source date, so a level that is several days old after a weekend reads as intentional.
CONTEXT TABLE — day, AMD phase, forming-candle bias, premium or discount, higher-timeframe direction, last sweep, market structure shift, fair value gap, previous-day status, and a session-close countdown. SMT is drawn on the chart and the block but does not have its own table row.
── SETTINGS WORTH KNOWING ──
The higher timeframe must be above the chart timeframe; the script says so on the chart if it is not.
Session handling is read from the instrument, not hardcoded, so the regular-hours option and the session countdown are correct on index futures, metals and anything else without configuration. Instruments that trade around the clock have no regular session, and the countdown says so rather than inventing one.
Every drawn element can be turned on or off on its own, and the chart labels and the compact markers on the projected block are controlled separately, so the block can be kept clean while the chart stays annotated. Label size, colour, vertical clearance, which side of a line a label sits on, and the marker glyph style are all adjustable.
Fair value gap sensitivity is measured against the average range of the visible higher-timeframe candles, so it scales per instrument rather than being a fixed distance. Raise the minimum height and displacement to keep only the larger gaps.
Market structure shift has an optional displacement requirement, off by default. Turn it on if you want the shifting candle to also expand or leave a gap, which reduces how often it marks.
Sweeps, gaps and structure marks each have a maximum shown, so the chart stays contained rather than accumulating history indefinitely. Gap zones also declutter against each other: two translucent zones stacked on the same prices multiply into a solid block, so a zone overlapping one already drawn beyond an adjustable tolerance is skipped and the most recent gap in that price band is the one kept. The same idea applies to stacking: two same-direction zones separated by only a thin seam read as one inefficiency wearing two boxes, so the older one is removed and the newest kept. Zones facing opposite directions are never removed for sitting close together — they are genuinely different reads.
── NOTES ──
Detection runs on completed higher-timeframe candles. The forming candle updates live, but a gap or a structure mark is only considered once the candles that define it have closed.
SMT is not available in bar replay. Replay rewinds the chart symbol only, so the correlated symbol keeps returning its live data and the two grids no longer line up; the table reports Misaligned and no divergence is drawn. That is the alignment guard working, not a fault. Every other feature reads from the chart symbol and replays normally.
Everything drawn is context. There are no entry or exit instructions, no directional calls, and no performance claims of any kind. It reports what has happened on the higher timeframe.
This is a market-analysis tool, not financial advice. Past market behaviour does not indicate future results. Test any tool thoroughly and trade your own plan.
Indicator

Trend Ribbon [MachineSuiteAI]Trend Ribbon
respect ranking, measured cross odds and auditable statistics
🟦 OVERVIEW
A five-average trend ribbon (8 / 21 / 50 / 100 / 200 by default; EMA, WMA, SMA, HMA or VWMA) built on one idea: the ribbon should measure itself.
Beyond the stack-based trend state and 50/100 cross markers, it keeps auditable statistics on the chart it is loaded on: which average price has actually been respecting (and how reliably), how every 50/100 cross resolved, what happened after squeeze expansions and after trend-health peaks — each statistic with its sample size, and each verifiable on the chart itself, dot by dot. It is built for traders who use layered moving averages and want the chart to answer two questions the ribbon genre normally leaves to folklore: which of these lines matters here, and what have these signals actually done on this symbol?
🟦 WHAT IS A TREND RIBBON?
Moving-average ribbons are a public-domain concept: several averages of increasing length plotted together. When they are stacked in order the trend is orderly; when they compress and interleave the market is ranging; crosses of a slower pair mark regime changes. Published ribbon scripts already color stacks, count touches, score trend strength and detect squeezes.
What the genre does not do is resolve outcomes. A ribbon will mark a "golden cross" without knowing how golden crosses have actually resolved on this chart; it will call an average "support" without a record of how often that support held. This script's contribution sits one level up: measurement with discipline, and evidence you can check.
🟦 WHY THIS SCRIPT IS ORIGINAL
- A cross odds engine. Every 50/100 cross is resolved N bars later (default 10) on the loaded symbol and timeframe: did the close move in the cross's direction? The win rate is tracked and split by volume confirmation, higher-timeframe agreement, and whipsaw-cluster membership — each split with its own sample size, greyed below a minimum. To the author's knowledge no published ribbon resolves its own crosses' outcomes, let alone per filter.
- Evidence-gated chart marks. The ✓ volume mark and ⚠ counter-HTF warning print on cross chips only where the measured split beats the chart's own base rate by a configurable margin with sufficient samples. Filters that have not helped on this chart do not decorate it.
- Auditable statistics. The respect record is drawn on the chart: numbered dots mark the counted touches of the leading average (gold = held, grey = failed) and a grey ✕ marks clean pass-throughs where nothing was tested and nothing entered the record. Every number in the panel can be verified visually — no other script found does this.
- Outcomes attached to the score and the squeeze. The 0–100 health score is not just decomposed from a stated formula — the panel reports how often the primary side was still intact at three horizons after past crossings above 80, on this chart. Squeeze expansions are likewise measured N bars later (median move, direction agreement, samples).
- Recency-weighted respect ranking. Touch counting exists in published scripts; here each average's last 12 touches form a rolling record where the newest touch weighs most, and the gold halo must be earned twice over: both the raw record and the weighted recent form have to clear a threshold. Below it the panel reads LOW RESPECT — price slicing through everything is itself information.
- Readability engineered like the statistics. Six engines share one chart only because the visual rules are strict: line identities never change (white 50, amber 100, thick grey 200 — the respect halo is an underlay beneath the leader's own line, never a recolor), whipsaw crosses are de-emphasized but never deleted so the visible ▲/▼ sequence always alternates, higher-timeframe levels identify themselves with end tags instead of a legend, and every mark on the chart has exactly one meaning. Nothing decorative, nothing unexplained.
🟦 HOW IT WORKS
- Trend state: the 50/100 pair picks the side; the state reads BULL or BEAR only when at least 3 of the 4 adjacent stack pairs agree, otherwise CHOP. Fill opacity scales with alignment.
- Respect engine: every touch of every average runs through a small state machine on confirmed bars. A touch requires the prior close beyond the average, a penetration into a tolerance band (default 0.25 × ATR(14)) and a close back on the original side; consecutive contacts merge into one event. The touch HOLDS if no close crosses the far tolerance edge within the resolve window (default 5 bars). Each average keeps its last 12 resolved touches; the best recency-weighted hold rate (minimum 5 touches) leads the ranking, and the leader earns a soft gold halo under its own line only when raw record and recent form both clear the threshold (default 50%).
- Cross odds engine: as described above — confirmed bars only, fixed-horizon resolution, per-filter splits, evidence-gated chip marks.
- Health score: 0–100 from a stated formula — 40% stack alignment + 25% slope consistency + 20% price position + 15% width behavior. The panel tooltip decomposes the live score and reports the measured survival after 80-crossings at half, full and double the outcome window.
- MTF strip and HTF anchors: a small table shows the 50/100 cross state on five timeframes, and up to three higher-timeframe averages plot as stepped level lines (default: the 50/100/200 one regime up, with an optional corridor fill between the pair, tinted by where price trades). Both are read from the last completed bar of their timeframe with confirmed-bar indexing, so they can appear one higher-timeframe bar late but never rewrite. Anchors render only once their timeframe has a full length of history — young symbols never show statistically meaningless levels.
- Squeeze and expansion: ribbon width (widest minus narrowest core average, as % of price) is percentile-ranked over a lookback (default 250 bars); below the threshold percentile the ribbon is squeezed. Every expansion out of a squeeze is measured N bars later: median move, direction agreement with the ribbon state, and an "A-grade" slice (state agreed with the higher timeframe AND volume confirmed) tracked separately.
- Cluster damping: several crosses inside a short window classify as whipsaw; rapid re-crosses shrink to dimmed dots rather than full chips — de-emphasized, never deleted, so the visible ▲/▼ sequence always alternates. A cross suppressed into a cluster can still print later, once, if the market settles on its side.
All statistics are collected on confirmed bars only.
🟦 HOW TO USE IT
- Line identities stay fixed: white 50, amber 100, thick grey 200, fast pair in the trend color. The pair that generates the signals is always findable.
- Read the panel top-down: state, health, stack, the respected average with its raw record and recent form, cross recency, the measured win-rate splits, then width and expansion.
- A typical workflow: before treating a pullback to an average as meaningful, check that average's record — the gold halo and its numbered dots are the evidence. Before taking a cross, check whether volume or higher-timeframe agreement has historically mattered on this particular chart — the ↑ marks in the odds rows answer that. Use the MTF strip for context and the HTF corridor as the higher-timeframe decision zone.
- Defaults suit swing timeframes (4H–1D); everything is length-adjustable.
🟦 SETTINGS
- Averages: type, five core lengths, up to three optional extras, curated price source.
- Respect engine: halo and audit-dot toggles, touch tolerance, hold window, ranking window, minimum touches, gold threshold, recency decay.
- Health score: panel row toggle, outcome window.
- Cross odds engine: outcome horizon, minimum sample, evidence-mark gating mode, improvement margin.
- MTF cross strip: five timeframes, strip position.
- HTF anchors: auto or fixed anchor timeframe, three levels with lengths and colors, corridor or lines-only rendering.
- Visuals and extras: marker style (chips/dots/off), cluster damping, line-coloring mode (stack state or per-line slope), price-scale labels, squeeze shading, conviction-scaled fill, panel position, colors, volume-confirmation multiple.
🟦 ALERTS
Primary 50/100 cross (bull/bear) · fast 8/21 cross (bull/bear) · full stack aligned (bull/bear) · cross + volume (bull/bear) · squeeze start · squeeze expansion + volume · respected-average touch · respected average changed · health crossed 80 · health dropped below 40.
🟦 REPAINT & DATA NOTES
- Chips, dots and all bookkeeping wait for bar confirmation; the live bar updates until it closes.
- Higher-timeframe reads use the last completed bar of their timeframe: repaint-safe, but up to one higher-timeframe bar late by construction.
- Statistics are computed over the loaded history and reset when the chart reloads with a different amount of history; low timeframes load fewer bars.
- Volume-based features — including the VWMA average type — require a feed that supplies volume.
- PulseWire caps a script's labels at 500, so on long intraday histories the oldest cross chips drop off the left edge; the statistics still cover the full loaded history.
- MTF strip rows set below the chart's own timeframe show a dash: a lower timeframe cannot be read repaint-safely from a higher-timeframe chart.
- The higher-timeframe anchor levels can sit far from current price (a weekly 200 on a daily chart, for example), which widens the chart's auto-fitted price scale. Enable "Scale price chart only" in your chart settings — or switch anchors off — if you prefer a tight fit around price.
🟦 CREDITS
Moving averages, ribbons, MA crosses and squeeze concepts are public domain. The implementation — the respect state machine, cross odds engine, evidence gating, health decomposition with measured outcomes, repaint-safe MTF/anchor reads and the audit-dot system — was written from scratch for this script.
🟦 LIMITATIONS
- Moving averages lag; ranging markets whipsaw the state and the crosses. The cluster logic labels that condition, it does not remove it.
- All win rates, hold rates and outcome stats are historical measurements on the loaded chart only. They change with symbol, timeframe and loaded history, are greyed below the minimum sample, and do not predict future results.
- The outcome definition is direction-only over a fixed horizon — no stops, fees, or sizing; this is not a strategy backtest.
🟦 DISCLAIMER
This is an educational analysis tool, not investment advice. Historical measurements, however carefully computed, do not predict future results. Trading involves substantial risk. Indicator

EMA + MACD Pullback Trend StrategyEMA + MACD Pullback Trend Strategy
This strategy is designed to identify trend continuation opportunities using a combination of exponential moving averages, MACD confirmation, and pullback-based price action.
The core logic trades in the direction of the prevailing trend. A fast EMA and a slow EMA are used as directional filters. When the fast EMA is above the slow EMA, the strategy assumes a bullish bias. When the fast EMA is below the slow EMA, the bias becomes bearish.
In addition to the trend filter, the strategy uses MACD to confirm momentum. Long positions are only allowed when MACD is bullish, and short positions are only allowed when MACD is bearish. This helps filter out weak setups and avoid entries without momentum confirmation.
Entries are triggered when price shows signs of resuming the trend, through one of the following conditions:
price crossing above the fast EMA,
a pullback into the fast EMA followed by recovery in an uptrend,
bullish MACD crossover for long entries.
For short positions, the logic is mirrored:
price crossing below the fast EMA,
a pullback into the fast EMA followed by rejection in a downtrend,
bearish MACD crossover for short entries.
The strategy also includes built-in risk management tools:
only one open position at a time,
configurable stop loss based on percentage or ATR,
configurable take profit based on percentage or risk/reward ratio,
optional automatic breakeven after a defined R multiple is reached,
optional trailing stop to protect profits.
This approach aims to balance trade frequency and signal quality, avoiding systems that are either too slow or too sensitive to market noise.
Important: this strategy is intended for educational and backtesting purposes. Parameters should be optimized for each asset, timeframe, and market condition before live use.
EMA + MACD Pullback Trend Strategy
Esta estrategia está diseñada para identificar oportunidades de continuación de tendencia utilizando una combinación de medias móviles exponenciales, MACD y confirmación de retrocesos al precio.
La lógica principal busca operar a favor de la tendencia dominante. Para ello, utiliza una EMA rápida y una EMA lenta como filtro direccional. Cuando la EMA rápida se encuentra por encima de la EMA lenta, el sistema considera un sesgo alcista. Cuando la EMA rápida está por debajo de la EMA lenta, el sesgo es bajista.
Además del filtro de tendencia, la estrategia incorpora el MACD para confirmar el impulso. Solo se habilitan compras cuando el MACD muestra condición alcista, y ventas cuando muestra condición bajista. De esta forma, se evita operar señales débiles o movimientos sin confirmación.
Las entradas se activan cuando el precio muestra intención de reanudar la tendencia, ya sea mediante:
cruce del precio sobre la EMA rápida,
retroceso y recuperación de la EMA rápida en tendencia alcista,
cruce alcista del MACD para compras.
En el caso de ventas, la lógica es equivalente pero invertida:
cruce del precio por debajo de la EMA rápida,
retroceso y rechazo de la EMA rápida en tendencia bajista,
cruce bajista del MACD para ventas.
La estrategia también incluye herramientas de gestión de riesgo:
una sola operación simultánea,
stop loss configurable por porcentaje o ATR,
take profit configurable por porcentaje o ratio respecto al stop,
breakeven automático al alcanzar un múltiplo definido del riesgo,
trailing stop opcional para proteger ganancias.
Este enfoque busca un equilibrio entre frecuencia operativa y calidad de señal, evitando sistemas excesivamente lentos o demasiado sensibles al ruido del mercado.
Importante: esta estrategia es educativa y de backtesting. Se recomienda optimizar parámetros según el activo, la temporalidad y las condiciones de mercado antes de utilizarla en entornos reales.
Strategy

Liquidity Sweep Reversal [JOAT]═══ LIQUIDITY SWEEP REVERSAL ═══
Liquidity Sweep Reversal hunts the stop-run. Price wicks beyond a prior swing high or low to grab resting liquidity, then snaps back inside — and that reclaim is where the reversal often begins. This tool tracks those levels, validates the sweep, and frames a complete trade with stop, targets and live outcome stats. 🎯
▎ WHAT IT DOES
It maps recent swing highs and swing lows as liquidity pools, watches for a candle to pierce one and then close back on the correct side (the reclaim ), and prints a clean BUY or SELL label. Every valid signal is turned into a structured trade: an ATR-based stop beyond the swept wick and three R-multiple targets, all tracked to resolution on a self-scoring dashboard.
▎ HOW IT WORKS
• Liquidity mapping — Confirmed pivot highs and lows (lookback set by Swing Pivot Lookback ) are stored as active levels per side, capped in count and aged out after a maximum bar age so only relevant pools remain.
• Sweep + reclaim — A bullish setup needs the bar to wick below a tracked swing low, then close back above it (sell-side liquidity grabbed). A bearish setup wicks above a swing high, then closes back below it. The reclaim can complete on the sweep bar or within the Reclaim Window you allow.
• Wick-depth gate — The penetration beyond the level is measured in ATR. Too shallow (noise) or too deep beyond the Max Wick cap (a genuine breakout) is rejected, so only clean stop-hunts qualify.
• Confluence filters — Optional volume-spike confirmation, HTF trend alignment (BUY only above a higher-timeframe EMA, SELL only below), directional restriction, dual-side sweep blocking on wide bars, and a signal cooldown all thin the feed.
• Trade construction — Entry is the reclaim close. The stop sits beyond the swept wick by an ATR buffer, then is clamped between a min-risk floor and max-risk cap. That risk (1R) projects TP1 / TP2 / TP3 at your chosen R multiples.
• Outcome engine — Each trade is followed bar by bar. Same-bar stop-vs-target conflicts resolve by your chosen priority, and trades that never reach TP3 or stop are flattened at a bar timeout — every result feeds the stats.
▎ HOW TO USE IT
• A BUY pill under price marks a bullish reclaim; a SELL pill above price marks a bearish one. The dotted level line and SSL / BSL SWEEP tag show exactly which liquidity pool was raided.
• The green target zone spans entry to TP3; the red risk zone spans entry to stop. Lines and left-side labels print entry, SL and each TP with its R value.
• On close, a result label reports the outcome — TP3 , a protected partial TP , SL , or a TIME exit — with the realised R.
• Treat signals as a structured framework, not a black box: strongest reversals tend to appear at obvious swing extremes, with HTF alignment and a volume spike behind them.
▎ KEY SETTINGS
• Engine — pivot lookback, reclaim window, ATR length, tracked levels per side, level age, and signal direction (Both / Long / Short).
• Filters — min/max wick depth, volume-spike confirmation, HTF timeframe + EMA, dual-side blocking, and cooldown bars.
• Trade Model — stop buffer, min/max risk bounds, TP1/TP2/TP3 in R, same-bar priority, trade timeout, and drawn-trade history depth.
• Visuals — toggles for markers, sweep lines, zones, level labels, result labels, optional signal-candle tint, and a session VWAP ± σ band .
▎ DASHBOARD
A compact panel reports live state — Status (Waiting / Armed / Active), current active trade side, last sweep and its level — alongside performance: sweeps detected, signals taken, closed count, win rate , profit factor , average R , bull vs bear win%, current and max win/loss streak , and an optional TP1/TP2/TP3 vs SL/Timeout breakdown. Position and text size are configurable.
▎ ALERTS
• Bullish Sweep (BUY) and Bearish Sweep (SELL) on confirmed entries.
• TP3 Hit , Partial TP Hit (protected exit), and SL Hit on trade resolution.
▎ NOTES
• Works on all timeframes and all assets — instruments without volume simply pass the volume filter.
• Signals confirm on the reclaim close , so a printed BUY/SELL marker does not move once the bar closes.
• Every visual has a toggle — turn off zones, lines, labels or the dashboard for a minimalist chart.
• The on-chart statistics summarise historical signals only and are illustrative, not a forecast.
For research and education only. This is not financial advice. No indicator can predict the future, and past behaviour does not guarantee future results. Always manage your own risk.
Made with passion by JackOfAllTrades ⚡ Indicator

Delta Volume Profile,Order Flow, Buy/Sell&Absorption POC LunqFXA normal volume profile shows you HOW MUCH volume traded at each price. Delta Volume Profile shows you WHO did it — buyers or sellers — at every price level. Each row of the profile is split into buying volume and selling volume, turning a plain histogram into a clean order-flow map that reveals where demand and supply were really built, and the one level where a large player was quietly absorbing the flow.
❶ WHAT YOU SEE
▸ THE DELTA PROFILE — a horizontal volume profile on the right of price, but every price level is split in two: blue = buying volume, orange = selling volume. The total length of a row is the volume traded there; the blue/orange split is the delta — the balance of buyers versus sellers at that exact price. One glance tells you whether a level was accumulation, distribution, or a fair two-sided fight.
▸ ABSORPTION POC — this is the level that matters most, and it is not the ordinary Point of Control. A classic POC is simply the highest-volume row. The Absorption POC is the row where heavy volume traded with a balanced delta — lots of buying AND selling at the same price. That is the signature of absorption: a large participant filling orders against the crowd without letting price move. It is marked with a gold line and label, because it is where reversals and strong reactions most often begin.
▸ DASHBOARD — a compact readout of the whole range: NET DELTA (are buyers or sellers in control overall), the Buy/Sell split as a percentage, and the exact Absorption price.
❷ WHY DELTA AND ABSORPTION MATTER
Price only tells you where the market went. Order flow tells you the effort behind the move. A rally on weak buying delta is fragile; a level held by heavy two-sided absorption is where smart money is defending a position. By splitting volume into buy and sell at every price — and by isolating the absorption level — this profile shows the intent behind the volume, not just its size. That is the difference between a plain volume profile and an order-flow read.
❸ HOW TO USE IT
1 — Read the NET DELTA in the dashboard. Positive = buyers dominated the range (look for longs on pullbacks); negative = sellers dominated (favour shorts on rallies).
2 — Trade toward and away from the ABSORPTION level. It acts as a magnet and a strong support/resistance zone — price often returns to it, and reactions from it are among the cleanest on the chart. Use it as a target or as your line in the sand.
3 — Read each level's split before you trust it. A level that is mostly blue (buying) is genuine demand; a level built on orange (selling) is supply. When price approaches a level, its colour tells you which side is likely to defend it.
4 — Watch for imbalance vs balance. Strongly one-sided rows (almost all blue or all orange) mark aggressive, directional levels. Balanced rows — especially the Absorption POC — mark battle zones where the trend is most likely to stall or turn.
❹ HOW IT WORKS (transparent)
For every bar, volume is split into buy-volume and sell-volume from where price closed inside the bar's range: buy-volume = volume × (close − low) ÷ range, sell-volume = volume × (high − close) ÷ range. This is a transparent, range-based delta estimate — it needs no tick or bid/ask feed, so it runs on any symbol. Each bar's buy and sell volume is added to the price row it traded in, across a fixed rolling lookback. The Absorption POC is the row that maximises (row volume ÷ largest row volume) × (1 − |buy − sell| ÷ row volume) — heavy volume weighted by how balanced its delta is. On symbols that report no exchange volume, the profile falls back to equal weight per bar (a price-density profile) so it still works everywhere, and the panel says PRICE PROFILE instead of DELTA PROFILE.
Best used on markets with real volume — crypto (e.g. BINANCE:BTCUSDT), stocks, futures and indices — on any timeframe. On forex the volume is broker tick-volume, so treat the delta as an approximation of order flow.
SETTINGS — lookback, number of rows (resolution), profile width, row gap, absorption line on/off, neutral candles on/off, and dashboard position.
NON-REPAINTING — the profile is built only from closed historical bars over a fixed lookback and drawn on the last bar. It uses no request.security and no lookahead, so history never changes; only the current forming bar updates live, as with any volume profile.
This indicator is an educational market-analysis tool, not financial advice. The volume delta shown is a transparent estimate from price and volume, not exchange-audited bid/ask order flow, and past behaviour does not guarantee future results. Always confirm with your own analysis and manage your risk. Indicator

Trend Direction Zone Trend Direction Zone is a compact trend-state indicator designed to answer one practical question:
Which market direction is currently confirmed by both price position and the movement of the trend line?
The indicator combines a lag-reduced trend line, an adaptive ATR-based zone, and filtered direction-change markers.
These are not separate indicators simply placed on the same chart. All components work together as one unified model for detecting and maintaining the current market direction:
🔹 the central line estimates the underlying direction of price movement;
🔹 the adaptive zone provides current volatility context;
🔹 confirmation filters determine when the active direction is allowed to change;
🔹 triangles mark only confirmed transitions from one direction to the other.
This structure allows traders to assess market direction quickly without cluttering the chart with repeated crossover signals, targets, probability percentages, dashboards, or calculations unrelated to the indicator’s primary purpose.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 How the trend line is calculated
The central trend line calculation begins with an exponential moving average of the selected price source.
A second exponential moving average is then calculated from the first EMA.
The difference between the first and second EMA is used as a lag-compensation component:
Trend Line = EMA + (EMA − EMA of EMA) × Lag Reduction
The Lag Reduction parameter controls how quickly the line responds:
🔹 a value of 0 produces the base EMA;
🔹 higher values allow the line to react more quickly to price changes;
🔹 excessively high values can increase sensitivity and produce greater overshoot during sharp price movements.
The Trend Length parameter defines the primary smoothing period.
Lower values make the line faster and more sensitive. Higher values create a slower and smoother directional reference.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌊 How the adaptive zone works
The colored zone around the central line is calculated using Average True Range — ATR.
Instead of using only a fixed ATR multiplier, the script compares the current ATR value with the highest and lowest ATR values observed during the selected period.
This produces a normalized volatility level showing whether current volatility is relatively low or high compared with its recent range.
The zone width takes into account:
🔹 the current ATR value;
🔹 the position of the current ATR within its recent volatility range;
🔹 the user-defined Zone Width multiplier.
Therefore:
the zone contracts when volatility is relatively low;
the zone expands when volatility is elevated.
The zone is intended to provide volatility context around the trend line.
Its boundaries are not calculated as support, resistance, stop-loss, or profit-target levels.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧭 How direction is determined
The indicator does not change direction based only on a simple crossover between price and the central line.
For a potential bullish direction, three conditions must be satisfied simultaneously:
🔹 the three-bar slope of the central line must be positive;
🔹 price must be above the central line;
🔹 the distance between price and the line must exceed the ATR-based Switch Filter.
For a potential bearish direction, the opposite conditions are required:
🔹 the slope of the central line must be negative;
🔹 price must be below the central line;
🔹 the distance between price and the line must exceed the selected ATR-based filter.
Before the active direction changes, the new conditions must remain valid for the selected number of closed bars.
The Minimum Bars Between Signals parameter defines the minimum number of bars required between opposite signals.
Its purpose is to reduce rapid switching between bullish and bearish states during short and noisy price movements.
Once a direction has been confirmed, the indicator maintains that state until the opposite direction is confirmed.
Temporary weakening of the current move does not immediately return the indicator to a neutral state.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 How to read the indicator
Green line and green zone
A bullish direction is currently confirmed.
Red line and red zone
A bearish direction is currently confirmed.
Green upward triangle
Marks the confirmation of a new bullish direction.
Red downward triangle
Marks the confirmation of a new bearish direction.
Bullish triangles are always positioned below the central line.
Bearish triangles are always positioned above the central line.
The distance between the triangles and the central line is calculated using ATR. This allows their placement to adapt to the price scale and volatility of the selected instrument.
The Signal Distance From Line parameter changes only the visual distance between the triangle and the central line.
It does not affect the direction calculation or the timing of the signal.
⚠️ The triangles should be interpreted as markers of a confirmed trend-state transition, not as automatic instructions to enter or exit a trade.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ Default settings
Trend Length: 20
Lag Reduction: 1.2
ATR Length: 14
Zone Width: 2.0
Direction Confirmation: 2 closed bars
Switch Filter: 0.20 ATR
Minimum Bars Between Signals: 5 bars
Signal Distance From Line: 0.45 ATR
The default values are intended as a balanced starting point.
They are not optimized for any specific instrument, market, or timeframe.
Increasing Trend Length, Direction Confirmation, Switch Filter, or Minimum Bars Between Signals will generally result in:
🔹 fewer direction changes;
🔹 a more persistent trend state;
🔹 later confirmation of a new direction.
Reducing these values generally makes the indicator more responsive, but may increase the number of direction changes during sideways market conditions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⏱ Real-time behavior
Direction changes, triangle markers, and alert conditions are confirmed only after the candle has closed.
The central line and adaptive zone use current price and volatility data, so they may move while the active candle is still forming.
A direction triangle is not confirmed on an unfinished candle.
The script uses data only from:
🔹 the current chart symbol;
🔹 the current chart timeframe.
It does not request data from higher timeframes and does not use calculations that reference future values.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alerts
The indicator includes two alert conditions:
Bullish Direction — a bullish direction has been confirmed.
Bearish Direction — a bearish direction has been confirmed.
The alerts correspond to confirmed direction changes.
When creating an alert, it is recommended to select Once Per Bar Close.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡 Limitations
Trend Direction Zone is a visual trend-following tool.
It does not predict future prices or identify exact market tops and bottoms.
Like other trend-following methods, the indicator may confirm a direction change after the reversal has already begun.
In sideways or irregular markets, direction changes may occur without developing into sustained trends.
The confirmation and minimum-signal-spacing filters reduce some short-term switching. However, stronger filtering may also delay the recognition of fast reversals.
A wide zone means that current volatility is elevated relative to recent values.
It does not mean that price must remain inside the zone.
The indicator does not include:
🔹 position-size calculations;
🔹 stop-loss levels;
🔹 profit targets;
🔹 strategy backtesting;
🔹 performance statistics.
Trend Direction Zone should be used as one source of information about current market conditions alongside the trader’s own analysis and risk-management process. Indicator

VMC Cipher B evolved with regime detection /filters false signalOverview
Adaptive Cipher is an evolution of the classic VMC Cipher B, built to solve one of the fundamental weaknesses of oscillator-based indicators: they fail in trending markets.
The original VMC Cipher B works beautifully in ranging markets — it catches oversold bottoms and overbought tops with high accuracy. But when a stock enters a sustained trend, the WaveTrend oscillator gets "stuck" in overbought territory and starts generating sell signals throughout an entire bull run. Adaptive Cipher solves this with a regime detection layer.
What's New
Regime Detection The indicator continuously measures the 20-bar average of wt2. Based on this:
TREND — wt2 average ≥ +15. The stock is in a sustained uptrend. Sell signals are suppressed unless confirmed by real divergence.
RANGE — wt2 average between -15 and +15. Classic oscillator signals work best here.
DUSUS (Downtrend) — wt2 average ≤ -15. Buy signals are marked as counter-trend warnings instead of primary entries.
The regime is shown in the info panel and as a subtle background color on the oscillator pane (green = trend, red = downtrend).
Trend Continuation Signal (◆ Cyan) A new signal type exclusive to trend mode. When a stock is trending up, a small pullback completes, and wt2 turns back upward — the indicator fires a cyan ◆ entry signal. This is the signal that classic VMC never had: enter during the pullback, ride the trend.
Counter-Trend Warning (⚠ Orange) In downtrend mode, when oversold conditions appear, the indicator shows an orange ⚠ instead of a green buy dot. Technically a buy setup — but the trend is against you. Proceed with caution or skip.
Filtered Sell Signals In trend mode, sell signals only fire when a genuine bearish divergence is confirmed — not simply because wt2 is overbought. This prevents the classic "SAT SAT SAT (sell) " false alarm pattern during strong uptrends.
WaveTrend Safety Fix A division-by-zero safety fix prevents the rare wt2 spike anomaly (e.g. wt2 = 339) that could occur when price movement was near-zero for several bars.
Signal Guide
Signal Meaning When to act
Large green ● Strong Buy — OS divergence or momentum reversal RANGE or TREND mode
Large red ● Strong Sell — bearish divergence confirmed RANGE mode (or genuine top in TREND)
Large yellow ● Gold Buy — extreme OS + divergence + RSI < 30 Always — strongest signal
◆ Cyan Trend Continuation — pullback complete, resume TREND mode only
⚠ Orange Counter Buy — OS but downtrend Enter small or skip
Small · green/red WT Cross — momentum shift Confirmation only
Small ◆ green/red TDI Cross — momentum crossover Confirmation only
Info Panel
The top-left panel shows:
REJIM — Current regime: TREND (green) / RANGE (gray) / DUSUS (red)
WT — WaveTrend position: OB / OS / Notr
RSI — Current RSI value with color coding
TDI — TDI momentum direction: Bull / Bear
SQZ — Squeeze status: SQZ ON / Normal
Components Included
WaveTrend (wt1, wt2, VWAP line)
Regime average line (wt2 20-bar SMA)
RSI with OB/OS coloring
MFI area
Stochastic RSI (K & D)
TDI (Fast RSI / Slow RSI)
Squeeze dot (Lazybear-style)
Regular & Hidden Divergence detection
Gold Buy signal
Best Used With
This indicator was developed and tested primarily on Borsa Istanbul (BIST) equities on the Weekly timeframe. It works on any market and timeframe, but regime thresholds may need adjustment for different assets.
For best results, combine with a price action or trend-following indicator for exits. AWC is strong at finding entries — it does not define exits.
Parameters
Regime Detection
Regime Lookback (default 20) — Bars used to calculate wt2 average for regime classification
Bull Threshold (default 15) — wt2 average above this = TREND mode
Bear Threshold (default -15) — wt2 average below this = DOWNTREND mode
Signal Settings
Momentum Bull Threshold (default -35) — How deep wt2 must be for momentum reversal signal. Lower = stricter.
Momentum Bear Threshold (default +35) — Same for bear side
Trend Continuation Min wt2 (default 10) — Minimum wt2 level for continuation signal
RSI Filter — Filters divergence signals by RSI level for higher quality entries
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice. Past performance of any signal does not guarantee future results. Always manage your risk.
Developed by CamurTheDog Built on VMC Cipher B by LazyBear / Lazybear's community Indicator

Judas Swing Detector [algo_aakash]Judas Swing Detector is a session-based reversal indicator that models the institutional Judas Swing as a complete, sequential price event rather than a single false-breakout candle. Instead of flagging every session-open wick that reverses, the script requires a full chain of confirmed conditions — a locked Initial Range, a liquidity sweep beyond it, a rejection close back inside, an optional market structure shift, institutional-grade displacement, and higher-timeframe trend agreement — before a signal is ever scored, drawn, or alerted.
Problem Statement
A Judas Swing is commonly described as "price sweeps one side of the session open and reverses," but that description alone matches an enormous number of ordinary, low-quality wicks. Scripts that flag every such wick generate far more noise than usable signal, because a sweep and a close-back-inside is only the first half of the institutional sequence — it says nothing about whether the reversal has real structural or momentum support, or whether it agrees with the underlying daily trend.
This indicator addresses that gap by treating the Judas Swing as a seven-stage sequence and only surfacing a signal once every enabled stage has been satisfied on confirmed price data, with the overall setup then ranked by a disclosed, weighted confidence score.
Methodology
A session window (London Open, New York Open, or a fully custom session and timezone) drives an Initial Range engine that locks the session's high and low once a configurable opening window (5, 10, 15 or 30 minutes) elapses. The Initial Range is drawn as a transparent box and extends for the remainder of the session.
Once the Initial Range is locked, the script watches for a liquidity sweep: a wick that pierces beyond the Initial Range high or low by at least a minimum ATR-based distance, with the same candle closing back inside the range. This closing-back-inside requirement is what separates a genuine sweep-and-reject from an ordinary breakout continuation.
A confirmed sweep becomes a pending candidate. If Market Structure Confirmation is enabled, the candidate must be followed by a genuine structure shift measured against minor swing pivots that form strictly after the sweep bar: a higher high following a low-side sweep, or a lower low following a high-side sweep. Candidates that do not produce this structure shift within a configurable bar timeout are discarded with no signal created.
A qualifying candidate is then subjected to a Displacement Filter, requiring the confirming candle's body to reach a minimum ATR multiple, and an optional Higher Timeframe Bias check, requiring a fast/slow EMA relationship on a user-selected higher timeframe (e.g. 1H, 4H, Daily) to agree with the reversal direction. Only after every enabled stage passes does the script compute the Judas Confidence Filter score.
The Judas Confidence Filter combines five independently disclosed, user-weighted factors into a single 0-100 score: sweep depth (how far price pierced beyond the Initial Range in ATR units), displacement (the confirming candle's body size in ATR units), HTF agreement (the normalized separation between the fast and slow higher-timeframe EMA, reflecting how decisively the higher-timeframe trend supports the direction), rejection quality (where the sweep candle closed within its own range), and reversal aggression (how few bars elapsed between the sweep and structure confirmation). Weights are user-adjustable and auto-normalized. A signal is only plotted and only triggers alerts if its score meets the Minimum Confidence Score threshold — this is a genuine filtering mechanism that changes what is drawn, not a cosmetic label applied afterward.
Confirmed signals optionally draw an Entry Zone between the 50% and 62% retracement of the confirming displacement candle, reflecting where institutional-style retracement entries are commonly sought after a confirmed reversal, along with a stop-reference line at the sweep extreme. Both extend forward and are visually dimmed once price closes back through the sweep extreme, marking the setup invalidated.
Signal Workflow
Step 1 — the selected session opens and the Initial Range begins building from the session's first 5-30 minutes of price action.
Step 2 — the Initial Range locks; the script now watches for a liquidity sweep beyond either side of that locked range.
Step 3 — a wick pierces beyond the range by a minimum ATR distance and the same candle closes back inside, registering a pending sweep candidate.
Step 4 — if enabled, the candidate must be followed by a market structure shift measured against post-sweep swing pivots, within a bounded bar timeout.
Step 5 — the confirming candle must clear the ATR-based displacement threshold, and if enabled, the higher-timeframe EMA bias must agree with the reversal direction.
Step 6 — the completed sequence is scored by the Judas Confidence Filter across five weighted factors; only scores at or above the minimum threshold are plotted and alerted.
Step 7 — an optional 50%-62% entry zone and stop-reference line are drawn from the confirming candle and remain active until price closes back through the original sweep extreme.
Why This Indicator Is Different
Most public "Judas Swing" or session-sweep scripts fire on the sweep-and-close-back-inside event alone, with no structural or momentum confirmation and no higher-timeframe context.
This script models the full institutional sequence explicitly — session, Initial Range, sweep, rejection, structure shift, displacement, HTF agreement — and only creates a signal after every enabled stage resolves in order on confirmed bar closes.
The Judas Confidence Filter converts five independently disclosed factors, including reversal aggression measured in bars-to-confirmation and rejection quality measured from close position within the sweep candle's own range, into a single adjustable score rather than a binary flag.
Confidence weighting is fully exposed, letting the ranking be tuned toward sweep depth, displacement strength, higher-timeframe agreement, rejection quality, or reversal speed depending on the trader's approach.
The optional 50%-62% Entry Zone models a specific, disclosed institutional retracement convention rather than simply marking the signal bar.
Inputs
Session Engine
Session (London Open / New York Open / Custom)
Custom Session Window
Session Timezone
Initial Range
Initial Range Duration (5/10/15/30 minutes)
Show Initial Range Box
Liquidity Sweep Detection
Minimum Sweep Pierce (x ATR)
Market Structure Confirmation
Require MSS Confirmation
MSS Pivot Length
MSS Timeout (bars)
Displacement Filter
Displacement Threshold (x ATR)
ATR Length
Higher Timeframe Bias
Require HTF Bias Agreement
HTF Timeframe
HTF Fast/Slow EMA Length
Judas Confidence Filter
Minimum Confidence Score
High-Confidence Threshold
Advanced weight sliders for sweep depth, displacement, HTF agreement, rejection quality, and reversal aggression
Entry Zone
Show Entry Zone (50%-62% Retracement)
Entry Zone Extension (bars)
Visual Settings
Show Sweep Markers / Confirmation Arrows / Stop Marker
Label Size
Bullish/Bearish/Initial Range/Elite Score Colors
Status Panel
Show Status Panel
Panel Position
Alerts
Alerts are available for:
Session Started
Liquidity Sweep detected
Bullish Judas Swing confirmed
Bearish Judas Swing confirmed
High-Confidence Judas Swing (Elite grade)
Higher-Timeframe Bias Change
Entry Zone Reached
Practical Usage
Use the status panel's HTF Bias reading as directional context before evaluating an individual Judas signal.
Treat a High-Confidence (Elite) signal as a materially stronger setup than one that merely clears the minimum threshold, since it reflects agreement across all five scored factors rather than a narrow pass.
Raise the Minimum Confidence Score on lower timeframes or noisy instruments to reduce the number of marginal signals generated.
Disable Require MSS Confirmation only if you specifically want to evaluate the sweep-and-rejection event on its own, understanding this removes one of the seven confirming stages.
Combine the alert feed with a broader trade plan, since each alert marks a structural event, not an execution signal.
Limitations
The Initial Range and session logic depend on the chart's intrabar data matching the selected session window; behavior on markets with irregular or 24-hour sessions may differ from traditional FX/futures sessions.
Market structure confirmation depends on minor swing pivots, which require bars to form on both sides before they confirm, introducing an inherent, bounded delay.
Confidence scoring is a relative, disclosed ranking and does not predict the outcome of any individual signal.
The higher-timeframe bias is read via a standard non-repainting security call and reflects EMA relationship only; it is not an independent trend-strength model.
As with any structure-based tool, results will vary across instruments, timeframes, and market regimes.
Notes
This indicator is a session and structure analysis tool intended to organize and score the Judas Swing sequence through a disclosed, multi-stage validation process.
All session state, sweep detection, structure confirmation, displacement, and scoring are evaluated on confirmed bar closes only, so no element of the script repaints once drawn.
The output is intended to support structural analysis and is not a standalone buy or sell recommendation.
Indicator

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

OBV Signal Confluence [MarkitTick]💡 This advanced technical utility provides a comprehensive evaluation of market momentum by synthesizing cumulative volume flow with structural trend dynamics and dynamic support levels. Designed for rigorous market analysis, it evaluates directional shifts by demanding strict confluence across multiple dimensions, including momentum divergence, historical trend validation, and volatility expansion. Rather than relying on isolated price action, this tool builds a holistic profile of market participation, delivering a complete framework for structured trade management and robust signal verification.
● ✨ Originality and Utility
Most traditional momentum oscillators evaluate price velocity in a vacuum, completely ignoring the underlying participation required to sustain a trend. This utility stands apart by merging volume-weighted momentum with strict filtering mechanisms to evaluate the true strength of a market move. By integrating a multi-tiered filtration system, it effectively isolates high-probability directional shifts while filtering out low-participation market noise.
The utility is entirely self-contained, projecting dynamic trade management levels directly onto the chart when momentum alignment is confirmed. It seamlessly bridges the gap between raw data analysis and actionable trade management. By establishing precise entry, invalidation, and multiple target zones based on current market volatility, it transforms raw volume data into a structured operational blueprint.
Furthermore, the inclusion of a comprehensive heads-up display ensures that all underlying metrics—from momentum strength to historical trend states—are continuously aggregated and visually accessible, allowing for rapid contextual assessment without cluttering the primary analytical workspace.
● 🔬 Methodology and Concepts
This tool operates on a sophisticated, multi-layered evaluative engine. To protect the integrity of the underlying architecture, the methodology is described conceptually:
Cumulative Volume Flow: The primary engine evaluates the continuous flow of market volume, categorizing buying and selling pressure based on specific price action thresholds. This cumulative data is then smoothed against a dynamic, user-selectable baseline to establish the core momentum trajectory.
Higher Timeframe Confluence: To prevent acting on insignificant intraday fluctuations, the engine references the structural momentum of a higher timeframe. Signals are strictly gated unless the localized momentum aligns with this broader, macro-level directional bias.
Momentum Divergence Detection: The utility continuously scans for structural discrepancies between price pivot extremes and the corresponding extremes in the volume flow. When price establishes new structural boundaries without validating volume participation, the system flags these areas as potential exhaustion or reversal zones.
Volatility and Participation Filters: Trend strength and volume ratios are continuously measured against established historical averages. The engine requires both a minimum threshold of directional strength and a surge in relative volume participation to validate any momentum shift, ensuring that structural breaks are supported by actual market activity.
Dynamic Risk Profiling: Upon signal confirmation, the tool automatically calculates an invalidation level utilizing a multiplier of the underlying asset's average true volatility. Profit targets are then extrapolated from this established risk parameter, ensuring that every projected setup adheres to strict, predefined risk-to-reward ratios.
● 🎨 Visual Guide
The visual interface is designed to provide immediate contextual awareness while maintaining a clean charting environment:
Momentum Histogram: Plotted as columns, this visualizes the delta between the cumulative volume flow and its dynamic baseline. Color intensity shifts dynamically to reflect both the direction and the immediate acceleration or deceleration of the momentum.
Heat Candles: When enabled, this feature overrides the native chart candles, painting the price action to match the underlying volume momentum state, allowing for rapid visual confirmation of the current trend environment.
Divergence Markers: Distinct upward and downward triangular shapes are plotted directly on the chart to indicate areas where structural price action has diverged from the supporting volume flow.
Trade Management Levels: Upon a confirmed momentum shift, dashed horizontal lines appear to project the Entry, Stop Loss (SL), and three tiered Take Profit (TP) zones.
Risk/Reward Shading: Shaded background zones visually map the risk parameters, contrasting the invalidation zone against the projected reward territory to provide an immediate assessment of the trade's structural viability.
Heads-Up Dashboard: A customizable table anchored to the chart corner. It provides a real-time aggregate readout of all critical internal metrics, including current trend state, raw momentum values, divergence status, participation ratios, and active trade progression percentages.
● 📖 How to Use
Establish Context: Monitor the Heads-Up Dashboard to evaluate the current macro trend state and participation ratios. Wait for the dashboard to indicate alignment between directional momentum, volume participation, and trend strength.
Identify Confluence: Look for structural momentum shifts indicated by the histogram crossing its zero-line, strictly validated by the alignment of the Heat Candles. Divergence markers appearing prior to these shifts serve as early warning signs of an impending structural rotation.
Signal Confirmation: Wait for the current bar to close. The utility is engineered to execute calculations on confirmed data to ensure structural stability. A confirmed signal will instantly plot the dynamic trade management levels.
Execute and Manage: Utilize the projected Entry, Stop Loss, and Take Profit levels to structure your position. The Risk/Reward shading and the progress tracker on the dashboard will provide continuous feedback as the price action develops toward the established targets.
Alert Integration: For automated tracking, configure the built-in alert conditions which generate structured data payloads for long entries, short entries, position closures, and individual target strikes.
● ⚙️ Inputs and Settings
Core: Define the source data for momentum calculations and select the preferred baseline calculation method and lookback length. This also includes the pivot length for divergence detection.
Filters: Activate and calibrate the higher timeframe alignment constraints. Set the specific lengths and minimum thresholds for directional strength and volume participation multipliers to strictly define what constitutes a valid breakout.
Trade: Toggle the visibility of the dynamic management levels. Adjust the volatility lookback, the invalidation multiplier, and customize the exact risk-to-reward ratios for all three projected profit targets.
Vis: Control the visual clutter by toggling the histogram, zero line, divergence signals, and heat candles on or off according to personal preference.
Dash: Enable or disable the Heads-Up Dashboard and anchor it to any of the four chart corners for optimal workspace organization.
Alerts: Define custom action strings and dynamic payload identifiers to integrate seamlessly with external execution engines or tracking software.
Colors: Fully customize the aesthetic profile of the indicator. Modify the specific hex values and opacities for the histogram states, trade levels, risk shading, divergence markers, and the internal dashboard elements to match your charting theme.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The foundation of this utility is deeply rooted in the principles of Auction Market Theory and the Law of Effort versus Result. In any financial market, price discovery is driven by the continuous auction process between buyers and sellers. However, price alone is a one-dimensional metric. Volume represents the actual energy or "effort" expended to move that price. By systematically analyzing the relationship between price displacement and volume flow, this tool effectively maps the true liquidity absorption within the market.
When a market establishes a new structural price extreme, fundamental market mechanics dictate that this move must be supported by an equivalent expansion in volume participation. If the aggregate volume flow begins to decelerate while price continues to advance, a structural divergence is formed. This indicates a severe lack of liquidity supporting the current auction, highlighting an area where the prevailing trend is highly vulnerable to mean reversion or a complete structural failure.
Furthermore, the integration of volatility-based risk profiling adheres to established quantitative risk management principles. Market volatility is not static; it constantly expands and contracts in cyclical phases. By anchoring invalidation levels to a dynamic multiplier of average true volatility, the utility ensures that risk parameters adapt to the current market environment. This prevents premature invalidation during periods of high liquidity expansion while maintaining tight structural constraints during periods of market consolidation.
⚠️ 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. Indicator

ALGOSMART ASSIST v2ALGOSMART TECHNICAL ASSIST - Advanced Smart Money & Market Structure Indicator
The ALGOSMART ASSIST indicator is an intelligent and highly advanced tool designed for analysts and traders who utilize Smart Money Concepts (SMC) and Price Action. This powerful script automates your chart analysis by identifying and drawing all vital market structures in real-time.
Key Features:
Market Structure Mapping: Automatically detects and plots Break of Structure (BOS) and Change of Character (CHoCH). You can customize the structure type to map with or without Inducement (IDM).
Supply & Demand Zones: Accurately draws Points of Interest (POI) and Supply/Demand order blocks. Mitigated zones automatically change color.
Liquidity Sweeps: Highlights crucial daily highs and lows (PDH/PDL) and displays sweep lines.
Specific Candle Patterns: Toggle the detection of important candlestick patterns such as Inside Bars (ISB), Outside Bars (OSB), and Strong Change of Character Bars (SCOB).
Live Tracking: Projects dynamic, real-time lines for BOS, CHoCH, and IDM directly to the live price edge.
Additional Assistive Tools: Displays the 0.5 Equilibrium level, marks major swing points (HH, HL, LL, LH), and automatically calculates potential Target Profits.
Original base script by AlbaTherium & Ma Bang Chu. Modified, Updated and Enhanced by Crypto Smart. Indicator

SD Zone Pro - Grouped Pivot Volume & Supply-Demand ZonesSD Zone Pro - Grouped Pivot Volume & Supply-Demand Zones
Overview
SD Zone Pro is an advanced Supply and Demand (SD) zone detection tool engineered to highlight key institutional interest areas on your charts.
Unlike traditional supply/demand indicators that rely solely on single-bar imbalances or simple market structure breaks, SD Zone Pro uses a smart pivot-clustering algorithm. It tracks consecutive swing highs and lows, aggregates their corresponding trading volumes, and dynamically groups closely-spaced pivots into high-conviction consolidated zones.
Whether you are a scalper looking for quick reaction levels or a swing trader identifying major macro support/resistance areas, SD Zone Pro provides a clear, clutter-free representation of order flow dynamics.
Key Features
Smart Pivot Clustering: Automatically groups a user-defined number of consecutive high or low pivots to form robust Supply/Demand zones.
Volume Aggregation & Formatting: Calculates the cumulative volume traded across all merged pivots within a zone (formatted cleanly as K, M, or B).
Dynamic Zone Merging (ATR-Based): Evaluates spatial proximity using ATR (Average True Range) to automatically merge overlapping or closely situated boxes, preventing chart clutter.
Proximity Detection: Continuously expands active zones if new pivots occur within a customizable bar distance threshold.
Multi-Timeframe / Multi-Horizon Flexibility: Adjustable inputs designed for short-term, medium-term, and long-term trading horizons.
Display Control: Fully customizable rendering modes (Demand Only, Supply Only, or Both) and max box retention controls to optimize pine script performance.
How It Works
Pivot Identification: The indicator continuously detects structural Highs and Lows based on Pivot High Length and Pivot Low Length settings.
Grouping & Volume Accumulation: Once High Pivots to Group or Low Pivots to Group count is reached, it identifies the key extreme price level (lowest low for demand, highest high for supply) and sums up the total volume generated during those pivot bars.
Zone Drawing: A visual box is drawn from the key extreme price level with a dynamic offset (ATR * 0.5) to mark the zone boundary.
Proximity & Overlap Merge:
Proximity Check: If a new cluster forms within Proximity Distance (Bars), it updates and merges into the active cluster.
Tolerance Merge: If a finalized zone overlaps or sits within Box Merge Tolerance (ATR Multiplier) distance of an existing closed zone, the two zones merge into a single consolidated box and sum their volume labels.
Inputs & Settings Guide
1. Pivot Detection
Pivot Low Length / Pivot High Length: Determines the number of left/right bars required to confirm a pivot.
Short Term: 1 - 3
Medium Term: 5 - 10
Long Term: 14 - 21
2. Clustering Parameters
Low Pivots to Group / High Pivots to Group: Sets how many consecutive pivots form a single cluster.
Short Term: 2 - 3
Medium Term: 5
Long Term: 8 - 10
Proximity Distance (Bars): Maximum bar distance to combine new incoming pivots into the current active cluster.
Short Term: 5 - 10 bars
Medium Term: 15 - 25 bars
Long Term: 30+ bars
3. Box & Merge Settings
Box Merge Tolerance (ATR Multiplier): ATR multiplier used to detect overlapping zones. Higher values merge wider zones together.
Short Term: 0.5 - 1.0 (Narrower, precise zones)
Medium Term: 1.5 - 2.0
Long Term: 2.5+ (Broad macro zones)
Maximum Box Count (0 = Unlimited): Limits the number of historical zones retained on the chart to maintain clean visual performance (Set to 0 for unlimited).
4. Display Controls
Display Mode: Choose between Demand Only, Supply Only, or Both.
Show Demand / Supply Labels & Draw Boxes: Toggle volume labels or visual boxes independently to suit your chart template.
Practical Trading Strategies
1. Demand & Supply Retests (Bounce Play)
Look for price returning to an active Demand Zone (Red Box) or Supply Zone (Green Box) with significant aggregated volume. High volume in a consolidated zone indicates strong institutional order absorption, offering high R:R (Risk-to-Reward) entry points.
2. High-Volume Zone Breakouts (Flip Zones)
When price aggressively closes through a high-volume Supply or Demand zone, that zone often flips role (e.g., broken Supply becomes future Demand).
3. Confluence with Market Structure
Use Pivot High Length and Pivot Low Length set to 5 or higher on 1H / 4H timeframes to mark macro liquidity pools, then align lower timeframe entries when price reaches these pre-marked SD zones.
Disclaimer: This indicator is designed for analytical and educational purposes only. It does not constitute financial advice or trade signals. Always use proper risk management and validate setups with additional market context Indicator

Indicator

Trend Pulse MSL Trend Pulse is a comprehensive indicator designed to analyze the current market regime, buying and selling pressure, and the strength of completed bullish and bearish waves.
The indicator is built around three interconnected calculation components:
Predictive Balance — a predictive market-equilibrium level.
Pressure Pulse — an oscillator measuring current directional pressure.
Wave Memory — a system for evaluating completed bullish and bearish pressure waves.
Each component has a distinct purpose, but none of them operates independently. The output of one calculation block becomes an input for the next, creating a single integrated market-state model.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 What the indicator is designed to answer
MSL Trend Pulse helps traders evaluate five questions in sequence:
What directional market regime is currently active?
Which side is applying more pressure: buyers or sellers?
Is current pressure aligned with the broader Bias or moving against it?
How strong is the current pressure?
Is that pressure strengthening, fading, expanding, cooling, or becoming overheated?
This is not a mechanical entry-and-exit system and not a simple collection of several standard indicators placed in one script.
MSL Trend Pulse was designed as a unified analytical model in which:
Predictive Balance identifies the price regime;
Pressure Pulse measures current directional pressure;
Wave Memory evaluates the strength of completed waves;
Dashboard combines the results into a readable market-state interpretation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 Why these components are combined
Predictive Balance estimates a dynamic market-equilibrium level and the direction in which that equilibrium is moving.
The movement of Predictive Balance and the distance between price and the balance level are then used as inputs in the calculation of Pressure Pulse.
Pressure Pulse determines:
the direction of current pressure;
the intensity of that pressure;
the beginning of a new pressure wave;
the completion of the previous pressure wave.
Completed pressure sequences are passed to Wave Memory.
Wave Memory separately maintains reference strength for:
bullish waves;
bearish waves.
These reference values are used to calculate the slower-moving market Bias.
Each component therefore adds a different layer of information:
Predictive Balance describes the price regime;
Pressure Pulse describes current pressure;
Wave Memory describes the historical wave context;
Dashboard provides the final interpretation.
Standard Pine Script functions, including ATR and EMA, are used only for volatility normalization and smoothing.
They are not used as standalone trade signals and do not form a conventional moving-average crossover system.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚖️ Predictive Balance
Predictive Balance is a recursive level-and-drift model.
The calculation uses a weighted price source:
Price Source = (High + Low + 2 × Close) / 4
The closing price receives additional weight because Close represents the final price accepted during the current period.
The indicator then measures directional path efficiency over the selected Direction Window.
Path efficiency compares:
the net distance between the beginning and end of the calculation window;
the total absolute path traveled by price during the same period.
High path efficiency
Price moved consistently and predominantly in one direction.
Low path efficiency
Price traveled through a large number of alternating movements but made relatively little net progress.
The resulting efficiency value controls how quickly Predictive Balance reacts.
The model first projects the next balance level by:
taking the previous balance value;
adding the previously estimated directional drift.
It then calculates the prediction error: the difference between the projected level and the current weighted price.
This prediction error updates two elements simultaneously:
the current Predictive Balance level;
the direction and speed of the drift.
As a result, the line can:
react faster during efficient directional movement;
become more stable during noisy or sideways conditions;
account not only for the position of price, but also for the direction of its own estimated movement.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔺 Market regime changes
The market regime does not change simply because price touches or briefly crosses Predictive Balance.
An adaptive confirmation zone is calculated around the balance line using:
current ATR;
directional path efficiency;
the base band width;
the selected level of noise protection.
During irregular or inefficient price movement, the zone becomes wider.
During consistent directional movement, the zone can become narrower.
Bullish regime confirmation
A bullish regime change requires both conditions:
price closes above the upper boundary of the adaptive zone;
Predictive Balance drift is positive.
Bearish regime confirmation
A bearish regime change requires both conditions:
price closes below the lower boundary of the adaptive zone;
Predictive Balance drift is negative.
This state-retention logic reduces frequent bullish and bearish switches around the balance line.
A green upward-pointing triangle marks a confirmed transition into a bullish regime.
A red downward-pointing triangle marks a confirmed transition into a bearish regime.
The triangles represent changes in the calculated regime. They are not standalone recommendations to buy or sell an asset.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Pressure Pulse
Pressure Pulse measures current directional pressure using four interconnected price characteristics.
1. Candle body pressure — 35%
The distance between Open and Close is normalized by ATR.
This component measures the directional displacement of the candle relative to current market volatility.
2. Closing-location pressure — 25%
Close is evaluated relative to the candle’s full High–Low range.
A close near the High increases positive pressure.
A close near the Low increases negative pressure.
A close near the middle of the range produces a more neutral reading.
3. Predictive Balance movement — 25%
The change in Predictive Balance is normalized by ATR.
This component reflects the direction and speed of the estimated equilibrium level.
4. Price stretch — 15%
The distance between Close and Predictive Balance is normalized by ATR.
This component measures how far price has extended from the estimated market equilibrium.
After the four components are combined, the result passes through an adaptive pressure-memory process.
In noisy market conditions
Pressure memory becomes shorter, allowing weak and irregular pressure to decay more quickly.
In directional market conditions
Pressure memory becomes longer, allowing persistent pressure to remain visible for a longer period.
The accumulated result is then:
normalized against its own recent average amplitude;
smoothed;
softly compressed to maintain a comparable visual scale across different instruments and timeframes.
Reading the histogram
Above zero — bullish pressure is dominant.
Below zero — bearish pressure is dominant.
Rising bars — directional pressure is increasing.
Shrinking bars — directional pressure is fading.
High amplitude — strong normalized pressure.
Low amplitude — weak pressure.
Pressure Pulse does not reset when price crosses Predictive Balance.
This makes it possible to follow the development of pressure independently of a single price-to-line crossover.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌊 Wave Memory
Wave Memory analyzes completed sequences of bullish and bearish pressure.
Beginning of a bullish wave
A bullish wave begins when Pressure Pulse moves above the positive Wave Deadband boundary.
Beginning of a bearish wave
A bearish wave begins when Pressure Pulse moves below the negative Wave Deadband boundary.
The neutral area around zero prevents every small histogram fluctuation from creating a new wave.
For each completed wave, the script calculates:
average absolute pressure;
peak absolute pressure;
duration in bars;
price-path efficiency.
Price-path efficiency compares:
the net price movement from the beginning to the end of the wave;
the total absolute price path traveled during that wave.
If price moved predominantly in one direction, efficiency will be high.
If the wave contained substantial movement but produced little net price change, efficiency will be low.
The final wave-strength calculation incorporates:
70% average pressure;
30% peak pressure;
the square root of wave duration;
an adjustment for price-path efficiency.
Bullish and bearish waves update separate historical reference values.
A newly completed wave does not immediately replace the previous reference. Instead, it gradually updates the corresponding reference according to the Reference Update setting.
This process creates a more stable wave-based Bias.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧭 Dashboard
The Dashboard displays four characteristics of the current market state:
Phase — the relationship between current pressure and Bias.
Magnitude — the current strength of Pressure Pulse.
Bias — the relative strength of completed bullish and bearish waves.
State — the current development stage of directional pressure.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Phase — market phase
Bullish Impulse
Bullish pressure is aligned with bullish Bias.
Current movement supports the broader bullish wave context.
Bearish Impulse
Bearish pressure is aligned with bearish Bias.
Current movement supports the broader bearish wave context.
Bullish Pullback
Bullish pressure is developing against bearish Bias.
This may represent a corrective movement within a broader bearish context.
Bearish Pullback
Bearish pressure is developing against bullish Bias.
This may represent a corrective decline within a broader bullish context.
Bullish Pressure
Bullish pressure is active, but completed waves have not yet established a clear directional Bias.
Bearish Pressure
Bearish pressure is active, but completed waves have not yet established a clear directional Bias.
Balanced
Pressure Pulse remains inside the neutral deadband, so meaningful directional pressure is not currently present.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Magnitude — pressure strength
Magnitude is based on the absolute value of the current normalized Pressure Pulse:
Weak — below 0.40.
Normal — from 0.40 to 0.85.
Strong — from 0.85 to 1.30.
Extreme — 1.30 and above.
Magnitude measures the current intensity of pressure. It does not represent the probability of a future move and does not predict how far price may travel.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Bias — wave direction
Bullish
Completed bullish waves are stronger on average than completed bearish waves.
Bearish
Completed bearish waves are stronger on average than completed bullish waves.
Neutral
Neither side has established sufficient relative dominance.
Bias is calculated from completed pressure waves and therefore intentionally changes more slowly than Pressure Pulse.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
State — pressure development
Building
Pressure is increasing while Bias remains neutral.
Fading
Pressure is decreasing while Bias remains neutral.
Expansion
Pressure is aligned with a directional Bias and continues to increase.
Cooling
Pressure is moving against Bias or is beginning to lose strength.
Overheated
Pressure has reached an extreme level but has already started to weaken.
Balanced
No meaningful directional-pressure state is currently present.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 How to use the indicator
A practical analysis sequence is:
Identify the active regime using the color of Predictive Balance and the most recent triangle.
Review Bias to determine which side has produced stronger completed waves.
Use Phase to determine whether current pressure supports Bias or represents a counter-move.
Use Magnitude to evaluate the current intensity of pressure.
Use State to determine whether pressure is strengthening or losing momentum.
Example 1
Bullish Bias + Bullish Impulse + Expansion
Bullish pressure supports the broader bullish wave context and continues to strengthen.
Example 2
Bullish Bias + Bearish Pullback + Cooling
Bearish pressure is developing against bullish Bias, but the counter-move is losing strength.
Example 3
Bearish Bias + Bullish Pullback + Cooling
Bullish pressure is present against the broader bearish context but has begun to weaken.
Example 4
Neutral Bias + Bullish Pressure + Building
Bullish pressure is increasing, but completed waves have not yet established a sustained advantage for buyers.
Possible applications
MSL Trend Pulse can be used for:
market-regime confirmation;
pullback analysis;
current momentum assessment;
evaluating alignment between current pressure and Bias;
filtering trading scenarios;
monitoring the strengthening and weakening of directional movement.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alerts
The indicator includes four alert conditions:
MSL Bull Flip — a transition into a bullish regime has been confirmed.
MSL Bear Flip — a transition into a bearish regime has been confirmed.
MSL Pressure Up — Pressure Pulse crossed above zero.
MSL Pressure Down — Pressure Pulse crossed below zero.
When Confirm Flips On Bar Close is enabled, regime changes and corresponding alerts are confirmed only after the candle closes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ Main settings
Direction Window
Controls the period used to measure directional path efficiency.
Minimum Reaction / Maximum Reaction
Define the lower and upper limits of Predictive Balance reaction speed.
Drift Learning
Controls how quickly the model learns changes in market direction and movement speed.
Drift Damping
Controls how quickly previously estimated drift loses its influence.
Volatility Length
Defines the ATR period used for volatility normalization.
Flip Band Base
Sets the minimum width of the adaptive regime-confirmation zone.
Noise Protection
Widens the regime-change zone during noisy or inefficient market movement.
Normalisation Length
Defines the period used to normalize Pressure Pulse against its own recent amplitude.
Pulse Smoothing
Controls the final smoothing applied to the Pressure Pulse histogram.
Minimum Memory / Maximum Memory
Define the lower and upper limits of pressure persistence.
Wave Deadband
Defines the neutral zone used to separate bullish and bearish pressure waves.
Reference Update
Controls how strongly each completed wave updates its corresponding historical reference.
Minimum Wave Bars
Defines the minimum wave duration required before a completed wave can update Wave Memory.
Window
Allows wave statistics to use all available chart history or begin from a selected date.
Reactive Candles
Colors candles according to the direction and intensity of Pressure Pulse.
Glow Effect / Glow Intensity
Control the visual glow applied to Predictive Balance and the Pressure Pulse histogram.
These settings affect presentation only. They do not change calculations, regime logic, or alerts.
Dashboard Position
Allows the Dashboard to be placed in the upper-right, middle-right, or lower-right area of the chart.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ Calculation behavior and limitations
The indicator does not use future bars.
Values on closed historical candles remain fixed after those candles are completed.
Values on the active candle may change before it closes because High, Low, and Close are not yet final.
Bias is based on completed waves and therefore reacts more slowly than Pressure Pulse.
During the early stage of a reversal, Bias may temporarily retain its previous direction.
Sudden gaps and news-driven candles can cause rapid changes in Predictive Balance and Pressure Pulse.
Results may be less stable on low-liquidity instruments.
Indicator behavior depends on the instrument, volatility environment, and selected timeframe.
MSL Trend Pulse does not calculate:
position size;
stop-loss placement;
profit targets;
acceptable trade risk;
mechanical entry or exit points.
The indicator is designed to analyze market context. No individual Dashboard state, line color, triangle, or histogram reading should be interpreted as a guaranteed forecast of future price movement. Indicator

Machine Learning Neural Network EngineMachine Learning Neural Network Engine turns complex Daily market behavior into three clear states: LONG, WATCH and CASH.
Instead of relying on one fixed trend signal, the indicator combines an adaptive neural network, continuous model validation and an independent crisis detector. The result is a simple visual interface backed by a fully causal machine-learning process.
HOW IT WORKS
At its core is a compact 6-5-1 neural network trained directly on the chart.
It analyzes six normalized features:
Short- and medium-term trend structure
RSI momentum
Deviation from linear regression
Directional price efficiency
Relative volatility
Candle pressure adjusted by relative volume
The network learns sequentially from completed market outcomes. On each confirmed Daily bar, it can only train on information from an earlier bar whose result has become known. Current predictions never use future data.
Training uses nonlinear neurons, RMS-scaled gradient updates, error clipping and regularization. This is an adaptive online model, not a set of fixed coefficients labelled as machine learning.
SELF-AUDITING MACHINE LEARNING
The neural network is continuously compared with an independent structural trend model.
When the network’s matured predictions provide useful additional information, its influence increases. When its recent error becomes worse than the structural baseline, its influence is automatically reduced.
This live validation mechanism prevents the indicator from trusting its machine-learning component unconditionally.
CRISIS DETECTION
A separate stress engine monitors:
Rapid 10-day declines
Drawdown from the 63-day high
Abnormal ATR expansion
Long-term price structure
This layer can trigger a defensive state independently of the neural model, helping the indicator respond to sudden market deterioration.
HOW TO READ IT
LONG — Green
The model, trend structure and confirmation rules support a constructive market environment.
WATCH — Amber
The market remains structurally LONG, but risk or exit evidence is increasing.
CASH — Red
The environment is defensive because of persistent weakness or confirmed crisis stress. The indicator never takes short positions.
The colored neural axis and surrounding halo display the active state without covering the chart with labels. Transition pulses identify confirmed changes, while the dashboard shows bull probability, neural risk and the current machine-learning audit.
WHAT MAKES IT DIFFERENT
The script integrates four distinct functions:
1. Online neural-network learning
2. Live error-based model validation
3. Independent downside-stress detection
4. A confirmed state machine designed to limit excessive switching
These components are not combined as a simple indicator vote. Each has a separate role in learning, validation, protection or state stabilization.
SETTINGS
ML response controls adaptation speed and signal stability:
Fast reacts sooner.
Balanced is the recommended starting point.
Smooth prioritizes stability.
ML selectivity controls how much evidence is required before LONG or CASH is confirmed.
The indicator is designed exclusively for standard Daily charts.
BUILT-IN COMPARISON
The dashboard includes a lagged long/cash comparison with buy-and-hold. It applies the selected transition cost and openly displays periods when the model underperforms.
This comparison is a diagnostic tool, not a complete strategy backtest. It does not include every possible spread, slippage, tax, financing or execution constraint.
IMPORTANT LIMITATIONS
The bull probability is an internal normalized score, not a statistically calibrated probability of profit. The model can react late, generate false transitions in sideways markets and cannot eliminate gap risk.
The developing Daily bar may change before closing. Confirmed historical states use no future data, no lookahead and no higher-timeframe security calls.
This indicator provides market context, not financial advice or guaranteed performance. Online learning does not imply future outperformance.
Indicator

Indicator

Confluence Suite: Pivot Points SuperTrend Confluence Suite: PP SuperTrend + VWAP + MACD + RSI + ADX + Volume
A multi-factor confluence dashboard built around Pivot Point SuperTrend, designed for futures trading on any timeframe.
Overview
This indicator combines six widely-used tools into a single confluence system with a live on-chart dashboard:
Pivot Point SuperTrend — the core trend/entry engine, using pivot highs/lows instead of a simple moving midpoint to anchor its ATR bands
VWAP — session-anchored, used to gauge whether price is trading with or against the volume-weighted average
MACD — momentum confirmation and early continuation signals
RSI — momentum/overbought-oversold context
ADX / DMI — trend-strength filter, so signals can be weighted by whether the market is actually trending or chopping
Volume — flags above-average participation and volume spikes
Higher-timeframe (HTF) bias filter — checks trend direction on a higher timeframe (EMA-based or ATR SuperTrend-based) before treating a signal as confirmed
All of this feeds a compact on-chart dashboard table that shows the live bias of every component at a glance, plus a running bullish/bearish confluence score.
How signals work
Raw flip signals — small triangles mark every Pivot Point SuperTrend direction flip
Confirmed signals — larger LONG/SHORT labels fire when a flip is also aligned with the HTF bias filter (and optionally ADX strength), meant to filter out lower-quality flips
Continuation signals — smaller circular markers that fire while an existing trend is still active, triggered by a pullback-and-reclaim of a short EMA, an RSI reset through 50, or a MACD cross (configurable), so the tool isn't limited to a single signal per swing
Dashboard
A table (position and size configurable) shows the current bias of PP SuperTrend, VWAP, MACD, RSI, ADX, Volume, HTF Bias, and Continuation mode, along with an aggregate bull/bear confluence count — useful for judging signal quality at a glance rather than reading each indicator separately.
Inputs
Every component is independently configurable: Pivot Point period, ATR factor/period, VWAP source, MACD lengths, RSI length/levels, ADX/DMI length and strength threshold, volume MA length and spike multiplier, HTF timeframe and bias method, continuation trigger type and cooldown, and dashboard placement/size. Built-in alert conditions are included for raw flips, confirmed signals, and continuation signals.
How to use it
This is a discretionary confluence tool, not a standalone automated strategy. It's best used to:
Gauge whether a Pivot Point SuperTrend flip has broader support from momentum, volume, and higher-timeframe trend before acting on it
Track ongoing trend health via the continuation signals and dashboard, rather than only reacting at the initial flip
Filter out lower-quality setups using the ADX and HTF alignment options
As with any indicator, backtest and forward-test on your specific instrument and timeframe before trading it live, since default settings won't be optimal for every market or volatility regime.
Credits and originality
The core trend engine is an original implementation of the Pivot Point SuperTrend technique, a widely used community approach that anchors SuperTrend-style ATR bands to pivot highs/lows rather than a simple moving midpoint — a method popularized on PulseWire by LonesomeTheBlue. This script's contribution is combining that engine with VWAP, MACD, RSI, ADX, volume, an HTF bias filter, a continuation-signal engine, and a unified live dashboard into one integrated confluence tool, rather than requiring multiple separate indicators on the chart.
Disclaimer
This script is provided for educational and informational purposes only and does not constitute financial advice. Trading futures involves substantial risk of loss and is not suitable for all investors. Past performance of any strategy or setup does not guarantee future results. Always do your own research and risk management before trading. Indicator

Anchored Trend FollowerAnchored Trend Follower
This indicator draws a single trendline that automatically follows a trend from a starting point you choose.
How it works
You manually drag the anchor point onto a swing low (for an uptrend) or a swing high (for a downtrend) — this is your starting reference. From there, the script tracks confirmed pivot highs/lows and extends the trendline forward each time a new higher low (uptrend) or lower high (downtrend) forms, keeping the line "snapped" to the most recent valid point in the structure.
If price accelerates and breaks the prior swing without a clear pullback in between (a melt-up or melt-down), the indicator shifts the anchor forward along the same slope rather than leaving a stale, disconnected line — so the trendline stays visually continuous even through strong impulsive moves.
Inputs
Anchor Point — drag to the swing low/high you want the trend measured from
Direction — Uptrend or Downtrend
Pivot Left/Right Bars — controls how sensitive pivot detection is; lower values react faster but pick up more noise, higher values are smoother but confirm with more lag (pivots always confirm rightBars bars after they form — this delay is unavoidable and by design, to avoid repainting)
Stop Following Once Trend Breaks — if off, the line keeps waiting for the next valid pivot even through minor pullbacks; if on, the line freezes permanently the first time a low/high fails to hold
Notes
This is a manual, discretionary tool — you choose the anchor, so the trend "start" reflects your read of the chart, not an automated pivot search.
Pivots require confirmation bars to print, so the line updates with some lag by construction; it will not repaint once a pivot is confirmed.
Best used as a visual structure/trend guide alongside your own analysis — not a standalone buy/sell signal generator. Indicator
