Market Regime LensMarket Regime Lens
Market Regime Lens reads the market on four independent axes and gives you one honest sentence about the current tape. It is a context descriptor, not a signal — it never tells you which way to trade. It tells you whether the tape is readable, how it moves, how long things take, and how risk is arriving.
WHY FOUR AXES, ONE COMPONENT EACH
Most multi-indicator tools stack measures that secretly say the same thing — three complexity metrics agreeing is not confirmation, it is autocorrelation. This tool deliberately uses one component per independent axis, so each number tells you something the others cannot.
STRUCTURE — Complexity-Entropy plane. Bandt-Pompe permutation entropy paired with Martin-Plastino-Rosso statistical complexity, classifying the tape as structured, mixed, or noise. Thresholds are adaptive by default: the reading is ranked against the instrument's own recent range, so it self-calibrates to any market and timeframe instead of relying on absolute cutoffs that break when you change the window.
PERSISTENCE — Anomalous-diffusion exponent. Fitted from mean-squared-displacement scaling across lags: alpha above 1 means super-diffusive (trending), alpha near 1 is a random walk, alpha below 1 is sub-diffusive (mean-reverting). This describes the character of the motion, not its direction.
TIME — First passage and null odds. Expected bars to reach the target versus the stop under a driftless diffusion, plus the null barrier probability P = b/(a+b) — what a coin flip gives you at your chosen reward-to-risk. At 1.5R that is 40%. That is the breakeven any setup must clear, stated plainly.
TAIL — Extremal index. Measures whether extreme moves cluster (theta below 1) or arrive independently. Clustered tails mean gap risk shows up in bursts, which matters for stop placement.
ON THE CHART
The main line is the diffusion exponent, colored by state and filled against the alpha = 1 random-walk baseline, so deviation from randomness is visible at a glance. Faint guides mark the trending and reverting thresholds. Background tint shows the structure class. The panel adapts to your chart theme and colors each row by meaning — including green or amber on the null-odds row depending on whether your chosen R gives better-than-even odds.
PAIRS WITH RISK & LEVELS COCKPIT
Optionally wire the target and stop sources to the Cockpit's exported levels, and the timing and null-probability rows use your real trade levels instead of internal ATR references.
WORKS ON ANY MARKET AND TIMEFRAME
All lookbacks are in bars with no session, expiry, or clock anchors. Non-repainting: everything uses the current bar's data and confirms at close.
LIMITATIONS
Not a signal and not investment advice — no axis forecasts direction. Permutation entropy and complexity require a window much larger than d factorial; at dimension 4 use at least 300 bars, since short windows are undersampling-biased and pin to a constant. Adaptive thresholds classify relative to the instrument's own recent range, so "structured" means structured for this market lately, not in any absolute sense. First-passage times and the null probability assume driftless diffusion with constant volatility — a deliberate null baseline, not a forecast. The extremal index needs enough exceedances; too short a window pins it at 1.00.
CREDITS
Original implementation. Bandt and Pompe permutation entropy; Martin-Plastino-Rosso and Lopez-Ruiz statistical complexity via Jensen-Shannon divergence; anomalous-diffusion MSD scaling; Ferro-Segers runs estimator for the extremal index; first-passage-time and gambler's-ruin barrier theory. Indicator

Advanced Support and Resistance with Reversal [AlphaPine]Advanced Support and Resistance with Reversal | AlphaPine
I built this indicator for a simple reason: a breakout line on its own does not tell me enough. I also want to know whether price comes back, holds the level from the other side, and later loses it again.
The script starts with confirmed swing highs and lows. Those become resistance and support. It then follows each level through three possible events: breakout, retest, and failure. Nothing here predicts the next move. It is a way to keep market structure organised without redrawing the same levels by hand.
The image below shows the full level lifecycle in one view, including the symbols that appear at each stage:
How a level is created
A resistance level comes from a confirmed pivot high. A support level comes from a confirmed pivot low. If zones are enabled, the zone uses the wick range of the pivot candle rather than an arbitrary fixed width.
Pivot confirmation takes time. With Pivot Length set to 10, for example, the script needs ten bars on the right side of the pivot before the level exists. This delay is intentional.
Pivot Length controls how selective the swing detection is. A larger value usually gives fewer levels and confirms them later.
Lookback Period sets how long a level remains in the script's working history.
Maximum Levels per Type limits stored resistance and support records so the chart does not keep growing indefinitely.
Wick Dominance Filter keeps only pivot candles whose rejection wick is larger than the body and opposite wick.
Merge Nearby Active Levels removes clutter by skipping a new pivot when an active level of the same type is already nearby. Broken levels do not block a fresh one.
The merge distance uses ATR-14, so it adjusts to the instrument instead of relying on one fixed price interval.
Breakouts
The default breakout mode is Close . Resistance must close above its boundary, while support must close below it. This avoids counting every small wick through a level.
Wick mode reacts earlier. It triggers when the high or low crosses the boundary during the live candle. The recorded extreme cannot retract, but price can still close back inside the level, so Wick mode will naturally include more intrabar fakeouts.
Breakout Buffer adds an optional ATR-based distance beyond the level. Leave it at zero for the exact boundary, or raise it if very small breaks are not useful for your chart.
By default:
A resistance breakout prints an upward blue triangle below the candle.
A support breakout prints a downward orange triangle above the candle.
The marker colours are fully adjustable.
Retests and role reversals
After resistance breaks, the script waits to see whether price can retest it as support. After support breaks, it watches for the same level to act as resistance.
RS means old resistance has been confirmed as new support.
SR means old support has been confirmed as new resistance.
Reversal Confirmation controls what counts as a retest:
Close (default) requires the retest candle to touch the original zone and close back beyond the whole zone on the new-role side.
Touch accepts any later overlap with the zone. It is more sensitive and less strict.
Once confirmed, the new role stays fixed. An RS level remains tracked as support; it does not turn red merely because the latest candle happens to sit below it.
When a flip fails
A flipped level is removed when a confirmed candle closes through the far side of its zone. In other words, RS support fails below the zone and SR resistance fails above it.
If Show Reversal Failures is enabled, an ✕ marks the failure candle. The flipped line stops there, but the cross stays on the chart as a record of where the level died. That is why a failure cross can appear without a continuing line.
Breakout triangles and failure crosses use the original pivot as their Lookback anchor. This keeps their expiry on the same structural clock as the level they came from instead of giving every marker a new lifetime from its event candle.
Reading the chart
R1 is the nearest active resistance above price, followed by R2, R3, and so on.
S1 is the nearest active support below price, followed by S2, S3, and so on.
RS marks a confirmed resistance-to-support flip.
SR marks a confirmed support-to-resistance flip.
Triangles mark breakouts. Crosses mark failed flips.
A breakout marker is an event, not an entry instruction. I find the retest more useful than the first break, but how it is traded still depends on trend, execution, and risk rules outside this indicator.
Lines, zones, and historical placement
Historical Level Start decides where an original level begins:
Confirmation (default) starts it on the bar where the pivot became known in real time.
Pivot extends it back to the swing candle. This is useful for visual context, but the level was not available on that earlier candle.
Display as Zones replaces the single-price lines with the original pivot-wick range. If that level flips, the same price range is preserved; the zone is not moved to the opposite side of the price.
Colours
The Colors group separates colours by purpose, so changing a label does not force the matching line to use the same colour.
Resistance and support lines/zones.
RS and SR lines/zones.
Resistance, support, RS, and SR price labels.
Resistance and support breakout triangles.
Support and resistance failure crosses.
Zone fills and borders use transparent versions of the selected line colour so candles remain visible underneath.
Alerts
Seven alert conditions are included:
Resistance Breakout
Support Breakout
Resistance to Support Flip
Support to Resistance Flip
Flipped Support Failed
Flipped Resistance Failed
Any S/R Event
The combined alert is useful when one alert should cover every structural event. Separate conditions are available when different actions are needed for breaks, flips, or failures.
A sensible starting setup
The defaults use Close confirmation for both breakouts and retests. Start there if you prefer signals that wait for the candle to finish. Wick breakout and Touch retest are available when earlier, more sensitive reactions are more important.
If the chart feels crowded, try increasing Pivot Length, increasing Merge Distance, enabling the Wick Dominance Filter, or reducing Maximum Levels per Type. Settings should be adjusted for the instrument and timeframe rather than treated as universal values.
Important limitations
Confirmed pivots always arrive late by Pivot Length bars. That is how pivot confirmation works, not a hidden predictive signal.
Pivot historical placement back-draws a confirmed level for context. Use Confirmation placement when real-time availability matters.
Wick mode can mark a breakout that later closes back inside the level.
The current-bar drawings rebuild while the candle updates.
The script uses chart data only. It does not request higher-timeframe data or use lookahead.
It does not place orders, calculate position size, or guarantee that a level will hold.
Use it as a structure tool, then apply your own trade plan and risk management.
Indicator

Indicator

Indicator

Fractal Memory Strategy [Jayadev Rana]Fractal Memory Strategy trades the same engine as the Fractal Memory Projection indicator: it looks for the historical episode most similar to current price action, and only takes trend flips that agree with how that episode played out. Exits scale out at three volatility-adaptive targets.
HOW IT DECIDES
An ATR trailing stop tracks the trend. When it flips, the last 30 closes are converted to normalized log returns and compared against past windows by mean squared distance. The bars that followed the best analog give a net direction; the flip is only traded when the analog direction agrees (the filter can be disabled). Orders are processed on bar close, so no lookahead is involved. For visual context the strategy also draws the 50-candle ghost projection beyond the last bar - it is display-only and never affects order logic.
ENTRIES AND EXITS
On a confirmed bullish flip with agreement the strategy closes any short and enters long; the mirror applies to shorts. One unit of risk R equals ATR times (1.2 plus the ATR percentile rank over 200 bars), so targets and stops widen in volatile regimes and tighten in quiet ones. Position exits: one third at 1R, one third at 2R, the remainder at 3R, with a stop at 1.5R (all adjustable). Direction can be restricted to long-only or short-only.
PROPERTIES USED IN THE PUBLISHED BACKTEST
10,000 initial capital, 10 percent of equity per trade, 0.01 percent commission per order, 2 ticks slippage, no pyramiding, orders on close. These are deliberately conservative; adjust them to match your own broker before drawing any conclusion.
PANEL
Match similarity, volatility regime, forecast direction, closed trade count and win rate.
NOTES
The analog projection is a statistical reference, not a prediction, and past behaviour does not guarantee anything about the future. Results vary by symbol and timeframe; test on your own market with realistic costs before considering any live use. This is an educational tool, not financial advice. Strategy

Indicator

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. Indicator

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. Indicator

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が残り、当時のティック列そのものは残りません。
- 本インジケーターはエントリー、決済、ストップ、ロット、成績表を提供しません。 Indicator

Indicator

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. Indicator

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. Indicator

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. Indicator

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 PulseWire timeframe
✔ Developing and Confirmed calculation modes
✔ Connected and Native display modes
✔ Standard MA Offset
✔ Uses PulseWire 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. Indicator

Indicator

Risk & Levels CockpitRisk & Levels Cockpit
Risk & Levels Cockpit answers one question on any market and any timeframe: if I take this trade, where is my stop, what size should I trade, and what can I lose? It is a risk-and-levels tool, not a buy/sell signal — it does not predict direction, it bounds risk around a trade you have already decided to take.
HOW IT WORKS
Three components chain one-way:
Theil-Sen robust channel — fits a trend line as the median of all pairwise slopes over the lookback. Being a median, it cannot be tilted by a single spike or wick the way ordinary regression can, so the rails give you a stable structure to trade against.
Extreme Value Theory tail model (Peaks-Over-Threshold, Generalized Pareto) — estimates how far price can realistically move against you at a chosen tail quantile, replacing a guessed 2xATR stop with a distance grounded in the actual tail of the return distribution. The channel rail acts as a structural floor, so your stop is never tighter than the channel edge.
Fixed-fractional sizer — turns that stop into a position size: units = floor(risk-budget / (risk distance x point value)). When the stop is wider than your risk budget, size correctly floors to zero and the panel shows what one unit would cost and the capital that would make one unit equal your target risk, so a zero is a decision, not a dead end.
TWO SIZING BASES
Stop distance risks your fraction at the drawn stop. Expected Shortfall risks your fraction at the mean loss beyond the stop (McNeil-Frey POT form, from the same tail fit) — wider, so fewer units, so that gapping through your stop still respects your budget. The panel always shows both the at-stop and at-tail loss per unit, so gap risk is visible in either mode. An optional vol-target overlay (on by default) scales size to keep portfolio volatility steadier across regimes; the Size-mode row always shows the live multiplier.
WORKS ON ANY MARKET, ANY TIMEFRAME
No session, expiry, or clock anchors; every lookback is in bars and volatility annualization self-scales — identical behavior from 1-minute scalping to daily positional, on stocks, futures, forex, crypto, and indices worldwide. Set the currency symbol and point value (money per point per unit) to your instrument: stocks/crypto/spot = 1; index and futures = the contract multiplier (for example NIFTY 65, S&P E-mini 50, Nikkei 1000, DAX 25); forex = point value per lot; options = point value x delta.
A Scalp/Intraday, Positional, or Custom preset adjusts the tail horizon and quantile. Scalp/Intraday is the default (tighter stops); positional traders should switch to the Positional preset for wider, conservative stops.
ON THE CHART
A slope-colored robust trend line with a TREND pill and a channel band, plus solid, pill-labeled decision levels — red STOP, amber BREAK (invalidation), and green T1 and T2 TARGET, each showing price and R-multiple. The panel gives the full sizing and risk readout, including a daily-loss-budget line.
LIMITATIONS (read before use)
Not a signal and not investment advice. Stops and targets are model references, not guarantees — gaps and slippage can exceed them. The tail quantile is scaled to the holding horizon by square-root-of-time, a deliberate approximation chosen over overlapping h-bar fitting which violates independence. The daily-loss cap is a display aid; a single-chart indicator cannot track or enforce live fills. The vol-target overlay multiplies the fixed-fractional size and can nudge per-trade risk above the nominal percent in calm markets — set Size clamp max to 1.0 to only reduce size, or turn it off for a strict fixed-percent rule. Position sizing does not create an edge; it bounds risk.
CREDITS
Original implementation. Theil (1950) and Sen (1968) robust slope; Pickands-Balkema-de Haan / Peaks-Over-Threshold Generalized Pareto tail estimation and Expected Shortfall (McNeil-Frey); fixed-fractional position sizing (Tharp / Vince). Indicator

Nebbia Session Map & HTF Levels Nebbia Market Sessions & Liquidity Levels is an open-source intraday market-mapping indicator designed to combine session structure, liquidity references, higher-timeframe levels and the US Initial Balance in a single charting tool.
The script is intended primarily for traders who work on lower intraday timeframes and want a clear view of where price is trading relative to important session ranges, historical highs and lows, confirmed swing levels, opening prices and Initial Balance projections.
Market Sessions
The indicator can display the main intraday trading sessions:
Asia
London
New York AM
New York Lunch
New York PM
Each session can be enabled or disabled independently and has customizable hours, colors and transparency.
The first hour of the Asia and London sessions can also be highlighted separately, making it easier to identify their initial range and early-session price development.
Session times use timezone-aware calculations, allowing daylight-saving changes to be handled correctly when IANA timezones such as America/New_York, America/Chicago, Europe/London, Europe/Rome and Asia/Tokyo are selected.
Killzone Pivots
For every enabled killzone, the script can track the session high and low and extend them forward as potential liquidity levels.
These pivots can remain active according to three different expiration rules:
until the end of the trading day;
until the next occurrence of the same session;
until the level is mitigated.
A pivot stops extending once price trades through it.
Alerts can also be enabled for killzone pivot breaks.
Higher-Timeframe Liquidity Levels
Nebbia can display historical liquidity references from several timeframes:
past daily highs and lows;
past weekly highs and lows;
past monthly highs and lows;
two optional confirmed swing-timeframe slots.
The two swing slots are fully configurable. They may be used, for example, for:
4-hour swings;
1-hour swings;
30-minute swings;
or any other supported timeframe.
Swing highs and lows are confirmed only after the selected number of right-side bars has closed, preventing an unconfirmed pivot from being displayed prematurely.
The timeframe name is generated automatically in the label, producing references such as:
4H H
4H L
1H H
30M L
When two swing levels occur at the same price, the higher timeframe takes priority.
Level Confluence
When multiple liquidity references share the same price, Nebbia merges them instead of drawing several overlapping lines.
The hierarchy is:
Monthly → Weekly → Daily → higher swing timeframe → lower swing timeframe
The highest-priority line remains visible, while the label can report the relevant confluence.
Examples:
W LOW 09.06 / 4H L
D HIGH 16.07 / 1H H
M LOW 01.07 / W LOW 07.07
This keeps the chart readable while preserving the information contained in lower-timeframe confirmations.
Active and Mitigated Levels
Active liquidity levels are displayed using the selected active line style.
Once price trades through a level, it can be converted into a mitigated level using a separate broken-line style and transparency.
A dedicated setting allows mitigated levels to be shown or hidden completely.
This means the chart can be configured either to retain historical interaction points or to display only liquidity levels that remain untouched.
Level labels can also be enabled or disabled independently.
High labels are positioned above their level, while low labels are positioned below it.
Current Trading-Day High and Low
An optional developing mode can display the high and low of the current Chicago trading day.
These levels update throughout the session and are treated as provisional rather than as already-confirmed historical levels.
At the beginning of the next trading day, the completed daily range is transferred into the normal historical daily-level logic.
ADR5 Distance Filter
Nebbia includes an optional ADR5 filter, based on the average daily range of the five most recently completed trading days.
The ADR5 value is calculated and frozen at the beginning of each new trading day.
Only levels located within the selected ADR5 distance multiplier are displayed.
This can reduce chart clutter by hiding historical liquidity references that are too far away from current price.
For example:
1.0 displays levels within one ADR5;
1.5 displays levels within one and a half ADR5;
2.0 displays levels within two ADR5.
Opening Prices
The indicator can display the latest opening price for:
Daily Open — 00:00 Rome
Tokyo Open — 09:00 Tokyo
London Open — 08:00 London
US Cash Open — 08:30 Chicago
Each opening price has an independent visibility option, color and editable label text.
Only the latest relevant opening line is retained, preventing older opening levels from unnecessarily accumulating on the chart.
Time Markers and Separators
Optional vertical timestamps can identify:
00:00 Rome;
08:30 Chicago.
Daily, weekly and monthly separators can also be displayed independently.
Optional day-of-week labels may be placed at the top or bottom of the chart, with the possibility of hiding weekend labels.
US Initial Balance
Nebbia includes a dedicated US Initial Balance module based on the first hour of the US cash session:
08:30–09:30 America/Chicago
The Initial Balance can display:
IB High;
IB Low;
50% midpoint;
optional ×2 and ×3 extensions;
optional 50% levels between the main extensions;
a highlighted IB time window;
a tinted area between IB High and IB Low;
optional price labels;
configurable extension direction and line styles.
When lines are extended to the right, they remain active until the beginning of the next trading day’s Initial Balance rather than extending indefinitely.
The script can also calculate statistics from the previous 20 completed Initial Balance sessions.
Customization
Most visual components can be configured independently, including:
session colors and transparency;
swing timeframes and pivot sensitivity;
level colors and widths;
active and mitigated line styles;
label visibility and distance;
opening-price labels;
timestamp styles;
Initial Balance colors, widths and extensions;
timeframe visibility limits;
session-history drawing limits.
Credits
This open-source project was inspired in part by:
ICT Killzones + Pivots
by tradeforopp
Full recognition is given to the original author for the concepts and foundation that helped inspire the session and pivot components of this project.
Nebbia Market Sessions & Liquidity Levels is an independent expansion and redesign that adds higher-timeframe liquidity mapping, swing-timeframe slots, confluence management, ADR5 filtering, opening prices, timestamps and a complete US Initial Balance module.
Disclaimer
This indicator is provided for educational and analytical purposes only.
It does not constitute financial advice, investment advice or a recommendation to enter or exit any trade. Historical levels, session ranges, pivots and Initial Balance projections do not guarantee future market behavior. Indicator

Anchored VWAP Engine [Quantum Algo]Anchored VWAP Engine
====================================================
🔶 OVERVIEW
Anchored VWAP Engine is a multi-stream anchored Volume Weighted Average Price indicator that removes the hardest part of trading with anchored VWAP: choosing the anchor. The engine runs up to seven independently anchored VWAP streams that place and reset their own anchors automatically — the week open (the default stream), session open, month open, confirmed swing highs and swing lows, the highest-volume bar in a lookback, and a liquidity-sweep anchor that re-anchors from the exact bar where a stop run occurred. On top of the streams it adds volume-weighted deviation bands, automatic confluence cluster zones where multiple streams converge, band-rejection signals, and a stability metric that names which VWAP the market is currently respecting most.
Out of the box the chart shows a single clean line: the week-anchored Volume Weighted Average Price with its deviation bands. Every additional stream is one checkbox away.
🔶 WHAT IS AN ANCHORED VWAP?
The Volume Weighted Average Price is the average price of an instrument weighted by traded volume — the closest public approximation of the average position price of everyone who transacted since a chosen starting point. An anchored VWAP starts that calculation from a meaningful event rather than an arbitrary date: a weekly open, a swing low, a high-volume climax bar. Price above an anchored VWAP means the average participant since that event is in profit; price returning to it often behaves as a decision level, because it is where the average position breaks even. The power of the tool depends entirely on where it is anchored — which is exactly what this engine automates.
🔶 WHY THIS SCRIPT IS ORIGINAL
1. Automatic multi-anchor engine. Seven streams anchor and re-anchor themselves from objectively defined events — no manual anchor placement, no stale anchors, no guessing.
2. The liquidity-sweep anchor. When a swing level is wicked through and rejected — a stop run — the sweep stream re-anchors from that exact bar and colors itself by implication: the accumulation tone after a sell-side sweep, the distribution tone after a buy-side raid. Averaging from the stop-run bar tracks the entry basis of the participants who engineered it. To our knowledge this anchor type has not been published before.
3. Exact swing anchoring. Swing-anchored streams rebuild their sums retroactively from the true pivot bar once the pivot confirms, so the calculation is mathematically identical to a VWAP hand-anchored on the swing itself — not started late at the confirmation bar.
4. Confluence clusters. When two or more active streams converge within an Average True Range tolerance, the engine draws a cluster zone and labels its strength. Multiple independent volume-weighted averages agreeing on one price is the strongest form of VWAP confluence, detected automatically.
5. The In Control metric. An exponentially decayed crossing-rate measures how cleanly price is respecting each stream; the dashboard names the stream currently in control. Users learn which anchor matters today instead of watching all of them equally.
6. True volume-weighted deviation bands. The bands are built from the volume-weighted variance of the primary stream — not a simple price standard deviation — at two configurable widths, with band-rejection signals printed as a single σ character whose full context lives in the hover tooltip, protected by a signal cooldown.
7. Quiet by default. One stream, one set of bands, capped signals, and a compact dashboard. The engine detects everything; the chart shows only what is asked of it.
🔶 HOW IT WORKS
Streams: Each stream maintains volume-weighted price and variance sums that reset on its anchor event — new week, new session, new month, a confirmed swing, a lookback volume record, or a qualified liquidity sweep. Between events the sums accumulate bar by bar, producing the stream's live anchored VWAP.
Sweep detection: A sweep qualifies when price wicks through the last confirmed swing level but closes back inside it, with per-level memory so the same level cannot re-trigger. The sweep stream then re-anchors from that bar.
Deviation bands: The primary stream (selectable; week open by default) carries inner and outer bands at configurable sigma multiples computed from its own volume-weighted variance, with softly tinted zones between them.
Signals: A wick beyond the outer band with a close back inside, on the correct side of the VWAP, prints the σ rejection signal — reversion bias toward the average — evaluated on closed bars only and rate-limited by the cooldown.
Clusters: On the live bar the engine groups all active stream values within the tolerance and draws a labeled zone for each group of two or more.
Dashboard: A fully themeable panel lists every stream with its live distance from price in Average True Range units and side, plus the In Control stream, active cluster count, and the current band width.
Non-repainting: Anchors use confirmed events, sweeps and signals are evaluated at bar close, and swing streams rebuild exactly rather than approximately.
🔶 HOW TO USE IT
1. Works on any market with reliable volume — cryptocurrency, stocks, indices, futures. On the default settings, read the week-anchored VWAP as the institutional benchmark: above it with rising distance means the average weekly participant is in profit.
2. Treat the VWAP itself as the decision level and the outer bands as stretch: σ rejections at the outer band carry a reversion bias back toward the average.
3. Enable the swing and sweep anchors to study reactions: price returning to a sweep-anchored VWAP is returning to the average entry of the stop-run — a level worth watching.
4. Cluster zones are the highest-value levels the engine produces: several independent volume-weighted averages agreeing on one price. Watch how price behaves on first touch.
5. Use the In Control row to pick which stream deserves your attention today, and the distance column to see what is nearby before it is hit.
6. Intraday traders can switch the primary stream to Session Open; swing traders can promote Month Open.
🔶 SETTINGS
- Anchors: independent toggles for all seven streams, swing pivot length, highest-volume lookback. Default: Week Open only.
- Primary stream selection with inner and outer band multiples.
- Cluster detection with Average True Range tolerance.
- Signals: toggle, cooldown, and signals to keep.
- Individual colors for every stream plus accent and neutral colors.
- Themeable dashboard: position, four text sizes, title band, background, frame, grid, and three text colors.
🔶 ALERTS
- Bullish / Bearish Band Rejection — price rejected the outer deviation band of the primary stream.
- Price Crossed Above / Below Primary VWAP.
- VWAP Cluster Formed — two or more streams converged into a confluence zone.
- Sweep Anchor Reset — a liquidity sweep occurred and the sweep stream re-anchored from the stop-run bar.
🔶 FREQUENTLY ASKED QUESTIONS
Does the indicator repaint? No. Anchor events are confirmed before they act, swing streams rebuild exactly from the confirmed pivot bar, and signals are evaluated on closed bars. Swing confirmation carries its standard pivot lag by design.
Why do I only see one line? By default only the week-anchored stream is enabled for a clean first chart. Every other anchor is a checkbox in settings.
What makes the sweep anchor special? It averages price and volume from the exact bar where stops were run — the basis of the participants who engineered the move — rather than from a calendar date or swing alone.
Why is there no cluster or In Control reading? Both features compare multiple streams; enable two or more anchors and they activate.
Which markets should avoid it? Any Volume Weighted Average Price tool is only as good as the volume feed. On symbols with unreliable or synthetic volume reporting, treat every stream with caution.
🔶 CREDITS
The Volume Weighted Average Price was introduced by Stephen Berkowitz, Dennis Logue and Eugene Noser (1988), and the anchored application was popularized by Brian Shannon, whose work established anchoring from meaningful events as a discipline. This script gratefully acknowledges both. The multi-stream auto-anchoring engine, the liquidity-sweep anchor, the exact retroactive swing rebuild, confluence clustering, the In Control stability metric, and all code in this script are original work — no third-party or open-source script code was reused.
🔶 LIMITATIONS
Volume quality determines VWAP quality; symbols with unreliable volume produce unreliable averages. Deviation bands need bars to mature after each re-anchor. Cluster detection reports convergence, not a guarantee of reaction. The In Control metric measures recent respect, not future behavior. No indicator replaces independent analysis.
🔶 DISCLAIMER
This script is provided strictly for educational and informational purposes. It is not financial advice, an investment recommendation, or a solicitation to buy or sell any financial instrument. Past behavior of any average, band, or cluster does not guarantee future results. Trading involves substantial risk. Always do your own research and manage risk independently. Indicator

3m Cycles3m Cycles is a PulseWire indicator that draws vertical lines on your chart at fixed clock-based time intervals — every 20 seconds, every 1 minute, and every 3 minutes — to help you visually track recurring market cycles.
Each cycle is fully independent and configurable: you can set the line color, width, and style (solid, dashed, or dotted), control how far back and ahead the lines project, and choose which chart timeframes each cycle appears on. The 3-minute cycle acts as the master clock — all three cycles' visible windows shift forward together every time a new 3-minute boundary is crossed, keeping everything in sync. Lines are pre-drawn into the future so they're already on the chart before the candle forms, and they automatically disappear once they fall outside your configured lookback window. Indicator

Auto Support and Resistance [3Commas]Auto Support and Resistance
This indicator maps market structure automatically. Instead of drawing levels by hand, it derives them from recent price action and volatility, then presents a single, consistent read of where price is trading, the zones around it, and the two most likely paths from here.
How it works (the method):
- Macro ceiling & floor — the highest high and lowest low over a configurable lookback window define the outer boundary of the current regime (Macro Resistance / Macro Support).
- Local decision levels — the indicator tracks confirmed swing pivots (a high or low with a set number of bars on each side) and selects the nearest significant pivot above and below price, ignoring any that hug the current price so the levels stay meaningful. These become the Local High / Decision and Local Low. Equilibrium marks the current price.
- Volatility-scaled zones — the Resistance, Support and Accumulation zones are sized from Average True Range (ATR), so they widen on volatile symbols and tighten on calm ones, staying meaningful across different assets and timeframes.
- Two scenario paths — from equilibrium the script projects a bullish and a bearish path as multi-leg zig-zags scaled to ATR, each ending at a target. You choose what the targets represent: an ATR-based measured move (default), the nearest local levels, or the macro boundary. Measured-move targets are capped to the macro range so they always stay on the chart.
How to use it:
1. Add it to any chart and timeframe. Levels, zones and paths populate automatically.
2. Tune detection in Settings: "Macro lookback" sets how far back the ceiling/floor is measured; "Swing sensitivity" controls how strong a pivot must be to count; "Min level distance", "Zone width" and "Scenario swing size" refine spacing; "Scenario target" picks what the arrows aim at.
3. Read it as a decision map: is price nearer the ceiling or the floor, which local level must break first, and which scenario path is in play.
Optional manual mode: turn "Auto-detect" off to enter your own levels, zones and targets — useful for presenting a pre-planned idea.
Colors: red = resistance/ceiling, blue = equilibrium/current price, green = support/floor. White = projected scenario paths.
This tool is for chart visualisation and educational purposes only and is not financial advice. It does not generate buy/sell signals. Indicator

Regime-Conditional Correlation [RC Tools]RC Tools — Regime-Conditional Correlation
─────────────────────────────────────────────────────────────
█ OVERVIEW
Plain rolling correlation between two assets is well-covered ground. The angle here: correlation is not a constant — it changes with the market regime. This tool computes rolling correlation against a second symbol of your choice and buckets it by the same regime framework as the Regime Classifier, so you can see whether a correlation you're relying on actually holds up across market conditions, or only shows up in one of them.
█ WHAT IT DOES
Plots rolling correlation (Pearson, default 20-bar window) between the current chart's symbol and a compare symbol you choose. Colours the background by the current market regime (Trending — Expansion/Exhaustion, Ranging — Quiet/Volatile), using the identical directionality × volatility-percentile logic as the Regime Classifier. A table shows the current regime and correlation, plus the average correlation, its standard deviation, and the sample count for each of the four regimes historically.
█ THE THEORY BEHIND IT
A single "the correlation is 0.8" number hides a lot. Two assets can be tightly linked during calm trending markets and decouple completely during volatile chop — or vice versa. Regime-conditioning the correlation surfaces that structure instead of averaging it away. This matters directly for anything relying on a stable cross-asset relationship: hedges, pairs, or diversification assumptions that quietly break exactly when you need them most (in the volatile regime).
█ HOW IT IS CALCULATED
CORRELATION: standard Pearson correlation between the current symbol's close and the compare symbol's close (fetched via request.security on the same timeframe), over a rolling window (default 20 bars).
REGIME: identical to the Regime Classifier — Efficiency Ratio for directionality, percentile-ranked realised volatility for volatility state, crossed to give four states. Regime is measured on the CURRENT chart's own price action, not the compare symbol. See the Regime Classifier's description for the full methodology.
The correlation reading and the regime are both "as of now" — contemporaneous — so unlike the Regime Classifier's forward-return table, no forward-looking attribution is needed here: each confirmed bar's correlation is added directly to the running average for whichever regime was active on that same bar.
█ SETTINGS & CONFIGURATION
• Compare Symbol (default BTCUSD) — the second asset to correlate against
• Correlation Length (default 20 bars)
• Regime settings mirror the Regime Classifier exactly (Efficiency Ratio lookback, directionality threshold, realised vol lookback, percentile window, volatility percentile threshold) — keep these in sync if you run both indicators together
• Paint Main Chart Background — off by default; enable on only one of the two indicators if running both, to avoid overlapping backgrounds
█ HOW TO USE IT
Check whether a correlation you're relying on is regime-dependent before trusting it. Example: if a hedge shows strong negative correlation in Ranging — Quiet but the average correlation flips or weakens in Ranging — Volatile, that hedge may not protect you exactly when volatility spikes. Always check the sample count (N) per regime before drawing conclusions — a regime with few historical bars hasn't been tested enough to trust its average.
█ LIMITATIONS
• Correlation is measured over a short rolling window and is noisy by nature — it will swing even when the underlying relationship is stable.
• The compare symbol is fetched via request.security on the same timeframe; illiquid symbols, different exchange sessions, or timezone misalignment can introduce lag or missing values.
• Regime classification carries the same caveats as the Regime Classifier: it is backward-looking by construction, unstable near threshold boundaries, and needs substantial history to be reliable.
• Per-regime correlation statistics accumulate only from where the chart's loaded history begins — early sample counts are small and not yet statistically meaningful.
• This script does NOT repaint. All classification and correlation display values update on confirmed bar close only.
█ DISCLAIMER
For educational and informational purposes only. Nothing here is financial advice. Past correlation between any two assets does not indicate future results. Trade at your own risk.
Indicator

Auto Support/Resistance ZonesAuto Support Resistance Zones is a visual support and resistance mapping tool built from confirmed pivot highs and pivot lows.
The script automatically detects confirmed swing pivots, clusters nearby pivot prices into horizontal zones, and displays the most relevant zones around current price. Instead of drawing single-price support or resistance lines, it builds price areas because real market reactions often occur around ranges rather than exact levels.
What the script shows
- Horizontal support and resistance zones
- Zones built from confirmed pivot highs and pivot lows
- Touch count for each zone
- Zone role: S, R, or Inside
- Relative strength label: Valid, Good, or Strong
- Pivot source label: H, L, or H/L
- Zone price range
- A compact state label showing the nearest support and resistance context
- Optional alerts for zone entry, zone exit, support break, and resistance break
How it works
The script uses confirmed pivot highs and confirmed pivot lows. A pivot is only available after the selected Pivot strength bars have passed.
Nearby pivot prices are grouped into zones using an ATR-based clustering method. If multiple pivots occur close to the same price area, they are merged into one zone. The script then evaluates each zone using touch count, recency, and zone width.
The displayed zones can be selected using:
- Nearest to price
- Most touches
- Balanced strength
Balanced strength is designed to keep the chart cleaner by considering both the number of touches and the freshness of the zone.
Zone labels
Each zone label can show:
- S: price is above the zone, so the zone is currently acting as support
- R: price is below the zone, so the zone is currently acting as resistance
- Inside: price is currently trading inside the zone
- x count: number of confirmed pivot touches
- H: zone mainly built from pivot highs
- L: zone mainly built from pivot lows
- H/L: mixed pivot-high and pivot-low area
- Valid / Good / Strong: a relative descriptive strength label
The strength label is not a prediction. It is only a descriptive score based on the zone’s structure.
State label
The state label summarizes the current relationship between price and nearby zones. It can show whether price is inside a zone or between zones, and it displays the nearest resistance and support areas when available.
Main inputs
Pivot Detection:
- Pivot strength
- Lookback bars
Zone Building:
- Cluster width x ATR
- Zone padding x ATR
- Maximum zone height x ATR
- Minimum touches
- Minimum bars between touches
- Maximum zones shown
- Zone selection mode
Display:
- Zone starts from first touch or last touch
- Show zone labels
- Show S/R role
- Show touch counts
- Show strength
- Show pivot source H/L
- Show price ranges
- Show state label
- State label offset
- Right-side zone extension
- Label size
Style:
- Zone border width
- Zone fill transparency
- Zone border transparency
- Support color
- Resistance color
- Inside-zone color
- State label text color
Alerts
The script includes alert conditions for:
- Zone entered
- Zone exited
- Resistance broken
- Support broken
These alerts are descriptive chart events. They are not buy or sell signals.
Repainting and confirmation note
This script uses confirmed pivot highs and confirmed pivot lows. Because pivots require confirmation, a new pivot appears only after the selected Pivot strength bars have passed.
When new pivots are confirmed, zones can be rebuilt, merged, or reclassified as support, resistance, or inside-zone areas depending on current price. This is normal behavior for a confirmed-pivot support and resistance tool.
The script does not use future-looking signals to predict price movement. It displays zones derived from confirmed historical pivot structure.
Limitations
Support and resistance zones are visual reference areas, not guaranteed reaction levels.
A zone with more touches or a stronger label does not guarantee that price will reverse, hold, reject, or break from that zone.
The script is intended for chart analysis, education, and visual review of horizontal price structure. It is not a trading system, financial advice, or a standalone buy/sell tool. Indicator

Momentum Cascade | Lyro RSOverview:
Momentum Cascade is a rate-of-change momentum tool that passes a single momentum reading through three sequential smoothing stages to filter out early, unconfirmed moves. Rather than reacting to the first sign of a shift, it waits for the momentum signal to "cascade" through instant, reactive, and committed stages before confirming a trend, giving a cleaner read on when a move has genuine follow-through.
Key Features
Three-Stage Cascade Engine: Calculates a rate-of-change momentum value, then passes it through two successive EMA smoothing stages. Stage 1 is the raw instant impulse, Stage 2 is the first reactive smoothing, and Stage 3 is the fully committed signal.
Trend Confirmation Score: Each stage contributes +1 or -1 depending on its direction. A trend only confirms when all three stages agree (score of +3 or -3), filtering out momentum blips that fade before they cascade through.
Gradient Strength Visualization: The committed Stage 3 line and candle coloring use a gradient blend based on how strong the current agreement is across all three stages, giving an at-a-glance read on conviction.
Multi-Layer Plotting: Displays all three cascade stages simultaneously (thin instant line, mid-weight reactive line, and a glow-effect committed line) so you can see momentum building in real time, not just the final confirmation.
Candle Coloring: Optionally recolors chart candles using the same gradient logic as the oscillator, aligning price action visually with the cascade's current trend strength.
Customizable Visuals: Choose from 4 preset palettes — Classic, Mystic, Accented, Royal — or define your own custom bullish/bearish colors.
Built-In Signals: Automatically plots long/short labels on confirmed trend flips (when the score crosses into full +3 or -3 agreement).
How It Works
Momentum Calculation – Computes rate-of-change of price over the chosen length as the raw momentum impulse (Stage 1).
Cascade Smoothing – Passes that momentum through an EMA to produce Stage 2 (reactive), then smooths again to produce Stage 3 (committed).
Scoring – Assigns +1/-1 per stage based on sign, summing to a score between -3 and +3.
Trend Confirmation – A trend state only flips when the score reaches full agreement (+3 or -3), meaning all three stages point the same direction.
Signal Plotting – Trend flips are marked with long/short labels, and candle/line coloring reflects both direction and agreement strength via gradient.
Practical Use
Trend Confirmation – Use full cascade agreement (score of ±3) as confirmation that a momentum shift has enough follow-through to be tradeable, rather than acting on Stage 1 alone.
Early Warning – Watch Stage 1 and Stage 2 for early signs of a potential shift before the full cascade confirms, useful for anticipating entries.
Conviction Reading – Use the gradient strength on Stage 3 and candles to gauge how strongly the current trend is holding versus weakening.
Combine with Structure – Pair cascade confirmations with support/resistance or market structure levels for higher-quality entries.
Customization
Adjust Momentum Length and Stage Smoothing independently to tune responsiveness vs. lag.
Toggle signal labels and candle coloring on/off.
Pick a preset palette or define fully custom bullish/bearish colors.
⚠️Disclaimer
This indicator is a tool for technical analysis and does not provide guaranteed results. It should be used in conjunction with other analysis methods and proper risk management practices. The creators of this indicator are not responsible for any financial decisions made based on its signals. Indicator
