Native Volume Footprint, 1H Alignment, Brackets & OBs by GuruJamThe TradingView Pine Script v6 dashboard is built to function as a comprehensive macroeconomic and technical analysis tool, specifically optimized for tracking the Nairobi Securities Exchange.
Here is a breakdown of its core structural and functional components:
Core Functionality
Macro-Economic Integration: The script allows for sector-specific customization, enabling you to align technical movements with broader Kenyan macroeconomic trends and specific market sectors.
Advanced Technical Mapping: It incorporates Smart Money Concepts, specifically utilizing horizontal liquidity boxes. These visually map out critical zones of institutional interest, historical support/resistance, and areas where liquidity is resting.
Automated Signal Filtering: Instead of raw data plotting, the script runs market data through customized filters to generate automated, actionable trade signals based on the confluence of volume, price action, and liquidity sweeps.
Technical Architecture
Language: Written in Pine Script v6, taking advantage of the latest array functionalities, dynamic lines, and box drawing capabilities for real-time order book and liquidity evaluation.
Display: Designed as an overlay or dashboard interface to provide multi-timeframe insights without cluttering the primary price chart. Indicatore

COT Category Screener [invincible3]COT Category Screener — Participant Select
The COT Category Screener is a professional Commitment of Traders dashboard designed to compare positioning across multiple futures markets from one compact table.
It uses Legacy COT data and allows traders to analyze either Non-Commercial or Commercial participants. Every displayed metric—including net positioning, historical indices, score, bias, ranking, and weekly history—automatically adapts to the selected participant.
MARKET CATEGORIES
The screener supports the following groups:
• Metals
• Energy
• Grains & Oilseeds
• Soft Commodities
• Livestock
• Equity Indices
• Cryptocurrencies
• Major Currencies
• Emerging-Market Currencies
Depending on the selected category, the dashboard compares up to eight markets simultaneously.
PARTICIPANT SELECTION
Choose between:
Non-Commercial
Primarily reflects speculative positioning from large traders such as funds and institutional market participants.
Commercial
Reflects the positioning stance of commercial participants and hedgers.
Commercial mode represents the Commercial participant-side perspective . It should not automatically be interpreted as a contrarian market signal.
When Commercial and Non-Commercial positioning spreads are symmetrical, their displayed scores and bias states will naturally appear opposite.
DASHBOARD METRICS
OI — Open Interest
Displays the total number of outstanding contracts reported for the selected market.
NET — Net Position
Calculated as:
Long Positions − Short Positions
A positive value indicates net-long positioning, while a negative value indicates net-short positioning.
ΔNET — Weekly Net Change
Measures the change in the selected participant’s net position compared with the previous COT report.
It helps identify whether participants are:
• Adding long exposure
• Reducing long exposure
• Adding short exposure
• Covering short exposure
L% and S%
Displays the selected participant’s long and short positions as a percentage of total open interest.
FLIP%
Calculated as:
Long% − Short%
A positive Flip% indicates stronger long exposure, while a negative Flip% indicates stronger short exposure.
HISTORICAL DIFFERENCE MODEL
The screener calculates the historical position of the spread between the selected participant and the opposite participant over three report windows:
• D13 — 13-report difference index
• D26 — 26-report difference index
• D52 — 52-report difference index
These values range from 0 to 100.
In the screener’s model:
• Lower Difference values contribute to a more bullish score.
• Higher Difference values contribute to a more bearish score.
The three windows are weighted as follows:
• D13: 20%
• D26: 30%
• D52: 50%
The longer-term D52 component therefore carries the greatest influence.
COT POSITION INDICES
I52
Shows the selected participant’s current net position relative to its historical range over the previous 52 reports.
I3Y
Shows the same relative position over 156 reports, approximately three years of weekly COT history.
Values near 0 indicate positioning near the lower end of the historical range.
Values near 100 indicate positioning near the upper end of the historical range.
These indices describe historical positioning extremes and should be interpreted together with the participant type, Difference readings, weekly net change, and overall bias.
COMPOSITE SCORE
The screener converts the weighted D13, D26, and D52 readings into a normalized score ranging from:
• +100 — Strong bullish positioning setup
• 0 — Neutral or mixed positioning
• −100 — Strong bearish positioning setup
The score is designed for relative comparison and ranking across markets within the selected category.
BIAS STATES
▲ BUY
Positioning has reached a potential bottom-zone setup.
This identifies an extreme condition, but it does not confirm that positioning has already reversed.
↗ BULL TURN
Short- and medium-term positioning has begun turning upward from a bullish extreme.
▲ LONG BUILD
A bullish turn is supported by a positive weekly change in net positioning, indicating that the selected participant is actively building long exposure.
▲ LONG BIAS
Positioning remains within the bullish side of the model, although a fresh turning condition is not present.
↘ LONG UNWIND
The broader positioning structure remains bullish, but net exposure declined during the latest report.
↗ SHORT COVER
The broader structure remains bearish, but net positioning increased, suggesting that short exposure may be reducing.
▼ SHORT BIAS
Positioning remains within the bearish side of the model without a newly confirmed bearish turn.
◇ TOP RISK
Positioning has reached a potential upper-zone or overcrowded extreme.
This is a risk condition rather than an immediate sell confirmation.
↘ BEAR TURN
Short- and medium-term positioning has begun turning downward from a bearish extreme.
▼ SHORT BUILD
A bearish turn is supported by a negative weekly change in net positioning, indicating active short-position accumulation or long-position reduction.
• NEUTRAL
Positioning is mixed and does not meet the defined bullish or bearish thresholds.
— NO DATA
Sufficient historical COT observations are not yet available for the selected calculation.
WEEKLY POSITIONING HISTORY
The final column displays a compact 10–15 week Flip% sparkline .
Each vertical character represents one COT reporting week:
• The oldest report appears on the left.
• The most recent report appears on the right.
• Taller bars represent stronger relative Flip% readings.
The history can be normalized independently for each market or displayed using a fixed percentage range.
Hover over the history cell to view the underlying weekly values.
SORTING OPTIONS
Markets can be arranged by:
• Category Order
• Bullish → Bearish
• Bearish → Bullish
• Strongest Extreme
This makes it easier to identify the strongest relative opportunities or risks within a market group.
VISUAL DESIGN
The dashboard uses neutral table surfaces with value-colored typography rather than full-cell heatmap coloring.
It automatically adapts to light and dark chart themes and includes detailed hover tooltips for:
• CFTC market codes
• Raw positioning values
• Difference readings
• Historical indices
• Composite scores
• Bias calculations
• Weekly Flip% history
DATA OPTIONS
The user can select between:
• Futures Only
• Futures and Options Combined
All calculations are based on weekly COT reports and are not intended to represent real-time positioning.
SUGGESTED USE
This screener is designed for:
• Identifying historically crowded positioning
• Comparing related futures markets
• Detecting positioning accumulation or distribution
• Monitoring speculative and commercial behavior separately
• Locating potential medium-term bottom or top setups
• Confirming broader macro or price-action analysis
COT positioning is generally more suitable for contextual and medium-term analysis than precise entry timing.
Signals should be combined with price structure, trend, momentum, volatility, and appropriate risk-management rules.
DISCLAIMER
This indicator is an analytical tool and does not constitute financial advice.
Historical positioning extremes do not guarantee a market reversal or continuation.
Indicatore

Astro Bias Dashboard 🧭 ASTRO BIAS DASHBOARD
A one-glance morning dashboard that combines five classical astronomical cycles into a single daily bias score — and then checks that bias against live price action before suggesting anything.
━━━ HOW IT WORKS ━━━
The script computes real astronomical values using mean-longitude formulas (J2000 epoch):
- Moon phase — waxing or waning, with illumination percent
- Sun-Moon angle — harmony (trine/sextile), tension (square/opposition), or neutral
- Mercury retrograde — approximated from the 115.88-day synodic cycle
- Eclipse season — Sun's proximity to the lunar nodes
- Planetary hour (hora) — Chaldean sequence from a user-set sunrise time
The first four factors are captured once at the start of each session and stay FIXED for the whole day (score out of 4). This is deliberate: a daily bias that flickers intrabar is useless. Only the hora row updates hourly, because it is a timing tool by design — and it is intentionally excluded from the score.
The dashboard then adds a live reality check: price versus EMA 50. A final Verdict row compares the fixed astro bias with the live trend:
- ALIGNED — astro bias and price agree
- CONFLICT — price is moving against the bias. Price always wins; the dashboard tells you to stand aside.
━━━ HOW TO USE ━━━
1. Check the dashboard once at market open — the bias is fixed for the day.
2. Trade only in the Verdict row's direction. On CONFLICT, reduce size or stay flat.
3. Use the hora row for entry timing: benefic horas (Moon, Mercury, Venus, Jupiter) are preferred entry windows.
4. Combine with your own levels and setups — this is a context filter, not an entry signal.
Alerts included: daily bias bullish/caution, hora change, astro-price conflict, astro-price alignment.
━━━ SETTINGS ━━━
Sunrise hour, dashboard position (8 placements), text size, EMA 50 plot toggle and color, trade-plan rows toggle.
━━━ NOTES & ORIGINALITY ━━━
All astronomical values are computed from scratch inside Pine using mean-longitude approximations — no external data, no libraries, no reused code. Accuracy is well within the tolerance needed for cycle-timing work, though exact panchang timings may differ by a few hours.
This tool treats astronomical cycles strictly as a timing reference. It does not predict market direction, and nothing here is financial advice. Always confirm with price action and manage risk. Indicatore

Live Market Probability Matrix ProLive Market Probability Matrix Pro
Live Market Probability Matrix Pro is an advanced Pine Script® v6 indicator developed to provide a real-time probability-based view of market strength, momentum, trend direction, and overall buying versus selling pressure in a single visual dashboard.
Unlike traditional indicators that rely on only one calculation such as RSI, MACD, or Moving Averages, this indicator combines multiple market components into a unified probability engine that continuously evaluates live market conditions and displays them in an easy-to-read visual format.
The purpose of this indicator is to simplify market analysis by converting complex market data into a dynamic probability system that helps traders understand which side of the market currently has stronger control, how confident that control is, and whether the existing trend has enough strength to continue or weaken.
This indicator was designed for traders who prefer visual market analysis instead of interpreting multiple separate indicators.
Why This Indicator Was Created?
Most trading indicators only measure one aspect of the market.
For example:
• RSI measures momentum.
• ATR measures volatility.
• Volume measures participation.
• Moving averages measure trend.
• Structure analysis measures swing direction.
However, professional traders rarely make decisions based on only one indicator.
The market is driven by multiple factors simultaneously.
This indicator was created to combine several important market components into one intelligent probability model that continuously updates as new candles are formed.
Instead of forcing traders to switch between several indicators, all important information is displayed in one organized interface.
Live Market Probability Engine
The core of this indicator is its probability engine.
Every incoming candle updates multiple internal calculations including trend strength, momentum, volatility, structure, candle behavior, relative volume, and directional pressure.
These values are blended together to estimate which side currently has greater probability of controlling price.
Rather than giving random Buy or Sell labels, the indicator continuously measures changing market conditions.
As market conditions improve for buyers, bullish probability increases.
As selling pressure strengthens, bearish probability increases.
The calculations update automatically with every new candle.
Dynamic Bullish & Bearish Probability Circles
One of the most distinctive features of this indicator is the pair of dynamic circular probability diagrams displayed near the end of the chart.
These circles visually represent:
• Bullish Strength
• Bearish Strength
Their size changes dynamically according to the calculated probabilities.
When bullish pressure dominates, the bullish circle becomes larger while the bearish circle contracts.
When sellers gain control, the bearish circle expands while the bullish circle becomes smaller.
Above each circle, the current live probability percentage is displayed, allowing traders to quickly identify the dominant market side without reading numerical data.
This creates an intuitive visual representation of market sentiment.
Dynamic Buy & Sell Strength Bars
Below the circular probability diagrams, the indicator displays two vertical strength bars.
These bars represent:
• Buy Strength
• Sell Strength
The height of each bar changes continuously based on the current market probability.
Higher bars indicate stronger participation from that side of the market.
Lower bars indicate weakening pressure.
Because the bars update in real time, traders can instantly see whether buying or selling momentum is increasing or fading.
Live Probability Dashboard
A fully integrated dashboard is displayed in the corner of the chart.
The dashboard provides continuously updated information including:
• Overall Probability
• Bull Strength
• Bear Strength
• Trend Score
• Momentum Score
• Volatility Score
• Volume Score
• Structure Score
• Candle Score
• Moving Average Score
• Market State
• Current Trend
• Current Bias
• Overall Signal
• Buy Probability
• Sell Probability
• ATR
• Volume Status
Every value is recalculated automatically as new market data becomes available.
This gives traders a complete snapshot of current market conditions without needing multiple separate indicators.
Trend Analysis
The indicator continuously analyzes market direction.
Instead of only identifying whether price is moving higher or lower, it also evaluates the quality of the trend.
Factors such as higher highs, lower lows, directional consistency, and price progression contribute to the trend score.
A stronger trend produces higher confidence within the probability engine.
Weak or sideways markets naturally reduce overall confidence.
Momentum Evaluation
Momentum measures the speed and strength of price movement.
Rapid directional movement increases momentum scores.
Slowing momentum gradually reduces bullish or bearish confidence.
This helps traders distinguish between healthy trends and exhausted moves.
Volatility Measurement
Volatility is monitored continuously.
Periods of expanding volatility often indicate increasing participation and stronger price movement.
Low volatility environments generally produce lower conviction because price lacks directional energy.
The volatility score contributes to the overall probability calculation.
Volume Analysis
The indicator also evaluates relative trading volume.
Higher participation generally strengthens confidence in directional movement.
Lower participation reduces confidence because fewer market participants are supporting the move.
The volume score helps improve the overall quality of the probability model.
Market Structure Analysis
Price structure remains one of the most important components of technical analysis.
The indicator evaluates recent swing highs, swing lows, trend progression, and structural consistency.
Healthy bullish structure increases bullish confidence.
Healthy bearish structure increases bearish confidence.
Structural weakness reduces probability.
Candle Strength Analysis
Individual candle characteristics are also evaluated.
The indicator analyzes factors such as:
• Candle body size
• Wick proportion
• Closing strength
• Directional conviction
Stronger candles contribute more positively to probability calculations than weak or indecisive candles.
Overall Market State
After combining all internal calculations, the indicator determines the current market condition.
Possible conditions may include:
Trending
Ranging
Neutral
Transition
These classifications help traders understand the broader context before making trading decisions.
Overall Signal
The Overall Signal summarizes the combined output of all analytical components.
Depending on market conditions, it may indicate:
Bullish
Bearish
Neutral
Since this result is generated using multiple independent calculations rather than a single indicator, it provides a broader view of current market sentiment.
Works on All Markets
The indicator is designed to work across all TradingView-supported markets, including:
• Forex
• Gold
• Silver
• Cryptocurrency
• Indices
• Commodities
• Futures
• CFDs
Because the calculations are based on price behavior and market activity, the indicator can adapt to different asset classes.
Compatible with All Timeframes
The indicator functions across all TradingView timeframes.
Examples include:
• 1 Minute
• 3 Minutes
• 5 Minutes
• 15 Minutes
• 30 Minutes
• 1 Hour
• 4 Hour
• Daily
• Weekly
Lower timeframes provide faster updates for intraday trading, while higher timeframes offer a broader view of market conditions.
Typical Workflow
A common way to use this indicator is:
Observe the Bullish and Bearish probability circles.
Compare Buy and Sell strength bars.
Review the dashboard scores.
Identify the current market state.
Confirm whether multiple components align in the same direction.
Combine the information with your own trading strategy, market structure analysis, and risk management before making any trading decisions.
Key Features
✔ Live probability engine
✔ Dynamic Bullish probability visualization
✔ Dynamic Bearish probability visualization
✔ Real-time percentage calculations
✔ Adaptive probability circles
✔ Dynamic Buy & Sell strength bars
✔ Live market dashboard
✔ Trend analysis
✔ Momentum analysis
✔ Volatility analysis
✔ Relative volume evaluation
✔ Market structure analysis
✔ Candle strength scoring
✔ Market state classification
✔ Overall probability calculation
✔ Supports all TradingView markets
✔ Compatible with all timeframes
✔ Lightweight visual interface
Important Note
This indicator is designed as a probability-based market analysis and visualization tool. It does not predict future price movements, guarantee profitable trades, or provide financial advice. The displayed probabilities represent analytical estimates derived from multiple technical components and are intended to help traders better understand current market conditions. For best results, this indicator should be used alongside your own technical analysis, trading plan, and disciplined risk management.
Originality & Author Verification
Live Market Probability Matrix Pro is an original Pine Script® v6 indicator independently designed, developed, and authored by Forex_Market_Insights. The concept, probability model, dashboard design, visualization system, scoring methodology, and implementation are based on the author's own research and development. No proprietary or copyrighted code has been copied or reused from third-party scripts. This publication is intended to comply with TradingView House Rules by accurately describing the indicator's functionality and acknowledging its original authorship. Indicatore

Fractal Memory Projection [Jayadev Rana]Fractal Memory Projection searches price history for the moment that most resembles the present, then shows what happened next - drawn on your chart as 50 lighter ghost candles ahead of the current bar - together with trend-flip BUY and SELL signals and volatility-adaptive targets.
HOW THE FORECAST WORKS
The last 30 closes are converted to normalized log returns (the pattern window). The script scans up to 750 past bars and scores every historical window of the same length by mean squared distance, so the comparison is about the shape of movement, not price level. The bars that followed the best match are replayed forward from the current close, rescaled by the ratio of current ATR to ATR at the match, and drawn as 50 semi-transparent ghost candles beyond the last bar. The panel reports the match similarity, how many bars ago it occurred, and the net forecast direction.
The projection is a statistical analog - a look at how the most similar past episode unfolded - not a prediction or a guarantee. It is display-only and never affects historical values, so nothing repaints.
BUY AND SELL SIGNALS
An ATR trailing stop tracks the trend. When it flips direction, a BUY or SELL label prints - by default only when the ghost-candle forecast agrees with the flip direction (toggle available). Alerts are included for both signals.
VOLATILITY-ADAPTIVE TARGETS
Target spacing is not fixed. A unit of risk R equals ATR multiplied by (0.8 + ATR percentile rank over 200 bars), so quiet markets produce tighter targets and volatile markets produce wider ones. Each signal sets TP1, TP2 and TP3 at 1R, 2R and 3R and a stop loss at 1.2R (adjustable). Only the most recent trade's levels are kept on the chart to stay clean.
PANEL
Match quality percent, bars since the match, volatility regime (Low, Normal, High), forecast direction, and current trend side.
SETTINGS
Pattern window, scan depth, forecast length, ghost candle colors, ATR length, trail multiplier, forecast-agreement filter, stop multiplier, and panel position are all configurable.
NOTES
Works on any symbol and timeframe with enough history (at least scan depth plus forecast length bars). This is an analysis tool, not financial advice. Test on your own data and manage risk before trading. Indicatore

Previous Day Pivot Path - Intraday Support ResistancePrevious Day Pivot Path - Intraday Support Resistance
Overview
Previous Day Pivot Path is an intraday reference-level study built from the confirmed OHLC values of the previous selected trading day. It plots the current day's central pivot and support/resistance levels, then records the first chart bar in which each level is reached and assigns a compact arrival rank.
The script is intended for traders and researchers who want to identify the current day's mathematically derived reference levels without converting them into buy/sell instructions. It does not predict whether a level will hold or break, and it does not present win-rate, profitability, or performance claims.
What makes this implementation different
1. First-arrival path instead of static lines only
Each tracked level begins the day as pending. When the selected price source first reaches it, the script records an arrival rank and can place a numbered badge at the corresponding time.
If more than one previously unreached level is reached in the same chart bar, those levels receive the same rank. OHLC bars do not reveal the true tick-by-tick order inside that bar, so the script deliberately avoids inventing an intrabar sequence that the available data cannot prove.
2. Reached-level fading and next-level focus
Reached levels can fade automatically. The nearest unreached level can receive stronger line emphasis and an optional translucent focus halo. After all displayed levels have been reached, the focus can fall back to the nearest level or remain inactive.
This visual hierarchy separates completed parts of the day's path from levels that remain unvisited, while preserving the exact horizontal prices.
3. Confirmed previous-day data
All daily formula inputs are requested from the last completed daily bar. Open time, close time, open, high, low, and close are all offset by one daily bar before they are used. The current developing daily high, low, or close is never used in the pivot formulas.
The script also checks that the completed daily session is chronologically aligned with the selected intraday source day before it initializes new levels or arrival events.
4. Source-session freshness protection
Three OHLC source modes are available:
- Automatic: uses chart-context OHLC on standard candles and standard-symbol OHLC on non-standard charts.
- Chart context: preserves the chart's ticker modifiers, session, adjustment, and chart-type context.
- Standard symbol: removes non-standard ticker modifiers and uses standard market OHLC.
When the selected standard source has no bar aligned with the current chart timestamp, the script does not reuse an old forward-filled OHLC value. Arrival events pause, and existing drawings remain fixed at the last valid source bar until aligned data becomes available again.
5. Session-aware day handling
The script uses a trading-day key suitable for markets whose sessions cross midnight. This prevents a simple calendar-date change from being treated as the session boundary on many overnight Forex and futures markets.
If the first loaded dataset begins after the selected source day's opening bar, the earlier first-arrival sequence is unknowable. For that one partial day, arrival tracking and open-dependent features are conservatively bypassed rather than reconstructed from incomplete history.
6. Time-anchored persistent drawings
Persistent lines, boxes, right-edge labels, and arrival badges use UNIX-time coordinates. This avoids relying on very old bar_index coordinates on dense second charts and keeps historical drawings independent of the number of bars elapsed since their creation.
7. Multiple formula families plus an editable research mode
The script includes:
- Traditional
- Classic
- Fibonacci
- Camarilla
- Custom research
The custom mode lets users select the pivot center and edit three previous-range multipliers. The multipliers are sorted from smallest to largest before assignment to R1/S1, R2/S2, and R3/S3.
8. Price-grid and duplicate-level controls
Calculated levels can remain raw, round to the nearest minimum tick, or round outward so resistance is rounded upward and support downward. When rounding produces the same price for multiple logical levels, the script can merge them into one line and one badge with a combined code such as P/R1.
9. Researchable arrival definitions
Users can define a first arrival with:
- Wick range
- Candle body range
- Confirmed close crossing
Optional tolerance can be exact, a number of ticks, or a percentage of the previous-day range. Gap crossings can be counted or ignored. Arrival ranking can follow only displayed levels, the selected depth, or all levels produced by the formula.
10. Deliberate chart hygiene
The default presentation prioritizes P, R1/S1, and then outer levels through width, line style, transparency, and optional reached-level fading. Right-edge labels support automatic text contrast and horizontal lane staggering when prices are close.
Optional context references include:
- Central Pivot Range (CPR)
- Previous-day high and low (PDH/PDL)
- Previous-day close (PDC)
- Current selected-source day open
- Opening bracket between the nearest displayed levels above and below the day open
- Compact session brief
All context elements can be disabled independently.
Formula reference
Let O, H, L, and C be the confirmed previous selected daily bar, and let Range = H - L.
Traditional
P = (H + L + C) / 3
R1 = 2P - L
S1 = 2P - H
R2 = P + Range
S2 = P - Range
R3 = H + 2(P - L)
S3 = L - 2(H - P)
Classic
P = (H + L + C) / 3
R1 = 2P - L
S1 = 2P - H
R2 = P + Range
S2 = P - Range
R3 = P + 2Range
S3 = P - 2Range
Fibonacci
P = (H + L + C) / 3
R1/S1 = P +/- 0.382 x Range
R2/S2 = P +/- 0.618 x Range
R3/S3 = P +/- 1.000 x Range
Camarilla
P = (H + L + C) / 3
R1/S1 = C +/- 1.1 x Range / 12
R2/S2 = C +/- 1.1 x Range / 6
R3/S3 = C +/- 1.1 x Range / 4
Custom research
The center can be HLC3, HLCC4, OHLC4, midpoint, or previous close. Three editable multipliers are applied symmetrically to the previous-day range after being sorted from smallest to largest.
Arrival timing
Confirmed bar
This is the reproducible default. An arrival is recorded only after the chart bar is confirmed.
Live bar
Live timing is available for wick arrivals. Intrabar-persistent state latches a wick touch across realtime updates of the open bar. Because all levels first reached inside the same chart bar share one rank, the script does not claim a tick-level order that bar data cannot establish.
Body and close-cross modes automatically use confirmed bars to avoid transient open-bar signals.
Non-standard charts
Heikin-Ashi, Renko, Kagi, Line Break, Point & Figure, and Range bars can be synthetic or approximate. Automatic mode uses standard-symbol OHLC for the level and event source on non-standard charts, but arrival events are paused by default. Users can explicitly allow them for research after accepting the chart-type limitation.
The script is designed for time-based intraday charts. Tick charts and daily-or-higher charts are intentionally rejected with a visible notice rather than processed with ambiguous session assumptions.
Language and user interface
English is the default dynamic chart language. Selecting 日本語 changes dynamic labels, tooltips, safety notices, session-brief text, and language-aware alert() messages. Input names remain short bilingual labels so both English and Japanese users can configure the study.
Key Japanese UI translations:
未到達 = Pending
到達 = Reached
確定足 = Confirmed bar
ライブ・ヒゲ保持 = Live wick latch
前日値幅 = Prior range
次の未到達 = Next unreached
準備完了 = Ready
ソース足なし = Source bar unavailable
日次データ整合待ち = Aligning daily data
合成足イベント停止 = Synthetic events paused
International level codes such as P, R1, S1, PDH, and PDL remain unchanged in both languages.
Alerts
Neutral alert conditions are available for:
- Any pivot's first arrival
- P, R1, S1, R2, S2, R3, and S3 first arrivals
- Confirmed close crossing above or below P
An optional language-aware alert() call can include the reached level codes, shared rank, symbol, timeframe, and selected calculation method. Alerts describe observable level events only; they are not trade recommendations.
Suggested workflow
1. Use a standard candlestick intraday chart for the most direct interpretation.
2. Keep Automatic, Traditional, Nearest tick, Confirmed bar, and Wick for the conservative defaults.
3. Select the desired level depth and optional previous-day references.
4. Enable live timing only when intrabar wick monitoring is required.
5. Create alerts from the neutral first-arrival or confirmed P-cross conditions as needed.
6. Use Market Replay and several symbols/session types before relying on customized settings.
Important limitations
- A previous-day pivot is a mathematical reference, not a prediction that price will reverse or continue.
- Data vendors can revise historical bars, and exchange session definitions can differ across instruments.
- Standard-symbol mode can intentionally have no aligned bar outside its selected session. In that case, events pause instead of carrying stale OHLC forward.
- The first loaded partial source day cannot provide a complete earlier arrival sequence.
- A chart bar cannot prove the order of multiple level touches inside that bar; those first touches share one rank.
- Live wick tracking reacts to realtime updates. Reloaded historical bars contain finalized OHLC, not the original tick stream.
- Synthetic chart bars may not represent executable market prices. Arrival tracking on such charts is disabled by default.
- The study does not provide entries, exits, position sizing, stop placement, or performance statistics.
日本語説明
概要
Previous Day Pivot Pathは、選択したデータソースの確定済み前日OHLCから、当日のP・R・Sを自動計算して描画する日中足向けインジケーターです。
単に水平線を表示するだけではなく、各水準へ当日初めて到達したチャート足を記録し、到達順を番号で表示できます。売買推奨、勝率、収益性、将来予測を提示するものではなく、当日の数理的な節目と到達経路を研究するためのツールです。
主な特徴
初回到達経路
各水準は当日開始時に未到達状態となり、選択した価格ソースが初めて到達すると順位を記録します。同じチャート足の中で複数水準へ初回到達した場合、その足の内部順序はOHLCだけでは証明できないため、すべて同順位とします。
確定前日OHLC
日足リクエストでは、時刻・始値・高値・安値・終値のすべてを1本前へオフセットして使用します。形成中の日足高安や終値はピボット計算に使いません。
ソース欠損時の安全処理
標準銘柄ソースに現在時刻と一致する足がない場合、過去のOHLCを現在足へ持ち越して判定しません。到達イベントを停止し、既存描画を最終有効ソース足で固定します。
夜間市場を考慮した日付管理
Forexや先物など、セッションが日付をまたぐ市場に対応するため、単純なカレンダー日ではなく取引日キーを使用します。
秒足で古くなった描画への耐性
長期間保持する線、ボックス、到達バッジ、右端ラベルはUNIX時刻座標で管理します。高密度な秒足でも、古いbar_index座標による制限へ近づきにくい設計です。
5種類の計算方式
Traditional、Classic、Fibonacci、Camarilla、Custom researchを選択できます。Custom researchでは中心値と3つの前日値幅倍率を変更できます。
到達判定の研究性
ヒゲ、実体、確定終値通過から選択でき、許容幅は厳密一致、ティック数、前日値幅比率から設定できます。ギャップ通過を到達扱いにするかも切替可能です。
視認性
到達済み水準のフェード、最寄り未到達水準の強調、フォーカスハロー、自動文字コントラスト、近接ラベルの横方向段組みを実装しています。
CPR、前日高安、前日終値、当日始値、始値ブラケット、セッション概要は個別に表示・非表示を変更できます。
推奨初期設定
OHLC source Automatic
Pivot method Traditional
Level rounding Nearest tick
Arrival timing Confirmed bar
Arrival basis Wick
Touch tolerance Exact
Arrival universe Displayed levels
Synthetic chart events Off
Auto-stagger labels On
Auto contrast On
Focus halo On
ライブ中のヒゲ到達を監視するときだけ、Arrival timingをLive barへ変更してください。実体・終値通過は安全のため確定足判定になります。
言語切替
Language / 言語でEnglishまたは日本語を選択できます。日本語へ切り替えると、チャート上の動的ラベル、ツールチップ、安全性メッセージ、セッション概要、言語連動alert()が日本語になります。
P、R1、S1、PDH、PDLなどの国際共通コードは両言語で同じ表記です。
重要な注意事項
- ピボットは数理的な参照水準であり、反転やブレイクを保証しません。
- 読み込み初日が選択ソースの日中途中から始まる場合、それ以前の到達順は復元できないため、その日だけ経路追跡を停止します。
- 1本の足内で複数水準へ触れた正確な順序はOHLCから判定できないため、同順位になります。
- 標準銘柄ソースのセッション外では、古い価格を流用せず到達判定を停止します。
- Heikin-Ashi、Renko、Kagiなどの合成足では、到達イベントを既定で停止しています。
- Live barのヒゲ到達はリアルタイム更新に反応します。再読み込み後の履歴足には最終OHLCが残り、当時のティック列そのものは残りません。
- 本インジケーターはエントリー、決済、ストップ、ロット、成績表を提供しません。 Indicatore

Dual Supertrend + 50/200 SMASupertrend + Dual Supertrend + 50/200 SMA
This indicator combines two Supertrend indicators with 50 SMA and 200 SMA to help identify trend direction, momentum, and long-term market structure.
Features
• Supertrend (2,2) – Fast trend detection for early trend changes.
• Supertrend (7,3) – Slower trend confirmation to filter market noise.
• Individual On/Off toggle for each Supertrend.
• Automatic BUY and SELL labels based on the primary Supertrend reversal.
• 50 SMA for intermediate trend direction.
• 200 SMA for long-term trend identification.
• Golden Cross and Death Cross signals.
• Optional trend background coloring.
• Built-in TradingView alerts for:
Supertrend BUY
Supertrend SELL
Golden Cross
Death Cross
Typical Usage
Use the (2,2) Supertrend for quicker entries and exits.
Use the (7,3) Supertrend as a higher-confidence trend filter.
When both Supertrends align in the same direction, the trend is generally stronger.
Use the 50 SMA and 200 SMA to identify the broader market trend and key support/resistance areas.
Default Settings
Supertrend 1: ATR Length = 2, Multiplier = 2
Supertrend 2: ATR Length = 7, Multiplier = 3
SMA 50
SMA 200
Disclaimer
This indicator is intended for educational and analytical purposes only. It does not provide investment advice or guarantee trading outcomes. Always validate signals using your own trading plan, risk management rules, and additional market analysis before making any trading decisions. Indicatore

SuperTrend + 50/200 SMA By Vicky MehtaSupertrend + Dual Supertrend + 50/200 SMA
This indicator combines two Supertrend indicators with 50 SMA and 200 SMA to help identify trend direction, momentum, and long-term market structure.
Features
• Supertrend (2,2) – Fast trend detection for early trend changes.
• Supertrend (7,3) – Slower trend confirmation to filter market noise.
• Individual On/Off toggle for each Supertrend.
• Automatic BUY and SELL labels based on the primary Supertrend reversal.
• 50 SMA for intermediate trend direction.
• 200 SMA for long-term trend identification.
• Golden Cross and Death Cross signals.
• Optional trend background coloring.
• Built-in TradingView alerts for:
Supertrend BUY
Supertrend SELL
Golden Cross
Death Cross
Typical Usage
Use the (2,2) Supertrend for quicker entries and exits.
Use the (7,3) Supertrend as a higher-confidence trend filter.
When both Supertrends align in the same direction, the trend is generally stronger.
Use the 50 SMA and 200 SMA to identify the broader market trend and key support/resistance areas.
Default Settings
Supertrend 1: ATR Length = 2, Multiplier = 2
Supertrend 2: ATR Length = 7, Multiplier = 3
SMA 50
SMA 200
Disclaimer
This indicator is intended for educational and analytical purposes only. It does not provide investment advice or guarantee trading outcomes. Always validate signals using your own trading plan, risk management rules, and additional market analysis before making any trading decisions. Indicatore

Indicatore

Indicatore

Indicatore

HTF Volume Profile Map - POC, VAH, VAL and DeltaHTF Volume Profile Map - POC, VAH, VAL and Delta
HTF Volume Profile Map estimates where trading volume was concentrated inside higher-timeframe candles and displays those value areas directly on an intraday chart.
The indicator builds a separate volume-at-price profile for each completed higher-timeframe candle. For example, traders can view four-hour volume distributions while working from a 5-minute, 15-minute, or 1-hour chart.
It highlights the prices that attracted the greatest estimated participation rather than relying only on the higher-timeframe candle’s open, high, low, and close.
Main features
Higher-timeframe volume-at-price profiles
Point of Control, or POC
Value Area High and Value Area Low
Configurable value-area percentage
Developing POC, VAH, and VAL
Projection of the latest completed value area
Estimated directional volume delta
Buy/sell-colored profile rows
Automatic ATR-based row sizing
Manual tick-based row sizing
Configurable profile width and history
Dashboard showing location, flow, levels, and calculation quality
Alerts for value-area entry and POC crosses
How it works
The script retrieves lower-timeframe OHLCV data using request.security_lower_tf() and groups those intrabars inside the selected higher-timeframe period.
Each intrabar’s volume is distributed across the price rows touched by its high-to-low range. Upward intrabars contribute to estimated buying volume, while downward intrabars contribute to estimated selling volume. Doji intrabars are classified using their movement relative to the preceding intrabar.
The row with the greatest accumulated volume becomes the POC.
The value area begins at the POC and expands toward adjacent rows with greater volume until it contains the selected percentage of total profile volume. The conventional default is 70%.
Reading the profile
POC
The price row containing the highest estimated volume. It can represent an important acceptance level or price magnet.
VAH
The upper boundary of the value area. Trading above VAH can indicate an auction attempting to establish higher value.
VAL
The lower boundary of the value area. Trading below VAL can indicate an auction attempting to establish lower value.
Estimated Delta
The difference between estimated buying and selling volume:
Positive delta indicates greater upward intrabar volume.
Negative delta indicates greater downward intrabar volume.
A relatively small delta is classified as balanced value.
Dashboard states
Above Value
Price is above the latest completed HTF value area.
Below Value
Price is below the latest completed HTF value area.
Value / Upper
Price is inside value and above the POC.
Value / Lower
Price is inside value and below the POC.
Buy Dominant / Sell Dominant
Estimated delta exceeds the directional threshold.
Balanced Value
Neither side has established significant directional dominance.
Practical applications
Traders can use the indicator to study:
Acceptance or rejection around prior HTF value
POC retests
Failed auctions above VAH or below VAL
Rotation from one value boundary toward the other
Confluence with market structure, liquidity, supply/demand, or session levels
Differences between price direction and estimated volume delta
The indicator identifies context and reference levels. It does not generate automatic buy or sell signals.
Suggested configuration
For a 15-minute chart:
Higher Timeframe: 240 minutes
Intrabar Sampling: 1 minute
Row Size: Auto
Value Area: 70%
For a 5-minute chart:
Higher Timeframe: 60 or 240 minutes
Intrabar Sampling: 1 minute
Value Area: 70%
Increase profile width if the histograms appear too narrow. Increase the row size or reduce the automatic target-row setting if the dashboard displays “Widen Rows.”
Important limitation
This is an estimated volume profile, not an exchange-level bid/ask footprint.
TradingView’s native footprint API requires a qualifying higher-tier subscription. This script instead uses lower-timeframe OHLCV data, allowing it to operate without the native footprint request.
Because the precise transaction price of every trade is unavailable, each intrabar’s volume is distributed across the price rows covered by that intrabar. The resulting POC, value area, and delta should therefore be treated as analytical estimates.
Historical depth also depends on the selected sampling timeframe and TradingView’s available intrabar data.
The script processes confirmed chart bars and discards the first incomplete HTF profile loaded at the beginning of the dataset. Completed HTF profiles remain fixed, while developing levels can change until their HTF candle closes. Indicatore

Futures Volume + Delta - CFD ChartsA volume pane for CFD and cash-index charts that shows the REAL traded volume
of the matching futures contract — plus an estimated buy/sell delta and
absorption flags for effort-without-result bars.
What makes it original: CFD "volume" is broker tick count, not market
participation. This pane never uses it — every column is the exchange volume
of the auto-detected futures contract. The delta column is built from the
futures contract's own lower-timeframe candles (up-candle volume counts as
buying, down-candle volume as selling): the volume is real, only the side
attribution is an estimate, and it is labeled as such. Absorption flags then
combine both axes — volume percentile high while the price range percentile is
low — the candle-data footprint that hidden passive interest (iceberg-style
execution) leaves behind. Pine has no order book, so this is explicitly a
footprint proxy, not order-book detection.
How it works:
- The futures contract is auto-detected from the chart symbol (DAX/GER40 ->
FDAX, NAS100 -> NQ, US30 -> YM, UK100 -> Z, US500 -> ES), or set manually.
- Histogram = futures volume per chart bar; columns tint with bar direction,
a configurable MA marks the average.
- Delta = buy-minus-sell futures volume from 1/5/15-minute intrabars
(auto-selected by chart timeframe, manual override). Lower-timeframe
history is limited, so the delta reaches less far back than the histogram.
- Absorption flag (orange diamond + alert): volume percentile >= X and range
percentile <= Y over a rolling lookback — both thresholds adjustable.
- A status label confirms the active source and the delta resolution.
How to use it: read it like a footprint-lite. Rising price on rising futures
volume = participation confirms the move. An absorption diamond after an
extended run — heavy contracts traded, no price progress — marks where passive
interest is absorbing the aggression; combined with a one-sided delta it is a
common exhaustion/iceberg footprint. Delayed futures feeds confirm bars a few
minutes late; the historical picture is complete.
*This script is part of a consistent set of open-source session, range and
volume tools — the companions are on my profile.*
Indicatore

Futures Session TWAP + Bands - CFD ChartsAn anchored TWAP (time-weighted average price) with 1/2/3-sigma bands that
knows when the real market is actually open — built for CFD and cash-index
charts whose 24h quotes distort classic session averages.
What makes it original: a TWAP weighs every bar equally, so on a 24h CFD chart
the thin overnight bars count as much as the liquid session and drag the line
away from the number execution desks reference. This indicator pulls the
volume of the auto-detected futures contract and uses it as a SESSION GATE:
only bars where the future actually traded are counted. It also plots an
optional futures-volume VWAP on the same anchor, so the TWAP-vs-VWAP spread
becomes readable at a glance — that spread is the point of the pair.
How it works:
- TWAP = equal-weight average of the chart's price (hlc3 by default) over the
anchor period (session/week/month); bands from the time-weighted variance.
- Session gate (optional, on by default): bars without futures volume are
skipped, so the TWAP covers the real trading session. Only session/volume
information is borrowed from the future — the price stays this chart's
price, so the futures-vs-cash basis cannot distort the level.
- The futures contract is auto-detected from the chart symbol (DAX/GER40 ->
FDAX, NAS100 -> NQ, US30 -> YM, UK100 -> Z, US500 -> ES), or set manually.
- Optional "Daily anchor = futures trading day" resets at the futures day
change instead of CFD broker midnight, matching the sibling VWAP tool.
- A status label shows the active source, the gate state and the current
VWAP-minus-TWAP spread.
How to use it: the TWAP is the fair time-average of the session — the line an
evenly-sliced execution would achieve. Compare it with the futures-volume
VWAP: VWAP above TWAP means volume was concentrated above the time average
(participants paid up), VWAP below TWAP means volume traded below it. The two
lines glued together signals balanced rotation; a widening spread marks
one-sided participation. The 2/3-sigma bands frame statistically stretched
zones relative to the session mean. Check the status label once after loading
to confirm the futures feed is active.
*This script is part of a consistent set of open-source session, range and
volume tools — the companions are on my profile.* Indicatore

Short Pressure IndexOverview
A composite 0-100 "short pressure" score built from three independently computed components (volume climax, MA deviation, and bearish-bar momentum), with optional automatic exchange routing for crypto and FINRA short-volume data substitution for stocks — so the same score means something comparable across very different asset classes.
How it's calculated
1. Volume pressure: the fraction of high-significance volume (climax or above-average bars, per a PVSRA-style multiplier check) that occurred on bearish closes over a rolling window. For US stocks with FINRA short volume enabled, this component is swapped for the actual reported short-volume ratio instead.
2. MA deviation pressure: how far below (in ATR multiples) price sits from its moving average, rescaled to 0-100 over a rolling window.
3. Momentum pressure: the % of the last N bars that closed bearish.
The three are averaged and smoothed with an EMA to produce the SPI line, which gets its own signal-line EMA and histogram. For crypto, price/volume can be routed to a more liquid exchange feed (e.g. Bitfinex) since the chart's native feed may be sparse; unsupported symbol types can be suppressed entirely rather than plotting a meaningless value.
How to use it
Readings above the high threshold (default 70) suggest broad short-side pressure building across all three components; below the low threshold (default 30) suggests minimal short pressure. The histogram and signal-line crosses give earlier, more granular entries than waiting for a threshold cross. For US equities, "Use FINRA Short Volume" swaps in real reported short-sale data for a more direct read than the volume-climax proxy alone. Indicatore

Libreria

Moon CyclesOverview
Marks the four primary lunar phases (new, first quarter, full, last quarter) directly on the chart using an astronomical calculation, for traders who track lunar-cycle-based market sentiment/timing frameworks.
How it's calculated
Uses the standard synodic month constant (29.530588853 days) against a known reference new moon (6 Jan 2000) to compute a continuous lunar-cycle phase fraction (0 to 1) for the current bar's timestamp, then flags a phase transition whenever that fraction crosses a phase boundary (0.0 = new, 0.25 = first quarter, 0.5 = full, 0.75 = last quarter) between the current and prior bar.
How to use it
This isn't a trading signal on its own — it's a calendar overlay for traders who want lunar phases visible alongside price action as one input among others. Label text is configurable (emoji only, with meaning, with date, or all three) and vertical lines can optionally mark new/full moons for easier visual alignment with price swings. Indicatore

Libreria

Libreria

Round Number GridRound Number Grid is a visual price reference tool that draws psychological round-number levels around the current market price.
The purpose of this script is to help traders quickly see nearby round-number levels such as 50, 100, 150, 200, 250, 300, 500, or other clean price steps depending on the symbol and its volatility.
This is a visual tool only. It does not generate buy or sell signals, does not predict future price movement, and does not claim that round numbers will act as support or resistance.
How it works
The script can calculate the grid step in two ways:
- Auto from ATR: the script uses recent volatility to estimate a suitable distance between levels, then converts that distance into a clean round-number step.
- Manual: the user can manually choose the distance between grid levels.
In Auto mode, the script converts the ATR-based distance into a clean step such as:
- 1
- 2.5
- 5
- 10
- 25
- 50
- 100
This helps the grid adapt to different symbols and price ranges.
What the script shows
- Round-number levels above and below current price
- The nearest round-number level above price
- The nearest round-number level below price
- Optional major levels every selected number of steps
- Optional labels for visible levels
- A compact state label showing:
- Current grid step
- Nearest round level above
- Nearest round level below
- Percentage distance to the nearest levels
Visual features
The nearest level above price can be highlighted with a separate color and width.
The nearest level below price can also be highlighted separately.
Users can control:
- Number of levels shown above and below price
- Step mode: Auto or Manual
- Auto step multiplier from ATR
- Manual step size
- Major level frequency
- Line colors
- Line width
- Line style
- Label size
- Label visibility
- State label visibility
- Right-side line extension
Right extension
The script includes a right-extension setting so users can extend the grid lines farther to the right.
Users can choose between:
- Manual bars: extend levels by a selected number of bars
- Infinite right: extend the grid lines continuously to the right side of the chart
This makes the grid easier to read when the user wants more space between price, labels, and the right edge of the chart.
Alerts
The script includes alert conditions for:
- Round level crossed
- Nearest upper round level crossed
- Nearest lower round level crossed
These alerts are descriptive price-reference events only. They are not buy or sell signals.
Important note
Round numbers are psychological reference levels. They may be watched by market participants, but they are not guaranteed support or resistance levels.
A reaction near a round number does not guarantee a reversal, continuation, breakout, or rejection.
This indicator is intended for visual analysis, education, and chart context. It should be used together with broader market structure, trend, volume, support and resistance, and risk management.
Repainting / behavior note
This script does not use pivot confirmation, future-looking calculations, or predictive signals.
However, the visible grid is centered around the current price area. When price moves significantly, the displayed grid can recenter around the new price area. This is normal behavior for a visual round-number grid and should not be interpreted as a signal change.
The script is not a strategy, not financial advice, and not a standalone trading system. Indicatore

Indicatore

Cardwell Dual Confluence [MarkitTick]💡 A comprehensive momentum and trend-following framework built to identify high-probability market shifts. By synthesizing Andrew Cardwell's established Relative Strength Index (RSI) range rules with dynamic trend filtering and volatility metrics, this tool provides a unified analytical engine. It moves beyond standard oscillator readings to map the underlying momentum regime, ensuring that signals are structurally aligned with the dominant trend.
● ✨ Originality and Utility
Traditional momentum oscillators often produce premature reversal signals during strong trends, leading to false entries in directionless markets. This indicator solves that problem by integrating a dual-tier confluence model. It does not rely solely on an isolated RSI moving average crossover; instead, it demands structural validation through Cardwell's defined momentum ranges.
The primary utility lies in its objective structural filtering: a momentum cross is only validated if the broader market regime structurally supports the direction of the momentum.
By combining a base timeframe momentum cross with a Higher Timeframe (HTF) trend regime and Average Directional Index (ADX) volatility filtering, this tool prevents overtrading in choppy, non-directional environments.
This deliberate combination of an oscillator, a trend filter, and a volatility metric acts as a logical confluence engine. It avoids the pitfalls of disjointed indicator mashups by ensuring every component serves a distinct mathematical purpose in validating the signal before it is printed to the chart.
● 🔬 Methodology and Concepts
The logic engine of this tool evaluates multiple distinct criteria before registering a valid signal.
• Momentum Crossover
The script calculates a base RSI and smooths it using two Running Moving Averages (RMA): a Fast RMA and a Slow RMA. A baseline momentum shift occurs when the Fast RMA crosses the Slow RMA, indicating a localized surge in buying or selling pressure.
• Regime Mapping
A structural trend is evaluated by comparing the closing price to a Simple Moving Average (SMA). Simultaneously, a secondary RSI is evaluated against Cardwell's defined structural ranges. A Bullish Regime requires the price to be above the SMA and the RSI to hold within a specific upper tier (defaulting to 40-80). A Bearish Regime requires the price to be below the SMA and the RSI to hold within a lower tier (defaulting to 20-60).
• Confirmation and Confluence
Regimes must persist for a user-defined number of consecutive bars to filter out transient market noise. Confluence is achieved when an RMA momentum crossover occurs within a tight, predefined window of a regime shift, ensuring both immediate momentum and the structural trend are perfectly aligned.
• Higher Timeframe and Volatility Verification
An optional HTF module checks the regime state of a larger timeframe using a strict non-repainting historical offset. Furthermore, the ADX is calculated to measure pure trend strength. If the ADX is below the user-defined minimum threshold, the market is deemed too choppy, and all signals are suppressed.
• Dynamic Trade Architecture
Once a signal is validated strictly on a confirmed bar close, the script projects dynamic Stop Loss and Take Profit levels using a multiplier of the Average True Range (ATR), actively adapting the trade geometry to current market volatility.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The analytical foundation of this tool rests on advanced momentum physics and statistical distribution theories.
• Cardwell RSI Range Theory
Developed by Andrew Cardwell, this theory posits that the Relative Strength Index is not merely an overbought/oversold oscillator, but a powerful trend-identifying metric. In a mathematically robust uptrend, the RSI establishes a baseline support near the 40 level and frequently reaches 80. Conversely, in a downtrend, it establishes resistance near 60 and drops to 20. The indicator algorithmically enforces these limits to objectively classify market environments.
• Running Moving Average (RMA) Dynamics
The script utilizes the RMA, also known as the Modified Moving Average (MMA) or SMMA, to smooth the RSI base. The RMA applies an exponential smoothing weight defined exactly as 1 / length . This specific mathematical weighting retains a longer memory of past data compared to a standard SMA, preventing the abrupt drop-offs that occur when large data points exit a simple moving average window. This makes the RMA crossover highly sensitive to genuine shifts in cumulative momentum without the lag of a standard exponential moving average.
• Average Directional Movement Index (ADX)
Created by J. Welles Wilder, the ADX quantifies trend strength independent of directional vector. By calculating the smoothed moving averages of the +DI and -DI directional movement indicators, the ADX isolates the absolute magnitude of price expansion. The script uses this mathematical isolation to construct an absolute threshold; requiring ADX to exceed a base level ensures that the statistical probability of trend continuation is mathematically viable before capital is exposed.
• Volatility-Scaled Projection (ATR)
Take profit and stop loss coordinates are mapped using Wilder's Average True Range. The ATR measures the greatest of the current high minus the current low, the absolute value of the current high minus the previous close, and the absolute value of the current low minus the previous close. By scaling targets using ATR multipliers, the tool shifts from fixed-point geometry to dynamic, standard-deviation-aligned targeting, ensuring targets expand during high volatility and contract during consolidation.
● 🎨 Visual Guide
The tool employs a clean, visually dynamic chart interface to transmit complex data instantly without cluttering the workspace.
• Heatmap Candles
Candle bodies and wicks are dynamically colored based on the active regime. Teal indicates a confirmed Bullish Regime, Red indicates a Bearish Regime, and Gray indicates a Neutral market state.
• Signal Labels
When all confluence parameters are met on a confirmed bar close, a solid blue "BUY" label appears below the bar, or an orange "SELL" label appears above the bar, complete with strict execution markers.
• Dynamic Trade Levels
Upon signal generation, the tool plots projected trade levels extending to the right of the price action. A solid Red line indicates the Stop Loss threshold. A dashed Blue line denotes the Entry price. Dashed Teal lines represent Take Profit 1, 2, and 3. Labels accurately print the precise price levels directly on the chart axis.
• Risk and Reward Fills
A semi-transparent Red linefill is plotted between the Entry and Stop Loss lines to visualize risk exposure, while a Teal fill between Entry and TP3 visualizes the total projected reward structure, allowing for instant visual evaluation of the trade setup.
• Integrated Dashboard
A comprehensive table is positioned on the chart, displaying real-time operational metrics. It details the current Cross Trend, Regime State, Confirm Bar count, Signal Gap status, Last Signal source, Trade Status, live ATR value, TP3:SL ratio, and HTF/Chop Filter states in an easy-to-read grid.
● 📖 How to Use
Deploying this tool requires patience and strict adherence to structural confirmation.
Wait for the Heatmap Candles to shift from Gray (Neutral) to Teal (Bullish) or Red (Bearish). This indicates that the broader moving average trend and the internal RSI ranges have aligned into a confirmed structural regime.
Observe the chart for a printed BUY or SELL label. This confirms that the RMA momentum cross has achieved mathematical confluence with the active regime within the defined allowable window.
Check the Dashboard to ensure the HTF Regime and Chop Filter (ADX) read as PASS. If the market is blocked by the Chop Filter, do not force an entry, as the statistical probability of a sustained run is low.
Upon entry, utilize the plotted ATR lines to structure your risk. Place your stop loss exactly at the solid red line, and scale out of your position at the dashed TP1, TP2, and TP3 levels as price action develops.
Wait for the Signal Gap cooldown period to elapse before considering consecutive entries in the same direction. This engineered delay prevents overexposure during erratic, volatile spikes.
● ⚙️ Inputs and Settings
The script features highly customizable parameters grouped logically for maximum workflow efficiency.
• Core Settings
Adjust the lengths for the Cross RMA (Fast/Slow) and the primary RSI source. Modify the Trend MA length and explicitly set the boundaries for the Bull Range (default 40-80) and Bear Range (default 20-60). Configure the Confluence Window to define exactly how close a cross and regime shift must occur to trigger a valid signal, and set the Signal Gap cooldown timer.
• Filters
Toggle the HTF Confirmation logic and select the desired higher timeframe for broader structural alignment. Enable the ADX Chop Filter and set the minimum required trend strength to strip out low-probability environments.
• Trade Tools
Define the ATR lookback length and customize the specific multipliers for the Stop Loss and the three Take Profit targets to match your unique risk-to-reward requirements. Modify the Line Extend Bars input to control how far into the future the trade levels are drawn.
• Visuals and Dashboard
Toggle individual visual components, including candle coloring, signal labels, and trade level plotting. Position the dashboard to any corner of the chart to prevent the obstruction of live price action.
• Alerts
Input specific JSON string payloads for Long, Short, Close Long, Close Short, SL, and TP actions. This allows the indicator to integrate seamlessly with automated execution platforms or third-party webhooks without requiring manual code modifications.
⚠️ 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. Indicatore

Native Timeframe Moving Average📈 Native Timeframe Moving Average
Overview
Native Timeframe Moving Average allows you to plot a moving average that is always calculated from its own selected timeframe, regardless of the chart timeframe you're viewing.
Instead of recalculating the MA using the current chart bars, this indicator performs the entire moving-average calculation inside the selected source timeframe before mapping the result back onto your chart. This ensures the moving average always remains true to its native timeframe.
For example, selecting a 200 SMA on the Daily timeframe will always display the genuine 200-day SMA whether you're viewing a 15-minute, 1-hour, 4-hour, Daily, Weekly, or any other timeframe.
✨ Features
✔ Native timeframe moving averages
✔ SMA, EMA, WMA, RMA & VWMA
✔ Any TradingView timeframe
✔ Developing and Confirmed calculation modes
✔ Connected and Native display modes
✔ Standard MA Offset
✔ Uses TradingView Style settings for colour and line width
✔ No repainting or future leakage
✔ Lightweight and fast
⚙️ Value Modes
📡 Developing (Default)
Includes the active source-timeframe candle in the calculation.
This behaves like traders generally expect when viewing a higher-timeframe moving average on a lower-timeframe chart, allowing the MA to update as the source candle develops.
Perfect for discretionary chart analysis.
🔒 Confirmed
Uses only completed source-timeframe candles.
The plotted value remains unchanged until the next source-timeframe candle closes.
Ideal for:
• Strategies
• Alerts
• Stable signal generation
• Any workflow requiring confirmed higher-timeframe values
📉 Line Modes
🔗 Connected (Default)
Connects each source-timeframe moving-average value using straight lines.
This provides a cleaner, smoother appearance that most traders prefer when analysing trends across multiple timeframes.
Note: The connecting segments are visual interpolation between confirmed source-timeframe values. They improve readability but should not be interpreted as the exact value that existed on every individual chart bar.
🪜 Native
Displays the actual sampled moving-average value available on every chart bar.
When the selected timeframe is higher than the chart timeframe, the line naturally appears as a staircase because the source-timeframe value only updates when that timeframe produces a new value.
This mode is recommended whenever the output is being used for:
• Strategy logic
• Alerts
• Numerical comparisons
• Other indicators
💡 Typical Uses
• Overlay a Daily 200 SMA while trading the 15-minute chart
• View Weekly trend direction without changing chart timeframe
• Display Monthly moving averages on swing-trading charts
• Compare multiple native timeframe moving averages by adding multiple indicator instances
• Keep important higher-timeframe trend references visible while executing on lower timeframes
🎯 Why use this instead of a standard Moving Average?
A standard Moving Average is always calculated from the timeframe of the chart you're viewing.
This indicator keeps the calculation anchored to the timeframe you choose.
That means a 200 Daily SMA always remains a 200 Daily SMA, regardless of whether you're looking at a 5-minute chart or a Weekly chart. It never silently becomes a 200-bar moving average of the current chart timeframe.
🚀 Final Notes
This indicator was designed to provide a clean, reliable and flexible way to work with native timeframe moving averages across any chart.
Whether you're monitoring long-term trend structure while trading intraday or building multi-timeframe confluence into your analysis, Native Timeframe Moving Average keeps your moving averages true to their original timeframe while giving you the flexibility to choose between the smooth appearance of Connected mode and the mathematically exact representation of Native mode. Indicatore
