インジケーター

インジケーター

EMA (Exponential Moving Average) by PARTHTRADERALERTSEMA (Exponential Moving Average) by PARTHTRADERALERTS
This is a clean and simple Multi EMA indicator designed for Price Action and Trend Trading.
What is EMA?
Exponential Moving Average (EMA) gives more weight to recent price, so it reacts faster than SMA. Perfect for intraday and swing trading.
Features in this Indicator:
✅ 6 EMAs in one indicator - 9, 11, 45, 30, 50, 100
✅ Default ON: EMA 9 (RED), EMA 11 (GREEN), EMA 45 (MAGENTA)
✅ Default OFF: EMA 30, 50, 100 - You can enable from settings
✅ Fully Customizable: You can change Length, Color, Width, Source
✅ Clean Chart: No extra boxes, no repaint, overlay fixed on price
✅ Works on All Markets: Stocks, Nifty, BankNifty, Crypto, Forex, Commodity
How to Use This Strategy?
1. TREND IDENTIFICATION: If price is above EMA 45, trend is UP. If below, trend is DOWN.
2. ENTRY SIGNAL (9/11 Crossover): When EMA 9 crosses above EMA 11 = Buy Signal. When EMA 9 crosses below EMA 11 = Sell Signal.
3. STRONG CONFIRMATION: Take buy trade only when Price > EMA 9 > EMA 11 > EMA 45. Opposite for sell.
4. STOP LOSS: Use EMA 45 as a trailing stop loss for swing trades.
Best Timeframe: 5 Min, 15 Min, 1 Hour, Daily
This indicator is made for beginners and pro traders who want a clean EMA setup without clutter.
Disclaimer: This is only for educational purpose. Do your own analysis before taking any trade.
#EMA #ExponentialMovingAverage #PARTHTRADERALERTS
#MovingAverage #Nifty #BankNifty #Crypto #Forex #Commodity
インジケーター

SMA20 Tail Reversal📌 Description:
The SMA20 Tail Reversal indicator is an upgraded, highly customizable tool designed to identify high-probability counter-trend reversals. Rather than signaling every minor pullback, this advanced version filters for stronger confirmation by tracking consecutive signals and requiring a "Higher Low" structure before triggering a "Strong Buy."
📌 What's New & Different from the Previous Version (SMA7 to SMA20):
Customizable Inputs: You can now adjust the SMA Length (default 20), Volume SMA Length, and Wick Ratio Threshold directly in the settings without editing the code.
Trend Shift (SMA7 → SMA20): The default moving average has been expanded to 20, filtering out market noise and focusing on more significant structural divergences.
Stricter Wick Condition: The default wick ratio has been tightened from 50% to 10% (0.1), ensuring only the cleanest, most decisive candles are considered.
"Strong Buy" & Higher Low Logic (Major Update): The script no longer prints every single signal. Instead, it internally tracks base signals. A Strong Buy is only triggered if the current base buy signal forms a higher low than the previous base buy signal.
Visual Overhaul: Bar coloring and the dotted connecting line have been completely removed for a cleaner chart. Signals are now displayed as highly visible "★ BUY" labels below the triggering candle.
Alerts Added: Built-in alerts allow traders to receive notifications exactly when a "Strong Buy" (consecutive & higher low) occurs.
📌 How It Works:
1. Moving Average & Volume Filters:
Calculates a Simple Moving Average (SMA) of length 20 (adjustable) as the primary threshold.
Requires the current candle's volume to be higher than the 20-period volume SMA.
2. Strict Candle Classification:
Bullish Candle: Close > Open, and the upper wick is extremely small (less than 10% of the body size by default).
Bearish Candle: Close < Open, and the lower wick is extremely small.
3. Base Signal Generation (Internal):
Base Long: High & Low are strictly below the SMA20 + Volume condition met + Bullish Candle detected.
Base Short: High & Low are strictly above the SMA20 + Volume condition met + Bearish Candle detected (used internally to break buy flows).
4. Consecutive Signal Confirmation:
When a Base Long occurs, the script checks the previous signal. If the previous signal was also a Base Long, and the current candle's low is higher than the previous signal's low, it confirms a Strong Buy.
📌 Visual Representation:
Blue Cross Shape (★ BUY): Appears below the candle only when the strict "Strong Buy" (Higher Low) conditions are met. (You can toggle this visibility in the settings).
📌 Usage:
Best applied to find exhaustion in downtrends where price has detached from the SMA20 and is beginning to form higher lows.
Designed to reduce false positives by requiring secondary confirmation (a consecutive setup with a higher low) rather than jumping in on the very first dip.
Can be hooked up to automated trading bots or mobile notifications using the built-in alert system. インジケーター

EMA Cloud [PhantomCipher]EMA Cloud
EMA Cloud shows the trend as a shaded band between two exponential moving averages, with a third EMA drawn as a longer-term reference line.
SNAPSHOT: the indicator on a clean chart, with the cloud in both colours and the 200 EMA line visible
How it works
Cloud: the area between a fast EMA (50 by default) and a slow EMA (100 by default) is filled. It's green while the fast EMA is at or above the slow EMA (uptrend) and red while it's below (downtrend).
EMA lines: the fast and slow EMAs are also drawn as lines that change colour with the trend.
Reference line: a separate EMA (200 by default) is drawn as a single line. It's not part of the cloud and its colour doesn't change with the trend. Use it to see where price sits against the longer-term trend.
Settings
Inputs tab: the length of each EMA, grouped into "EMA Cloud" (fast and slow) and "EMA Line" (the reference EMA).
Style tab: every colour, line width and on/off switch, including separate uptrend and downtrend colours for the cloud and for each EMA line.
Alerts
EMA Trend Up: fires when the fast EMA crosses above the slow EMA.
EMA Trend Down: fires when the fast EMA crosses below the slow EMA.
Create the alert with Once Per Bar Close . A cross that happens part-way through a bar can reverse before the bar closes.
The trend flip comes from comparing the two EMAs:
EMA_UpTrend = ta.ema(close, 50) >= ta.ema(close, 100)
SNAPSHOT: close-up of a trend flip, with the cloud changing colour where the two EMAs cross
How to use it
A change in cloud colour marks a shift in trend between the two EMAs. The 200 EMA adds context. For example, you might take only uptrend signals while price is above it, and only downtrend signals while price is below it.
Example chart: BYBIT:BTCUSDT.P
This indicator shows trend conditions. It's not a trading signal on its own, so combine it with your own analysis and risk management.
インジケーター

ATK/DEF Session Equilibrium State ATK/DEF - Session Equilibrium State is a session-based market analysis framework built around three defined market sessions: Asia, London, and New York.
The core structure consists of three independent session moving averages. Each moving average is assigned to a specific market session and calculated according to the selected moving-average type and length.
### Core Structure
* **Asia Session MA**
Independent moving average for the Asia session.
* **London Session MA**
Independent moving average for the London session.
* **New York Session MA**
Independent moving average for the New York session.
* **Session-Based MA Structure**
Three independent moving averages representing the three defined market sessions.
* **Global MA Reference**
Optional global moving average for additional structural reference.
* **Breakout / Fakeout State**
Records Break Up, Break Down, and Fakeout conditions based on the relationship between price and the corresponding session moving average.
* **Session State Panel**
Displays the defined state, direction, and result for each session.
### Session Equilibrium Framework
The framework uses independent moving-average structures to observe the relationship between price and the corresponding market session.
Asia, London, and New York are treated as separate session layers, with each layer maintaining its own moving-average structure and defined state conditions.
Breakout and Fakeout classifications are generated from the price and moving-average conditions defined within the script.
### Analytical Purpose
This script is intended solely for market observation, quantitative analysis, and defined decision-making.
Market direction and structural interpretation remain subject to the own analysis and decision-making.
**Market observation, quantitative analysis, and defined decision-making only.**
インジケーター

EMA Ribbon [prof]# EMA Ribbon —
## Overview
EMA Ribbon plots eight Exponential Moving Averages (EMAs) with staggered periods (default 24 down to 10) stacked on top of each other, forming a visual "ribbon" that reflects the current trend's direction and strength. When the eight lines are spread apart and neatly ordered, it signals a strong, clear trend; when the lines tangle and cross each other, it signals a choppy, range-bound market with no clear direction.
The indicator is designed to run directly on the price chart (overlay) and works on any market (stocks, forex, crypto, indices) and any timeframe.
## Key Features
- Eight EMAs with fully adjustable periods from the settings.
- Selectable price source (Close, High, Low, etc.) — defaults to High.
- "Drop first N candles" option to ignore a chosen number of the earliest candles before calculations start.
- "Offset" option to shift the ribbon left or right on the chart without affecting its underlying calculations.
- Automatic buy/sell signals (circles below/above the bar) triggered when price breaks through the entire ribbon to the upside or downside.
- Bar coloring (green/red) based on whether price is above or below the ribbon's midline, for quick at-a-glance trend reading.
- Full control over each line's color and thickness from the Style tab.
## How to Use It
- **Trend direction:** When price is above the ribbon and the lines are stacked with the shortest EMA on top, it supports a continuing uptrend; the mirror image supports a downtrend.
- **Trend strength:** The wider the gap between the lines, the stronger the momentum behind the move.
- **Dynamic support/resistance:** The ribbon itself can act as a dynamic support zone in an uptrend, or a dynamic resistance zone in a downtrend.
- **Signals:** The buy signal fires when price breaks above the highest point of the entire ribbon; the sell signal fires when price breaks below the lowest point. Treat these as additional confirmation, not standalone trade calls.
- It's best used alongside other tools (volume, support/resistance levels, momentum indicators) rather than relied on in isolation.
## Settings
| Setting | Description | Default |
|---|---|---|
| MA-1 to MA-8 period | Periods of the eight EMAs | 24, 22, 20, 18, 16, 14, 12, 10 |
| Source | Price source used for calculations | High |
| Drop first N candles | Number of leading candles excluded from calculations | 0 |
| Offset (Shift Ribbon) | Shifts the ribbon left/right on the chart | 8 |
| Show Buy/Sell Signals | Toggles the buy/sell signal markers | Enabled |
| Color Candles Above/Below Ribbon | Colors bars based on their position relative to the ribbon | Enabled |
## Disclaimer
This indicator is a technical analysis tool, not investment advice or a recommendation to buy or sell. Past performance does not guarantee future results. Users are solely responsible for their own trading decisions and should always apply independent risk and capital management before acting on any signal. インジケーター

Adaptive Market Structure & Fair Value### Adaptive Market Structure & Fair Value
Adaptive Market Structure & Fair Value combines three complementary market measurements:
**Adaptive market structure**, using efficiency-adjusted pivot confirmation;
**Adaptive KAMA trend state**, using price efficiency and normalized KAMA progression;
**Session VWAP fair value**, using the direction and efficiency of VWAP migration.
The indicator is designed to distinguish structural price movement from short-term market noise rather than produce instantaneous turning-point signals.
### Adaptive Pivot Structure
Potential pivot highs and lows are identified when price exceeds the selected number of bars to the left of the candidate.
Unlike a fixed pivot algorithm, the number of right-side bars required for confirmation changes with price Efficiency Ratio (ER).
Efficient directional movement permits faster confirmation, while inefficient or noisy movement requires additional right-side evidence.
A pending candidate can therefore either:
* become a confirmed structural pivot after its required confirmation bars have elapsed, or
* disappear if price makes a more extreme high or low before confirmation.
**Pivot Caveat:** Confirmed pivots necessarily appear after the actual pivot bar. This is intentional confirmation delay, not repainting of a previously confirmed pivot. Pending candidates should not be treated as confirmed structure.
The Pivot Range Depth setting selects which surviving unbroken high/low pair defines the displayed structural zones. Increasing depth references progressively older and generally broader market structure.
### Adaptive KAMA
KAMA provides the indicator's short-term directional component.
Its responsiveness changes according to price Efficiency Ratio. Efficient movement causes KAMA to respond more quickly, while inefficient or sideways movement causes greater smoothing.
KAMA direction is not determined from price position alone. The script measures the linear-regression progression of KAMA and normalizes that movement against current market noise. Efficiency Ratio is then used to qualify how much confidence should be assigned to that progression.
The resulting states are:
* Bull High Efficiency
* Bull Directional
* Bull Transition
* Range
* Bear Transition
* Bear Directional
* Bear High Efficiency
The table displays the current state, its duration in bars, KAMA ER and normalized KAMA slope, together with the completed previous state.
### KAMA Confirmation Delay
KAMA is intentionally a confirmation tool rather than a prediction of the next price bar.
Several components contribute to its response time:
1. Efficiency Ratio is calculated across a historical lookback.
2. ER is smoothed before controlling KAMA responsiveness.
3. KAMA itself is an adaptive recursive average.
4. KAMA progression is measured using a short linear-regression slope.
5. When the optional KAMA Color Filter is enabled, major directional transitions also require price acceptance.
With the filter enabled, transitions from RANGE into a directional state and bullish-to-bearish or bearish-to-bullish reversals require price to exceed the accepted closing-price range established by the existing KAMA state.
This intentionally prevents a single minor change in slope from immediately reversing the displayed trend state.
Changes in efficiency within the same direction are not subjected to this additional acceptance delay, and deterioration back to RANGE is allowed immediately.
Consequently, the KAMA state should be interpreted as **confirmed trend condition**, not as an exact turning-point signal.
### Session VWAP Fair Value
VWAP resets at the selected session anchor and represents volume-weighted session fair value.
The indicator currently supports London and New York session anchoring.
In addition to plotting session VWAP, the script measures:
* VWAP Efficiency Ratio;
* normalized VWAP displacement;
* statistical strength of that displacement.
This allows VWAP to distinguish between simple movement in fair value and sustained directional migration.
### VWAP Warm-Up and Delay
The underlying VWAP calculation begins with the selected session and updates as new price and volume are received.
The **VWAP trend classification**, however, intentionally requires historical observations.
Early in the session, before enough bars are available for the full ER and statistical-strength calculations, the indicator uses the direction of VWAP displacement as an early directional estimate.
After sufficient observations accumulate, the classification becomes more selective and requires both:
* sufficient VWAP directional displacement; and
* VWAP Efficiency Ratio above its qualification threshold.
Therefore, the VWAP line itself should not be confused with the slower VWAP trend classification.
Higher VWAP ER lengths and smoothing values produce more stable classifications but require more bars before the full calculation becomes available.
### Important Interpretation
The Pivot, KAMA, and VWAP modules should not be expected to change simultaneously.
They measure different aspects of market behavior:
**Pivots** confirm structure after future bars establish that a swing survived.
**KAMA** confirms the quality and direction of recent price progression.
**VWAP** measures the migration of session fair value and requires session history before its stronger statistical classification is available.
A pivot may therefore form before KAMA confirms a directional change, or KAMA may become directional before VWAP has accumulated enough session data to confirm persistent fair-value migration.
This disagreement is not necessarily an error. It can represent a developing transition in market structure.
### Practical Use
The indicator is best used as a layered decision framework:
**Structure:** Where are the surviving pivot zones?
**Trend:** Is KAMA ranging, transitioning, directional, or highly efficient?
**Fair Value:** Is session VWAP migrating with the move or remaining relatively neutral?
Agreement between the three components provides stronger contextual confirmation than any individual component alone.
### Limitations
This indicator is descriptive and confirmatory. It does not predict future price movement.
Adaptive calculations necessarily introduce varying amounts of delay. Increasing ER lookbacks, smoothing lengths, pivot confirmation requirements, KAMA slow length, or structural depth will generally produce more stable information at the cost of slower response.
Pending pivots can disappear before confirmation. Confirmed pivots are historical structural references and should not be interpreted as signals that would have been known on the original pivot bar.
KAMA states may remain in the prior direction while a reversal is developing, particularly when the KAMA Color Filter is enabled.
VWAP trend classifications require sufficient bars after the selected session begins and should be considered immature during the early-session warm-up period.
The indicator should therefore be used as market context and confirmation rather than as a standalone entry or exit system.
インジケーター

Aurora KAMA | KAMA Adaptive Trend StrategyAurora KAMA Trend is a trend-following strategy built around Kaufman's Adaptive Moving Average (KAMA) — a moving average that speeds up when the market is trending cleanly and slows down when it's choppy, instead of using a fixed lookback like a standard SMA/EMA.
How it works:
Core signal: KAMA's slope determines direction. The strategy requires KAMA to be persistently rising (for longs) or falling (for shorts) over a configurable number of bars, filtering out minor wiggles near turning points.
Trend filter: An optional long-term SMA only allows longs above it and shorts below it, keeping trades aligned with the dominant trend.
Trade spacing: A cooldown period (in bars) prevents new entries from stacking up too close together during a single volatile move.
Risk management: An optional fixed percentage stop-loss, plus a trailing stop that only arms after a delay period, giving new positions room to develop before being trailed tightly.
Direction control: Trade long-only, short-only, or both.
Visuals:
The KAMA line changes color with trend direction (green/rising, red/falling, gray/flat), with a glowing red/green fill between KAMA and price whose intensity scales with the distance between them.
The trend SMA is rendered as a layered "glow" line — gold when sloping up, amber when sloping down.
Entries are marked with simple triangles; exits with small gray X's.
Tips:
Test on daily bars for liquid, trending instruments (e.g. BTCUSD, ES1!, SPY, QQQ) — KAMA needs a real trend to earn its keep.
Widen the rising/falling persistence inputs if you're getting whipsawed near turning points.
Turn off the SMA filter if you want KAMA to trade purely on its own slope, independent of the broader trend.
The trailing stop's delay is there to stop you from getting stopped out on entry noise — tighten it only if you're trading a slower timeframe.
ストラテジー

TF: Smooth Trend Follower with Volume Sparks (STF)TradingFlow: Smooth Trend Follower with Volume Sparks (STF)
STF keeps the active trend visible with a trailing dotted line and a soft shadow between the line and price. Optional Volume Sparks add a second gradient that brightens when volume becomes unusually active during the trend.
Use STF to read trend direction, follow pullbacks toward the trailing boundary, and spot changes in market participation without adding more panels to the chart.
The Trend Line
• Smoothed range distance: STF smooths each bar's high-low range with a Hull moving average. This creates a responsive price distance while filtering short-term noise.
• Fixed or adaptive factor: the range distance is multiplied by the Base Factor. With ATR adaptation enabled, the factor rises or falls with current ATR relative to its average, within the selected minimum and maximum limits.
• Trailing bands: upper and lower bands ratchet behind price. A close through the opposite band changes the trend direction.
• Visual offset: the dotted line and start marker can be moved away from candles by an ATR-based distance. The offset changes the display, not the trend calculation.
Reading STF
• Green line below price: an active uptrend. Pullbacks toward the line show how closely price is testing the trailing boundary.
• Red line above price: an active downtrend. Rallies toward the line show the same test from the opposite direction.
• Start marker: a circle marks a confirmed direction change at the close of the bar.
• Trend shadow: the pale fill makes the distance between price and the active boundary easy to see.
When price and the line move together with a steady gap, the trend is progressing cleanly. A fast move back toward the line deserves attention, especially near a prior high, low, breakout level, or other visible structure.
Volume Sparks
Volume Sparks rank each bar's volume within the selected lookback. Because the reading is relative, it adapts to the symbol and timeframe automatically.
• Sparks mode: highlights bars above the selected volume percentile. The strongest readings produce the brightest pulses.
• Continuous mode: keeps a light participation layer visible and varies its intensity with the volume rank.
• Gradient: the pulse is strongest at the dotted trend line and fades toward price. Green or red continues to show trend direction; brightness shows volume intensity.
Volume Sparks measure activity, not trade direction. Read a bright pulse together with the candle and nearby structure. On symbols with missing, sparse, or unchanging volume, the layer switches itself off while STF continues normally.
A Simple Reading Process
1. Read the line's color and position to establish the current direction.
2. Check whether price is extending, tracking the line, or pulling back toward it.
3. Use a Volume Spark to locate bars where participation expanded.
4. At a direction change, compare the confirmed marker with nearby price structure.
5. Set the alert that matches the trend event you want to follow.
---
TradingFlow: Smooth Trend Follower with Volume Sparks (STF)
STF 用一條會跟著趨勢推進的虛線,加上價格與虛線之間的淡色陰影,讓目前方向一眼就能看懂。開啟 Volume Sparks 後,趨勢區內會多一層量能漸層;成交量明顯升溫時,顏色也會跟著變亮。
STF 適合拿來看趨勢方向、觀察價格拉回追蹤線的深度,也能直接在主圖上看到量能何時突然放大,不必一直切換到副圖。
趨勢線
• 平滑波幅: 先用 Hull 移動平均處理每根 K 棒的高低差,濾掉短線雜訊,同時保留對波動變化的反應速度。
• 固定或自適應倍數: 平滑波幅會乘上 Base Factor。開啟 ATR 自適應後,倍數會跟著目前 ATR 相對於平均 ATR 的高低調整,並限制在設定的上下限之間。
• 追蹤軌道: 上、下軌道會沿著價格單向推進。收盤價穿過另一側軌道時,趨勢方向切換。
• 視覺偏移: 可用 ATR 距離把虛線和起始圓點移離 K 棒。這項設定只改變畫面,不會改變訊號。
STF 怎麼看
• 價格下方的綠色虛線: 目前是上升趨勢。價格拉回虛線時,可以直接看出這次回測有多深。
• 價格上方的紅色虛線: 目前是下降趨勢。反彈靠近虛線時,也是同樣的觀察方式。
• 起始圓點: K 棒收盤確認方向切換後,圓點會標出新趨勢的起點。
• 趨勢陰影: 淡色區塊把價格到追蹤線的距離直接畫出來。
價格和虛線維持穩定距離、一起往同一方向推進,通常是比較順的走法。價格快速回到虛線附近時,就要多看一眼,尤其是剛好碰到前高、前低、突破位或其他明顯結構的位置。
Volume Sparks(量能脈衝)
量能脈衝會把每根 K 棒的成交量放進指定回看區間,計算它目前落在哪個百分位。用相對排名取代固定數字後,不同商品和週期都能用同一套邏輯判讀。
• Sparks 模式: 只有成交量超過設定的百分位門檻才會亮起。排名越高,脈衝越明顯。
• Continuous 模式: 持續保留一層淡淡的量能顯示,再依成交量排名調整深淺。
• 漸層方向: 顏色在虛線附近最強,往價格方向逐漸淡出。綠色和紅色負責表示趨勢方向,亮度則表示量能強弱。
量能脈衝看的是活躍程度,不是買賣方向。看到明顯脈衝時,搭配當根 K 棒和附近結構一起看就好。遇到沒有成交量、資料太零散或成交量長期不變的商品,這一層會自動隱藏,STF 趨勢線照常運作。
實際看圖流程
1. 先看虛線顏色和它在價格的哪一側,確認目前方向。
2. 看價格是在加速遠離、沿著虛線推進,還是拉回測試虛線。
3. 量能脈衝亮起時,留意參與度放大的 K 棒。
4. 方向切換時,把收盤確認圓點和附近價格結構放在一起看。
5. 依照想追蹤的事件設定提醒。
---
TradingFlow: Smooth Trend Follower with Volume Sparks (STF)
STFは、トレンドを追う点線と、価格との間を埋める薄いシェードで現在の方向を見やすくします。Volume Sparksをオンにすると、トレンド領域に出来高のグラデーションが重なり、普段より商いが活発なバーが明るく表示されます。
トレンド方向、ラインへの押し・戻り、出来高の盛り上がりをメインチャートだけでまとめて確認できます。
トレンドライン
• 平滑化した値幅: 各バーの高値と安値の差をHull移動平均でならし、細かなノイズを抑えながら値動きの変化を捉えます。
• 固定または適応ファクター: 平滑化した値幅にBase Factorを掛けます。ATR適応をオンにすると、現在のATRと平均ATRの比率に合わせてファクターが動き、設定した上下限の範囲に収まります。
• トレーリングバンド: 上下のバンドは価格の後ろを一方向に追います。終値が反対側のバンドを抜けると、トレンド方向が切り替わります。
• 表示オフセット: ATRベースの距離で点線と開始マーカーをローソク足から離せます。変わるのは表示位置だけで、シグナルには影響しません。
STFの見方
• 価格の下にある緑の点線: 上昇トレンドです。押しがラインへどこまで近づいたかを確認できます。
• 価格の上にある赤の点線: 下降トレンドです。戻りがラインへ近づく場面も同じように見ます。
• 開始マーカー: 終値で方向転換が確定すると、丸印が新しいトレンドの始まりを示します。
• トレンドシェード: 価格とトレーリングラインの距離を薄い色で表示します。
価格とラインが一定の間隔を保ちながら同じ方向へ進むと、トレンドの流れがつかみやすくなります。価格が急にラインへ戻る場面では、直近の高値・安値やブレイク水準など、周辺の値動きも合わせて確認します。
Volume Sparks(出来高ハイライト)
出来高ハイライトは、各バーの出来高が設定した期間内でどの水準にあるかをパーセンタイルで表示します。固定値ではなく相対順位なので、銘柄や時間足が変わっても同じ考え方で使えます。
• Sparksモード: 出来高が設定したパーセンタイルを超えたバーだけを強調します。順位が高いほど明るくなります。
• Continuousモード: 薄い出来高レイヤーを常時表示し、順位に合わせて濃さを変えます。
• グラデーション: 点線の近くで最も濃く、価格へ向かって薄くなります。緑と赤はトレンド方向、明るさは出来高の強さを表します。
この表示が見ているのは出来高の活発さです。強く光ったバーは、そのローソク足と周辺の値動きと合わせて読みます。出来高がない、データがまばら、または出来高が変化しない銘柄では自動的に非表示になり、STFのトレンドラインはそのまま動作します。
基本の見方
1. 点線の色と位置から現在の方向を確認します。
2. 価格がラインから離れているか、ラインに沿っているか、ラインへ戻っているかを見ます。
3. 出来高ハイライトが強まったバーで、市場参加が増えた場所を確認します。
4. 方向転換では、終値確定のマーカーと周辺の価格構造を合わせて見ます。
5. 追いたいトレンドイベントに合わせてアラートを設定します。
インジケーター

[Viprasol] Gold Sniper ConfluenceOverview
Gold Sniper Confluence is a gold-only edition of the Sniper Confluence engine, which builds on "Sniper Entry/Exit with SL&TP by KhanSaab V.02" by KhanSaab (open-source). KhanSaab's script provides the fast / slow EMA crossover trigger, the ATR-based stop-loss and take-profit ladder, the VWAP overlay, RSI and MACD read-outs, a secondary-timeframe RSI and the EMA-retest candle highlight. This version keeps every one of those components and adds two layers on top: a confluence scoring gate that decides whether a crossover is allowed to become a signal, and a gold layer that only exists because gold trades differently from other markets: a symbol guard that suppresses signals on non-gold charts, a US Dollar Index (DXY) inverse-correlation factor, a London / New York session filter and an average-daily-range (ADR) exhaustion filter with dollar and point risk read-outs.
It is built for XAUUSD and GC / MGC futures traders on intraday charts who want each crossover confirmed by the dollar, the session and the day's remaining range before acting. The on-chart HOW IT WORKS legend, live checklist and summary footer explain the logic directly on the chart.
Why Gold Needs Its Own Filters (Mashup Justification)
- Gold is priced in dollars, so a rising dollar is a headwind for gold and a falling dollar a tailwind. An EMA crossover that fights the dollar is a lower-quality crossover. The DXY factor scores that relationship, but only while the two are actually moving inversely, because the link does break at times (risk-off days, rate shocks).
- Gold's volume and range are concentrated in the London and New York sessions. Crossovers during the Asian session tend to happen in thin, choppy conditions and are more likely to whipsaw.
- Gold has a fairly stable average daily range. Once the day has already travelled its usual distance, a late crossover is buying or selling into exhaustion. The ADR filter blocks those entries.
- The symbol guard keeps the DXY and ADR logic honest: it only makes sense on gold, so signals are suppressed elsewhere unless you deliberately turn gold-only mode off.
How It Works
1. EMA crossover trigger (from original)
Fast EMA (default 9) crossing above the slow EMA (default 21) is a long trigger; crossing below is a short trigger. With bar-close confirmation on (new), the cross must still hold when the bar closes.
2. Confluence score, 8 factors (factors 1-7 were displayed in the original; the scoring gate and factor 8 are new)
Each bar the indicator counts how many factors agree with each direction:
bullScore = 0
bullScore += close > VWAP
bullScore += RSI(14) > 50
bullScore += MACD line > signal line
bullScore += fast EMA > slow EMA
bullScore += ADX(14) > 25 and close > fast EMA
bullScore += volume > SMA(volume, 20) and close > open
bullScore += RSI(14) on the confirmation timeframe > 50
bullScore += DXY inverse factor (see step 3)
bearScore = mirror image (below instead of above)
a crossover becomes a signal only if its score >= Minimum score (default 5 of 8)
3. DXY inverse-correlation factor (new)
dxyClose, dxyEma = DXY close and EMA(dxyClose, 21) on the chart timeframe
corr = correlation(close, dxyClose, 20)
linkActive = corr <= -0.3
bull point if linkActive and dxyClose < dxyEma (dollar weak)
bear point if linkActive and dxyClose > dxyEma (dollar strong)
no point to either side while the link is not active
The dashboard shows the DXY value, its trend arrow, the live correlation and a tick when the link is active. Turning the factor off makes the score out of 7.
4. Gold symbol guard (new)
isGold = base currency == "XAU"
or ticker contains "XAU" or "GOLD" (non-stock symbols)
or futures root == "GC" or "MGC"
or ticker contains your custom keyword
if gold-only mode and not isGold: signals suppressed, dashboard header turns red
5. London / New York session filter (new)
inLondon = bar time inside 03:00-12:00 (New York time, editable)
inNewYork = bar time inside 08:00-17:00 (New York time, editable)
sessionOk = filter off, or chart is daily or higher, or inLondon or inNewYork
Blocked crossovers are marked with a small grey x and the dashboard shows which session (or ASIA / OFF-HOURS) the last bar belongs to. The active session can be shaded on the chart.
6. ADR exhaustion filter (new)
ADR = SMA(daily high - daily low, 14) taken from completed days only
todayRange = running high - running low of the current day, built from the chart's own bars
adrUsed% = todayRange / ADR * 100
adrOk = filter off, or adrUsed% < Block threshold (default 100%)
The ADR is requested from the daily feed with a one-bar offset so historical and live bars see the same completed-day value. Because the ADR uses finished days and today's range is accumulated bar by bar, neither value repaints. The dashboard shows ADR in dollars and the percentage used, turning amber from 75% of the threshold and red once blocked.
7. Final signal gate (new)
LONG = bull crossover and bullScore >= minimum and goldOk and sessionOk and adrOk and not already long
SHORT = mirror image
Every gate only removes crossovers; none of them creates a signal that the original crossover logic would not have produced.
8. ATR stop and take-profit ladder (from original, extended)
Stop = entry -/+ ATR(14) x 1.5. Targets sit at 1R, 2R and 3R. The number of targets (1-3) is configurable (new), target lines turn turquoise and the label gets a tick when touched (from original) and the stop moves to breakeven when TP1 is hit (new). Every label states its distance from entry in points, for example "SL: 4364.87 (-50 pts)" or "TP1: 4355.83 (+40 pts)", and the dashboard shows the same distances in dollars and points (new). The point size is configurable because brokers count gold points differently.
9. Retest candles (from original)
While a trade is active, a candle that pulls back into the fast EMA without breaking the slow EMA is coloured orange.
What Is Original (Viprasol Additions)
1. Confluence scoring gate: the seven original read-outs are turned into a score that must reach a minimum before a crossover can fire.
2. DXY inverse-correlation factor with a rolling-correlation switch, so the dollar only votes while the inverse link is real.
3. Gold symbol guard that detects spot, CFD and futures gold from the symbol and suppresses signals elsewhere.
4. London / New York session filter with editable windows and timezone.
5. ADR exhaustion filter using completed-day ranges and a live, non-repainting intraday range, plus dollar and point risk read-outs on the labels and dashboard.
6. Bar-close confirmation of the crossover.
7. Breakeven trailing after TP1 and a configurable number of take-profit levels.
8. Blocked-signal markers that show exactly which crossovers the gold filters removed and why.
Key Features
From the Original (KhanSaab):
- Fast / slow EMA crossover long and short triggers
- ATR-based stop-loss and take-profit levels with hit colouring
- VWAP overlay with directional colouring
- RSI, MACD, ADX and volume read-outs
- Secondary-timeframe RSI
- Orange EMA-retest candles
Added in This Version (Viprasol):
- 8-factor confluence score with minimum-score gate
- DXY inverse-correlation factor with live correlation check
- Gold symbol guard with custom keyword
- London / New York session filter with session shading
- ADR exhaustion filter with % used and $ / pts distances
- Bar-close confirmation, breakeven trail, 1-3 configurable targets with signed point distances on every label
- Grey x markers for crossovers blocked by a gold filter
- Dashboard with every factor, the three gold gates and the open trade
- HOW IT WORKS legend, live tick / cross checklist and strategy summary panels, each with its own position setting
- Ten alert conditions with dynamic messages
How to Use
Setup:
1. Open a gold chart (OANDA:XAUUSD, FX:XAUUSD, COMEX:GC1! or MGC1!) using standard candlesticks.
2. Keep the default 9 / 21 EMAs and minimum score 5 to start.
3. Check the Session timezone. Windows are written in New York time by default; switch to Exchange if you prefer your broker's clock.
4. Set Point size to match how your broker counts gold points (0.10 for most, so a $5.00 stop reads as 50 pts).
Reading the chart:
- BUY label below a bar = bullish crossover that passed the score and all three gold gates. SELL label above a bar = bearish equivalent.
- Grey x = a crossover that had enough confluence but was blocked by the symbol guard, the session filter or the ADR filter. The dashboard's Signal row names the reason.
- Cyan dashed line = entry, red line = stop, green dashed lines = TP1-TP3. Each line ends at a label that shows the price and the distance from entry in points. A turquoise line and a tick on the label mean that target was touched. A dotted cyan stop means it has moved to breakeven.
- Orange candle = pullback into the fast EMA while the trade is active.
- Violet shading = London window, gold shading = New York window, brighter gold = the overlap.
Panels:
- HOW IT WORKS (top left by default) explains the flow in seven lines.
- Checklist (bottom left by default) shows a tick or cross for all eight factors and the three gold gates for the currently stronger side, and states whether the engine is ARMED, BLOCKED or waiting for confluence.
- Dashboard (top right by default) shows live values, DXY, session, ADR, risk in $ and points, and trade status.
- Every panel has its own position setting (nine positions), so they can be arranged to suit any chart size.
Recommended starting points:
- Scalping (1m-5m): EMA 5 / 13, minimum score 6, ATR x 1.0, ADR block 90%
- Intraday (15m-1H): EMA 9 / 21, minimum score 5, ATR x 1.5, ADR block 100%
- Swing (4H-1D): EMA 9 / 21, minimum score 4, ATR x 2.0, session filter off
These are starting points only. Gold's volatility regime changes; test on historical data and adjust before trading live.
Settings
1 Signal Engine: fast EMA, slow EMA, bar-close confirmation.
2 Confluence Filter: enable the gate, minimum score (out of 8).
3 Gold Symbol Guard: gold-only mode, extra gold ticker keyword.
4 DXY Dollar Factor: enable, DXY symbol, DXY trend EMA, correlation lookback, inverse-link threshold.
5 Gold Sessions: enable, London window, New York window, timezone, session shading.
6 ADR Exhaustion: enable, ADR lookback, block threshold (% of ADR), point size.
7 Risk Management: stop-loss ATR multiplier, ATR period, number of take-profit levels, breakeven at TP1.
8 Confirmation Timeframe: timeframe of the secondary RSI factor.
9 Dashboard: show, position, text size.
10 On-Chart Panels: HOW IT WORKS legend, live checklist, strategy summary, each with a show toggle and its own position.
11 Visuals: EMA ribbon and transparency, VWAP, trade lines and labels, label size and offset, retest candles, blocked-signal markers.
Alerts
1. Gold Long Entry - bullish crossover passed the score and all gold gates
2. Gold Short Entry - bearish equivalent
3. Any Gold Entry - either direction
4. Strong Bull Bias - bull score crossed above 70%
5. Strong Bear Bias - bear score crossed above 70%
6. DXY Inverse Link Active - gold / DXY correlation fell back below the threshold (new)
7. DXY Inverse Link Lost - correlation rose above the threshold, DXY factor paused (new)
8. Gold Session Opened - the London or New York window just started (new)
9. ADR Exhausted - today's range reached the block threshold (new)
10. Signal Blocked by Gold Filter - a qualifying crossover was removed by a gold gate (new)
All alerts include {{ticker}}, {{close}} and {{interval}} placeholders.
Limitations & Disclaimer
- EMA crossovers lag by nature. The gates reduce whipsaws but cannot remove them; ranging days will still produce crossovers that fail.
- The DXY factor depends on the dollar-index symbol being available to your account and having data on the chart timeframe. When DXY is closed (weekends, holidays) the last known value is carried forward.
- The correlation gate uses a rolling window; at the very start of the chart history it is empty and the DXY factor scores nothing.
- The DXY factor is scored, not gated. At the default minimum of 5 the signals are a subset of the general-market Sniper engine; if you lower the minimum to 4, a cross with only three of the original factors plus the DXY point can qualify.
- A crossover that is blocked by a gold gate still ends the opposite open trade, exactly as an unblocked crossover would. Only the new entry is withheld.
- Session windows are wall-clock filters. Holidays, daylight-saving changes and broker-specific hours can shift when gold is actually liquid.
- ADR is a statistical average. Gold can and does exceed it on news days; the filter deliberately stays out of those late moves.
- The secondary-timeframe RSI uses request.security and its current-bar value can change until that timeframe's bar closes.
- Entry, stop and target lines are visual references only. The indicator does not place or manage trades.
- Past performance of any signal system does not guarantee future results. This indicator is for educational and analytical purposes only and is not financial advice. Always use proper risk management and do your own analysis before trading.
Credits & Attribution
This indicator is derived from "Sniper Entry/Exit with SL&TP by KhanSaab V.02" by KhanSaab (open-source, TradingView). The following components originate from that script:
- Fast / slow EMA crossover signal logic
- ATR-based stop-loss and take-profit calculation with target-hit colouring
- VWAP overlay
- RSI, MACD, ADX and volume read-outs
- Secondary-timeframe RSI (originally fixed to 5 minutes)
- EMA-retest candle highlighting
Viprasol additions: confluence scoring gate, DXY inverse-correlation factor, gold symbol guard, London / New York session filter, ADR exhaustion filter with $ / point read-outs, bar-close confirmation, breakeven trailing, configurable take-profit count and blocked-signal markers.
Published open-source per TradingView House Rules.
インジケーター

20/50 EMA Pullback Tap IndicatorThe 20/50 EMA Pullback Tap Indicator is a simple price-action based tool designed to identify potential entries after a momentum shift, rather than entering immediately when the 20 EMA crosses the 50 EMA.
The core idea is simple:
The EMA cross identifies a change in momentum. The pullback provides the entry.
How It Works
🟢 Long Setup
The 20 EMA crosses above the 50 EMA.
The indicator arms a bullish setup.
No trade is signalled on the crossover.
Price must first establish itself above the 20 EMA.
The indicator then waits for price to pull back and touch the 20 EMA.
When the 20 EMA is tapped, a BUY signal is generated.
Only one long signal is generated from that crossover.
If price does not touch the 20 EMA within 30 candles, the setup expires.
🔴 Short Setup
The short setup works in the opposite direction:
The 20 EMA crosses below the 50 EMA.
The indicator arms a bearish setup.
No trade is signalled on the crossover.
Price must first establish itself below the 20 EMA.
The indicator waits for price to pull back and touch the 20 EMA.
When the 20 EMA is tapped, a SELL signal is generated.
Only one short signal is generated from that crossover.
If price does not touch the 20 EMA within 30 candles, the setup expires.
Why Use the Pullback?
A common problem with EMA crossover systems is entering immediately on the crossover. By the time the cross occurs, price may already have moved significantly.
This indicator takes a different approach.
The 20/50 crossover is treated as confirmation that momentum has shifted, while the 20 EMA pullback is used as the potential entry location.
This can provide a more structured entry instead of chasing the initial move.
No Additional Indicators
The indicator intentionally keeps the methodology simple.
It does not use:
RSI
MACD
VWAP
Volume filters
Additional trend indicators
Multiple confirmation indicators
The system is built around just:
20 EMA + 50 EMA + Pullback to the 20 EMA
Signal Behaviour
The indicator is designed to detect the EMA tap during the active candle rather than requiring the candle to close first.
This means signals can appear while the current candle is developing when price reaches the 20 EMA.
Because of this behaviour, traders should understand that a live-bar signal can change or disappear before the candle closes depending on market movement and TradingView's realtime calculations.
Setup Expiration
Each crossover creates a new setup.
If the required pullback does not occur within the configured number of candles, the setup is automatically cancelled.
The default expiration is:
30 candles
This prevents an old EMA crossover from generating an entry long after the original momentum shift.
Recommended Use
The indicator can be used on its own as a simple EMA pullback system or combined with a trader's own:
Support and resistance
Market structure
Liquidity levels
Risk management
Higher-timeframe analysis
However, these additional concepts are not required by the indicator itself.
Important Disclaimer
This indicator identifies potential setups based on the rules described above. A signal does not guarantee a profitable trade.
Always use appropriate risk management and test the indicator on your chosen market and timeframe before using it with real capital. インジケーター

Rob Hoffman IRB + MA Trend OVERVIEW
This indicator combines Rob Hoffman's Inventory Retracement Bar (IRB) setup with his moving average overlay set and "No-Trend Zone", and adds a trend gate so IRB signals only fire when the market is actually trending. The idea is simple: trade continuation in a clean trend, and stay out when price is chopping around the averages.
Everything runs on the price chart — no separate pane.
THE INVENTORY RETRACEMENT BAR (IRB)
An IRB is a bar that pushes against the prevailing trend and then closes back in a way that shows the counter-trend move is running out of steam.
- Long IRB: the bar's open AND close are both at least 45% below its high (a long upper wick in an uptrend).
- Short IRB: the bar's open AND close are both at least 45% above its low (a long lower wick in a downtrend).
IRB bars are marked with small triangles. The IRB itself is not the entry — it's the setup.
ENTRY TRIGGER
After an IRB forms, the indicator waits up to 20 bars (adjustable) for price to confirm:
- "Extreme high/low break" (default): entry when price breaks one tick beyond the IRB's high (long) or low (short). This is the classic rule.
- "Close past retracement level": an earlier, more aggressive entry that triggers when a bar closes back through the IRB's 45% retracement level.
If price instead breaks the opposite side of the IRB before triggering, the setup is cancelled. Confirmed entries are labeled "IRB L" / "IRB S".
IRBs with an unusually large range (more than 2x ATR by default) are ignored, since oversized retracement bars tend to fail more often.
MOVING AVERAGE OVERLAY
The full MA set is plotted for context:
- SMA 3 and 5 (fast speed lines)
- EMA 18 and 20 (primary trend lines — the 20 EMA is highlighted in gold)
- SMA 50, SMA 89, EMA 144, SMA 200 (longer-term trend lines)
The ribbon can be hidden if you only want the core lines.
NO-TREND ZONE
The blood-red cloud is the No-Trend Zone: a Keltner-style channel built from a 34-period EMA with a band of 0.45x the EMA-smoothed true range. When price is inside or hugging this zone, the market isn't trending and IRB signals are suppressed.
The band smoothing can be switched to RMA (Wilder ATR). If you want to match the original overlay set exactly, use length 35, multiplier 0.5, and RMA smoothing.
TREND GATE
An IRB only counts when all of these agree:
1. Price has closed outside the No-Trend Zone in the direction of the trade.
2. Price is on the correct side of the 20 EMA — or, optionally, still on the correct side of the 89 EMA anchor, so a deep pullback through the 20 doesn't cancel an otherwise healthy trend.
3. (Optional, on by default) No long IRBs below the 89 EMA anchor and no short IRBs above it.
The gate can be turned off to see every raw IRB bar shape regardless of trend.
Trend angle: Hoffman looks for the 20 EMA sloping at roughly 45 degrees. This is deliberately NOT coded — Pine Script has no access to the chart's pixel scale, so any "degrees" value would change with zoom and wouldn't match what you see. Judge the slope by eye.
TRAILING STOP REFERENCE
A yellow dotted line shows a reference stop: it starts at the IRB's low (long) or high (short) when an entry triggers, then trails at 1.5x ATR while the trend holds, and clears when hit or when the trend is lost. It's a visual guide only and does not manage any position.
ALERTS
Two alert conditions are available: "Hoffman IRB Long Entry" and "Hoffman IRB Short Entry". Signals on the live, unconfirmed bar can change until that bar closes, so "Once Per Bar Close" is recommended when creating alerts.
HOW TO USE IT
- Trade in the direction of the trigger labels only.
- When price is sitting in the red cloud, stand aside — that is the chop the zone exists to keep you out of.
- Look for a clearly sloping 20 EMA; flat averages mean weak continuation.
- Use the IRB's opposite extreme (or the trailing stop line) as a logical stop reference.
CREDITS
The Inventory Retracement Bar setup, the moving average overlay set, and the No-Trend Zone concept are Rob Hoffman's publicly taught methods. The overlay set was cross-referenced against UCSgears' open-source "Rob Hoffman - Overlay Set" script. This script is an independent implementation and is not affiliated with or endorsed by Rob Hoffman.
This indicator is for educational purposes and is not financial advice. Past signals do not guarantee future results.
インジケーター

Moving Average Crossover Signal
Moving Average Crossover Signal
This is a customizable multi-symbol, multi-timeframe indicator that provides a compact visual signal based on the relationship between two user-defined moving averages. It is designed to function as a simple “red light” or “green light” for the current trend, allowing moving average conditions to be monitored without displaying the moving averages themselves. The signal can also track a ticker different from the active chart symbol, making it possible to monitor another market without keeping that ticker’s chart open.
The indicator calculates two independently configurable moving averages on a selected ticker and timeframe, then displays a persistent signal icon in a user-selected area of the chart. Instead of plotting historical crossover markers or moving average lines, it provides a clean at-a-glance indication of whether the configured MA condition is currently active.
Signal Logic
Two signal modes are available:
Crossover Only — the signal is active while Moving Average 1 is above Moving Average 2.
Crossover + Both MAs Sloping Up — the signal is active only while Moving Average 1 is above Moving Average 2 and both moving averages are rising over the selected slope lookback period.
The signal icon uses independently configurable colors for active, inactive, and unavailable-data conditions.
Ticker and Timeframe Selection
The signal can be calculated from a ticker that is different from the symbol currently displayed on the chart. Leaving the ticker input blank uses the active chart symbol.
A separate Signal Timeframe input allows the moving averages and signal logic to be calculated using a timeframe independent of the chart timeframe. Leaving the timeframe set to the chart interval uses the current chart timeframe.
This makes it possible, for example, to monitor a daily moving average condition while viewing an intraday chart, or to monitor one symbol's higher timeframe trend while analyzing another symbol.
Moving Average Configuration
Both moving averages can be configured independently with:
SMA
EMA
WMA
RMA
HMA
The slope-filtered mode also includes a configurable lookback period that determines whether each moving average is considered to be rising.
Signal Display
The on-chart signal is designed to remain compact and unobtrusive. Display options include:
Multiple signal icon styles
Active, inactive, and no-data colors
Automatic display of the selected ticker
Custom text that can override the ticker label
Signal icon before or after the display text
Independent icon and text sizes
Nine standard chart locations
Additional spacer rows above or below the signal for finer vertical positioning
Customizable panel background, including full transparency
The indicator does not plot the moving averages themselves, keeping the chart free of additional lines.
Alerts
A TradingView alert condition is included for the actual bullish moving average crossover event.
When Crossover + Both MAs Sloping Up is selected, the crossover must also occur while both moving averages satisfy the selected upward-slope condition.
This keeps the persistent visual signal separate from the crossover event: the icon shows the current state of the configured condition, while the alert identifies the point at which a qualifying crossover occurs.
Usage and Limitations
For the most reliable results, use a Signal Timeframe that is the same as or higher than the chart timeframe.
Lower timeframe selections may not capture every crossover that occurs between chart bars, so signals can be missed.
Higher timeframe signals may also change while that candle is still forming, so they should be considered provisional until the selected timeframe closes. インジケーター

Trend Pullback GuardTrend Pullback Guard
A trend has started. Does its next pullback stabilize — or lose its structure?
Trend Pullback Guard follows pullbacks through a defined sequence: detection, stabilization, continuation confirmation, or invalidation. It combines an EMA trend regime with frozen structure levels, volatility-normalized pullback depth and candle-overlap measurements.
The same rules work in both directions. Everything is included in one overlay indicator.
QUICK VISUAL GUIDE
• Blue line: Fast EMA; gray line: Slow EMA.
• Small blue dot: A pullback has been detected.
• Subtle green/red zone: The developing long/short pullback range.
• Red level: Frozen structure boundary.
• Amber level: Confirmation threshold after stabilization.
• Green upward/red downward triangle: Long/short continuation conditions confirmed.
• Red cross: A close broke the frozen structure boundary.
• Gray square: The trend regime was lost or the observation window ended.
The dashboard distinguishes an active episode's LAST CLOSE from frozen LAST EPISODE values. The structure and confirmation levels describe the rules; they are not suggested order prices.
1 — ESTABLISH THE TREND
Default settings use a 21-period EMA and a 55-period EMA.
For a long regime, the fast EMA must be above the slow EMA and the slow EMA must be above its value three bars earlier. Short conditions are reversed.
Before a pullback can begin, a confirmed impulse bar must lie entirely beyond the fast EMA's 0.25 ATR touch band and close in the trend direction relative to the previous close. This arms the monitor. A new episode requires a new qualifying impulse after the previous episode ends.
2 — DETECT AND FREEZE THE REFERENCE
A long pullback begins when a later bar reaches the fast EMA's upper touch band and closes below the previous close. Short detection uses the lower band and a higher close.
At detection, the script freezes:
• ATR from the previous bar, using a 14-period ATR by default.
• The lowest low of the preceding 10 bars minus 0.1 frozen ATR for long structure; the highest high plus that buffer for short structure.
• The preceding 10-bar high for long pullback depth, or low for short depth.
The detection bar is excluded from these historical reference windows. No pivot that needs future bars is used. The structure boundary remains fixed throughout the episode.
3 — WAIT FOR STABILIZATION
By default, two consecutive bars must avoid lowering the previous bar's low for a long setup, or raising its high for a short setup.
The confirmation level is then frozen at the highest high of those two stabilization bars plus 0.1 frozen ATR for longs. Shorts use their lowest low minus the buffer.
A new adverse extreme of the monitored pullback resets stabilization and removes the old trigger. The script must establish a new one. A bar that makes a new adverse extreme cannot also confirm continuation.
4 — APPLY THE GUARD
Confirmation requires a LATER bar to close strictly beyond the frozen trigger and on the trend side of the fast EMA. The original trend regime must still hold, and both guard limits must pass:
• Maximum pullback depth: 3.0 frozen ATR by default. Depth measures the move from the pre-detection reference extreme to the worst pullback extreme observed so far.
• Maximum mean candle overlap: 70% by default. Each sample is the intersection of two consecutive high-low ranges divided by the smaller range. Samples are averaged from detection through the current bar; a zero-range candle counts as 100% overlap.
TOO DEEP and HIGH OVERLAP explain why confirmation is blocked. These are rule thresholds, not estimated probabilities. High overlap can later decline; the maximum observed depth cannot shrink within an episode.
HOW AN EPISODE ENDS
• STRUCTURE BROKEN: The close moves strictly beyond the frozen structure boundary against the setup. A wick alone is insufficient.
• TREND LOST: The EMA regime no longer supports the monitored direction.
• CONTINUATION CONFIRMED: A later close passes the trigger, trend and guard requirements.
• WINDOW ENDED: No confirmation within 12 bars after detection by default.
Structure failure takes priority over other outcomes, followed by loss of the trend regime. An otherwise valid confirmation on the final allowed bar takes priority over timeout. Only one episode is active at a time.
ILLUSTRATIVE LONG EXAMPLE
Suppose the pre-pullback high is 104 and the frozen ATR is 2. A pullback low at 100 represents a depth of 2 ATR.
After two qualifying stabilization bars, their highest high is 102.50. With the default buffer, the confirmation level is 102.70.
A later close above 102.70 confirms only if the EMA regime remains bullish, the close is above the fast EMA, and the depth and overlap limits still pass. A wick above 102.70 does not confirm. A new pullback low on that bar resets the trigger instead.
This example illustrates the rules; it is not a historical trade or a return claim.
DASHBOARD AND ALERTS
The compact dashboard shows status, direction, bars since detection, depth in frozen ATR units, mean overlap, guard status, structure and confirmation levels.
The Confirmed / broken / other counters describe events in the loaded chart history. Other combines trend loss and timeout. These counts are not trading win rates; confirmed events are not followed to a profit target or stop.
Seven alert conditions are provided: pullback detected, stabilization, long confirmation, short confirmation, structure broken, trend lost and observation window ended. Stabilization can alert again if a new adverse extreme resets the setup. Create the desired alerts separately in TradingView.
USAGE AND LIMITATIONS
Use standard candles with a fast EMA length smaller than the slow EMA length. Long-only, short-only and both-direction modes are available. All calculations use the chart's symbol and timeframe; there is no external indicator dependency or higher-timeframe data request.
Event states and markers update only at confirmed bar closes and are never shifted backward. EMA lines can move while a live bar is forming. Changes to settings, available history or historical prices can change the resulting events.
This is a descriptive technical-analysis tool, not an automated trading strategy. Confirmation describes the specified conditions at that close; it does not guarantee that the trend will continue. No profitability or superior performance has been established. インジケーター

FIA Trend + Momentum 20/50/200## FIA Trend + Momentum 20/50/200
The **FIA Trend + Momentum 20/50/200** indicator combines long-term trend structure with momentum analysis and multi-timeframe confirmation.
It is designed to make market direction easier to identify visually while also filtering potential setups through RSI, MACD and Higher Timeframe confirmation.
### EMA Trend Structure
The indicator uses three Exponential Moving Averages:
EMA 20 for the short-term trend
EMA 50 for the medium-term trend
EMA 200 for the long-term trend
The background changes automatically depending on the EMA structure.
**Green**
EMA 20 > EMA 50 > EMA 200
Clearly bullish trend structure.
**Blue**
EMA 20 < EMA 50 while EMA 50 > EMA 200
Short-term weakness within a broader bullish trend.
**Orange**
EMA 20 > EMA 50 while EMA 50 < EMA 200
Short-term strength while the broader trend has not yet turned fully bullish.
**Red**
EMA 20 < EMA 50 < EMA 200
Clearly bearish trend structure.
The background colors are based only on the EMA structure. RSI, MACD and Higher Timeframe confirmation do not change the background color.
### RSI
The indicator uses a classic RSI calculation with a default length of 14.
RSI above 50 supports bullish momentum.
RSI below 50 supports bearish momentum.
The indicator also checks whether RSI is currently rising or falling, which is used as additional confirmation for pullback setups.
### MACD
The indicator uses the classic MACD settings:
Fast Length: 12
Slow Length: 26
Signal Length: 9
The MACD is used to evaluate:
Bullish or bearish momentum
MACD signal-line crossovers
Increasing or decreasing histogram momentum
### Higher Timeframe Confirmation
A selectable Higher Timeframe filter is included.
The indicator calculates the EMA 20/50/200 structure on the selected Higher Timeframe and checks whether the broader trend confirms the current setup.
This filter can be enabled or disabled in the settings.
### Setup Score
The indicator uses a scoring system with a maximum of 6 points.
EMA trend structure: 2 points
RSI confirmation: 1 point
MACD confirmation: 1 point
MACD momentum: 1 point
Higher Timeframe trend: 1 point
The minimum score required for a valid setup can be adjusted in the settings.
The default minimum score is 5 out of 6.
### Pullback Logic
The indicator also searches for potential pullbacks within established trends.
A bullish pullback requires a bullish EMA structure, a retracement toward the EMA 20, a close back above the EMA 20, rising RSI and bullish MACD confirmation.
The bearish logic works in the opposite direction.
### BUY and SELL Signals
A BUY or SELL label is only generated when several conditions align.
A **BUY signal** requires a sufficiently strong bullish setup score and either:
a confirmed bullish pullback
or
a bullish MACD crossover.
A **SELL signal** requires a sufficiently strong bearish setup score and either:
a confirmed bearish pullback
or
a bearish MACD crossover.
Signals are only marked when the condition appears for the first time, helping to avoid repeated labels on consecutive candles.
The signals are intended as confirmation tools and should not be interpreted as automatic trading instructions.
### Alerts
Built-in alerts are available for:
EMA 20/50 bullish crossover
EMA 20/50 bearish crossover
EMA 50/200 Golden Cross
EMA 50/200 Death Cross
FIA BUY setup
FIA SELL setup
### Important
This indicator is designed as a **trend and momentum analysis tool**.
It combines:
**EMA = trend direction**
**RSI = momentum strength**
**MACD = momentum direction and change**
**Higher Timeframe = broader trend confirmation**
It should not be used as a standalone trading system.
Always consider price action, support and resistance levels, volatility, market structure and appropriate risk management before making trading decisions.
For educational purposes only.
**Not financial advice.**
インジケーター

Adaptive Supertrend MA Crossover StrategyAdaptive Supertrend MA Crossover
Overview
This strategy trades the crossover between a Moving Average and a Supertrend line - a classic trend-following combination - but with two design choices that set it apart from the standard version of this idea already published elsewhere:
1. The Supertrend and the Moving Average each take their own independently selectable price source (Open, High, Low, Close, HL2, HLC3, OHLC4, or HLCC4), rather than both being locked to Close.
2. A new Moving Average source option: "EMA of Supertrend." Instead of feeding the MA a raw price series, this applies an EMA directly to the Supertrend line itself, and then runs your chosen MA type (SMA/EMA/HMA/WMA) on top of that smoothed line. The result is a crossover between two different "views" of the same underlying trend structure, rather than a crossover between price and trend.
Why "EMA of Supertrend" matters
A standard Supertrend line is deliberately steppy - it holds a level and jumps, rather than moving smoothly, which is what makes it useful as a stop/trend marker but also means a plain price-vs-Supertrend crossover can be noisy on choppy days (price whipsaws across a flat Supertrend step repeatedly).
Applying an EMA to the Supertrend line first produces a smoothed trend proxy that still reacts to genuine Supertrend flips, but rounds off the sharp step edges. Running your chosen Moving Average on top of that, rather than on top of price, means the crossover signal is comparing two related measures of trend, not fighting against Supertrend's inherent steppiness. This tends to produce fewer false flips in sideways conditions while still catching genuine trend changes, without adding a second unrelated indicator to the chart.
This source option is exposed directly in the settings (MA Source = "EMA of Supertrend"), with its own dedicated smoothing period, so it's a toggle away from the standard price-source approach for direct comparison on your own charts.
Caption: Chart example on GOLDPETAL, 15-min: long & short entry on the MA-Supertrend crossover.
How it works
Supertrend: calculated from your selected source (default HL2, the traditional Supertrend basis) with a configurable ATR Period and ATR Factor. Unlike TradingView's built-in Supertrend function (which is hard-coded to HL2), this version lets the basis price and the trend-flip check both use whichever source you select.
Moving Average: choose SMA, EMA, HMA (Hull), or WMA, computed on your selected source, including the "EMA of Supertrend" option described above.
Entry signal: long when the Moving Average crosses above the Supertrend line, short on the opposite cross.
Reverse Trading Mode: a single toggle that inverts the signal (useful for quickly testing whether the opposite side of a crossover performs better on a given instrument/timeframe, without rebuilding the logic).
Stop Loss / Take Profit: both optional and independently toggleable, with a shared basis switch between Percentage (of entry price) and Points, so the same settings panel works whether you're trading a low-priced or high-priced instrument.
Settings guide
(select this whole list after pasting and click the bullet-list button)
Supertrend Source - price series used for the Supertrend basis and trend-flip check
ATR Period / ATR Factor - standard Supertrend volatility inputs
MA Type - SMA / EMA / HMA / WMA
MA Source - price source, or "EMA of Supertrend"
EMA of Supertrend Period - smoothing period applied to the Supertrend line (only active when MA Source = EMA of Supertrend)
Reverse Trading Mode - inverts long/short signals
Use SL / Use TP, Basis, Values - optional exit management, Percentage or Points
Caption: Strategy Tester summary, GOLDPETAL futures, 15-min, , default settings.
Disclaimer:
This script is a technical trading tool for educational and informational purposes. It does not constitute financial advice, and past performance in backtesting does not guarantee future results. Always test thoroughly on your own instruments and timeframes, and use appropriate risk management, before considering live use. ストラテジー

STRYK: MOMENTUMSTRYK: MOMENTUM: puts context on price in one overlay: a rolling volume-weighted average price with deviation bands, a long exponential moving average with an optional smoothing overlay, candles coloured by a selectable read (order-flow delta, participation fuel, or three price-only modes), a volume-participation background shade, and the session level map — previous Day / Week / Month highs and lows with an optional internal quartile grid, plus the overnight Asian range. Every block has a master switch and its own settings, including quick switches for the quartile lines, the zones and the paint mode; run all of it or one piece.
## Rolling VWAP
Volume-weighted average price over the last N candles of a chosen delta timeframe — with the defaults, 60-minute candles × 20, a 20-hour VWAP that slides forward as each candle completes rather than anchoring to a session. Volume-weighted standard-deviation bands at ±1σ, ±2σ and ±3σ with individual multipliers, colours and an optional ±1σ fill. The window is computed from chart bars on a ring buffer with running sums, so it loads cleanly in bar replay. A visual smoothing pass (adjustable, 1 = off) rounds the small steps that occur as the oldest candle leaves the window; the underlying values are exact.
If the chart timeframe is raised above the delta timeframe, the delta timeframe is lifted to match for that session with the same lookback (switchable to a strict error instead).
## EMA
TradingView's standard exponential moving average — length (default 233), source and offset — with its standard smoothing-MA option (SMA, EMA, SMMA/RMA, WMA, VWMA, or SMA with Bollinger Bands, default length 233) and an additional visual smoothing pass on the plotted line (1 = the stock EMA exactly).
## Candle paint — sixteen modes
Every candle (body, wick, border) is coloured by the selected mode, fading between a bear colour, a neutral colour and a bull colour through an adjustable response curve. Hide the chart's own candles so only the painted set shows. Most modes self-calibrate against their own recent history (percentile rank rather than fixed thresholds) and brighten when the bar's delta agrees with the read, dimming when it disagrees. Several modes share one visual language: a reference box (a bar's or period's value area, the previous day's range, the overnight range) — blue inside it, deepest at the centre and fading toward the edges; green above, red below, ramping with distance beyond.
Volume-profile modes — every profile is built from intrabar volume at price: **Delta size** (each bar against the prior bar's own point of control and value area), **Delta size HTF** (each bar against the last completed delta-timeframe candle's point of control and value area, alignment checked against the live higher-timeframe delta), **POC trend** (which way the live delta-timeframe candle's point of control has migrated against the completed candles before it — acceptance moving up or down — halved inside that candle's value area, boosted outside it on the migration's side; switchable to the full-session profile), and **Value area** (the session's value area as the box, brightest at the session point of control).
Order-flow modes: **Delta %** (delta as a share of volume, self-calibrated, size-gated, weighted toward how the bar closed, compounding across consecutive same-direction bars), **Fuel × Δ** (sign from the bar's delta, intensity from fuel — spike-aware participation shaped by a bell that stays full above its peak, delta agreement against the bar's own direction, and the side of the EMA), and **Participation band** (crowd presence only, no direction — a smooth gradient across the full participation rank; the background tint switches itself off while this mode is active).
Structure and level modes: **Pivot structure** (above the last confirmed pivot high bull, below the last pivot low bear, between neutral; pivots confirm after the pivot length and do not repaint), **Pivot structure HTF** (the same pivots computed on the delta timeframe's own bars), **Market structure** (a latched trend state that flips only on a close through the opposite pivot; the flip flashes at an intensity set by its quality — break distance and delta agreement — then settles to a baseline that keeps that quality), **Day range position** (the previous day's high and low as the box), and **Asian range position** (the overnight range as the box; breaks from a tight overnight range weigh more).
Trend and momentum modes: **EMA trend** (side of the script's EMA, distance self-calibrated, multiplied by the EMA's own slope and — when a smoothing line is enabled — by the EMA's position against it, with a brief flash on the bar price first crosses), **VWAP σ-distance** (stretch from the rolling VWAP in standard deviations, with a distinct exhaustion colour when price is beyond the chosen σ and delta disagrees), **Candle conviction** (pure price action — body dominance self-calibrated, gated by bar range, compounding across consecutive bars), and **RSI momentum** (gradient around 50, self-calibrated, weighted by RSI velocity and fast/slow agreement, overridden by a distinct colour on confirmed pivot divergence).
## Volume participation background
A volume EMA is normalised 0–100 against its own recent range. At the extremes the chart background tints — one colour when participation is unusually high, another when the tape is unusually quiet. Thresholds, transparency and colours are inputs.
## Session levels
**Previous Day / Week / Month high and low.** Each level comes from the completed period and is drawn from the new period's open — non-repainting. Per-timeframe toggles, colours, widths and how many past levels to keep; optional fade on older levels, name labels with position and per-timeframe text settings, extend-to-chart and project-forward options. Week start (Sunday futures / Monday cash) and the daily session-open hour are inputs. An optional **quartile grid** adds dashed lines at the 25 / 50 / 75% marks inside each shown range, and optional **zones** shade a band around each high and low line — an eighth of the range above and below it.
**Asian range.** High and low of the overnight Asian session (window set in HHMM, exchange time). The range draws dotted while the session builds, confirms solid at the session end, and can extend across the trading day or to the end of the chart. A configurable number of past sessions stays on the chart.
## Delta source — read this
Where TradingView provides volume footprint data for the bar, delta comes from `request.footprint()` bid/ask buy and sell volume. Footprint availability depends on your plan and the symbol; where it is not available the script falls back to an **estimate** of delta derived from lower-timeframe bar polarity, with the intrabar resolution chosen automatically against your plan's data budget. Estimated delta is not order-flow data and can differ materially from true delta. The footprint is built from TradingView's own tick feed: a broker data subscription does not make it real-time, and a "Delayed" chip on the chart means the colours are delayed by the same amount.
## Why these parts are together
Each block answers one part of the same question — is the current move worth trusting, and against which levels: the VWAP and bands give the fair-value anchor and stretch, the EMA gives the higher-order trend, the paint says whether the bar is being paid for (or, in the price-only modes, where it stands in structure), the background says whether anyone is participating at all, and the session levels supply the locations where those answers matter. The components are original implementations built for this combination: the rolling VWAP is window-based rather than session-anchored, the fuel paint is this script's own participation model, and the level engine draws only completed, non-repainting periods.
## Repainting
The live delta-timeframe candle's colour updates on every tick by design; completed candles do not change. Pivots (and the divergence and structure reads built on them) confirm after the pivot length. Streak counters advance only on bar close. Session levels come only from completed periods. The VWAP, bands, EMA, RSI and ATR are standard rolling calculations.
## What it is not
It draws context. It makes no prediction and contains no trade logic. インジケーター

インジケーター

Signal Expectancy Analyzer [SpokoStocks]Signal Expectancy Analyzer answers one question: on this chart, what has actually happened after a signal in the past? It covers majority of indicator in TradingView's Technicals panel as an event, lets you connect any other indicator, and ranks all of them against each other on the symbol and timeframe you trade.
WHAT IT SHOWS
• A statistics table for the selected signal at four horizons (5, 10, 20 and 40 bars by default): number of signals, win rate, average and median forward return, the baseline return of any bar over the same horizon, the edge over that baseline, a t-statistic, and the average maximum favourable and adverse excursion.
• A leaderboard that ranks all 43 built-in signals by their edge at the primary horizon, so you can see which standard indicators have historically worked on this chart and which have not.
• A projected cone from the most recent signal: the average historical path and a one-standard-deviation band, drawn forward on the price chart.
• Signal markers coloured by outcome at the primary horizon: won, lost, or still pending.
• A compact return distribution in the table.
SIGNALS INCLUDED
Every indicator from the Technicals panel, each as a bullish and a bearish event: RSI(14) oversold and overbought, Stochastic(14,3) crosses in the extreme zones, CCI(20) crossing ±100, ADX(14) directional crosses, Awesome Oscillator zero cross, Momentum(10) zero cross, MACD(12,26,9) signal cross, Stochastic RSI crosses in the extreme zones, Williams %R(14) crossing −80 and −20, Bull Bear Power(13) zero cross, Ultimate Oscillator crossing 30 and 70, close crossing EMA(20), SMA(50) and SMA(200), golden and death cross, close crossing the Ichimoku cloud, Hull MA(9) turns, close crossing VWMA(20). Also Bollinger Band touches, N-bar low and high closes, gaps, and an external source that takes any plot from any other indicator on your chart.
Every signal is an event, the first bar its condition becomes true, never a state, and a cooldown prevents clustered signals from being counted several times. Each signal has a natural direction, so a bearish signal counts a falling market as a win.
HOW IT WORKS
The script cannot look into the future, so it works backwards: on every bar it checks which signals fired h bars ago and records the return from that bar's close to the current close, together with the highest and lowest price reached in between. Baseline is the average h-bar return of every bar on the chart, which is what a random entry would have earned; edge is the signal's average minus that baseline. The t-statistic is the average divided by its standard error; values beyond ±2 suggest the result is unlikely to be noise. The cone is the bar-by-bar average path after all past occurrences of the selected signal, with one standard deviation either side, anchored to the latest signal's close.
HOW TO USE IT
1. Apply the indicator to the chart and timeframe you actually trade.
2. Read the leaderboard first. Signals near the top with a t-statistic beyond 2 and at least 30 occurrences deserve attention; the rest is noise on this chart.
3. Select any signal to study it in depth, or connect your own indicator through the external source.
4. Compare edge with baseline. A high win rate with no edge simply means the market was trending.
5. Use average MFE and MAE to set targets and stops that match how the signal has behaved.
6. Use the cone as a visual expectation for an open signal, not as a prediction.
LIMITATIONS
• Results depend on the history loaded on the chart and change as bars are added.
• Testing 43 signals at once invites false positives: with that many comparisons, a few will look good by chance. Treat the leaderboard as a screening step and confirm on other timeframes and symbols.
• Overlapping signals share bars, so returns are not fully independent and the t-statistic is indicative rather than exact.
• The cone assumes the future distribution resembles the past and ignores regime changes.
• The external source only triggers on the transition above zero.
インジケーター

MA Trend Ribbon# MA Trend Ribbon
## Overview
MA Trend Ribbon is a trend-following overlay that sits directly on the price chart. It draws a band made of six moving-average lines stacked from fastest to slowest. The band fills with color to show whether the market is leaning up or down, and it prints clear BUY and SELL labels at the moments the trend flips. It can also read the entire ribbon from a higher timeframe, so a lower-timeframe chart can be traded in line with the broader trend. The goal is a single, easy-to-read picture of trend direction and the points where that direction changes.
## What It Shows
- **The ribbon** — six moving averages of increasing length, drawn together as a colored band. When the band tilts and expands upward the trend is up; when it rolls over and expands downward the trend is down. A band that pinches flat signals a market with little direction.
- **The color** — the entire ribbon turns one color for an up-trend and another for a down-trend, so direction reads at a glance without studying the individual lines.
- **The labels** — a BUY label marks the bar where the trend turns up, and a SELL label marks the bar where the trend turns down. By default the labels ride the ribbon itself, sitting just outside the band; they can instead be pinned to the price candles. A label always appears on the same bar the ribbon changes color, so the two never disagree.
- **Optional bar coloring** — price bars can be tinted to match the trend for an even faster read.
- **Alerts** — built-in alerts announce each new BUY and SELL so the chart does not have to be watched constantly.
## The Structure Timeframe
The ribbon can be calculated on a timeframe other than the one being viewed. Left blank, it simply uses the chart's own timeframe. Set to a higher timeframe, the whole ribbon — its lines, its color, and its signals — is drawn from that broader view and displayed on the current chart. This makes it possible to watch a fast chart while keeping every reading aligned to a slower, more meaningful trend.
Two things are worth knowing when a higher timeframe is selected. The ribbon will look stepped, because each higher-timeframe value holds flat across the smaller bars until the larger bar completes. And the most recent portion can shift while the current higher-timeframe bar is still forming, settling once that bar closes; the confirm-on-close option keeps alerts from acting before it settles.
## How Direction Is Decided
The ribbon offers two ways to define the trend, chosen from a single setting:
- **Ribbon Flip** — the trend is up while the fastest line sits above the slowest line, and down when it drops below. This waits for the whole ribbon to turn over, giving steadier, less frequent signals.
- **Fastest MA Slope** — the trend is up the moment the fastest line starts rising and down the moment it starts falling. This reacts earlier and produces more signals.
Whichever method is selected controls both the ribbon color and the labels, keeping the visual and the signals in step.
## Choice of Averages
The ribbon is not limited to one style of average. A dropdown selects the type used for all six lines, ranging from smooth-and-steady to fast-and-reactive. Smoother types change direction later but hold trends more calmly. Faster types change direction sooner but shift more often. Because every line uses the same base length regardless of the type chosen, the base length usually deserves a fresh look after switching types, since the same number behaves differently from one average to the next.
The default type is volume-weighted, which leans on the bars that trade the most. On symbols whose data feed does not carry real volume, a volume-weighted average may behave unpredictably; on those markets one of the price-only types is the better choice.
## Optional Polish
Two extra touches can be switched on to make trends easier to judge, and both are off by default so the standard look stays clean:
- **Momentum-scaled ribbon** — the fill grows more solid as the band expands during a strong trend and fades as it compresses in a quiet market, so strong moves stand out and flat stretches recede.
- **Price-to-ribbon fill** — a soft shade fills the gap between price and the ribbon, making pullbacks toward the band easy to spot.
---
## User Inputs
### Structure
- **Structure Timeframe** — the timeframe the entire ribbon is calculated on. Blank uses the chart's own timeframe. A higher selection draws that higher timeframe's ribbon and signals on the current chart. Default is blank.
### Moving Average
- **Source** — the price used for the calculation. Default is the closing price. Other choices include the open, high, low, or an average of these.
- **MA Type** — the style of average used for every line in the ribbon. Ten options are available, from the smoothest and steadiest to the fastest and most reactive: Simple, Exponential, Weighted, Hull, Wilder's, Volume-Weighted, Double Exponential, Triple Exponential, Arnaud Legoux, and Least Squares. Default is Volume-Weighted.
- **Base MA Length** — the length of the fastest line in the ribbon. Smaller values make the whole ribbon quicker to react; larger values make it slower and smoother. Default is 40.
- **Ribbon Spacing** — the amount added to each line's length as the ribbon steps from fastest to slowest. Smaller values pack the six lines into a tight band; larger values spread them apart so the band widens and narrows more dramatically. Default is 8.
### Advanced MA Inputs
These settings apply only to specific average types and are ignored by the rest.
- **ALMA Offset** — applies only when the Arnaud Legoux type is selected. Higher values make that average track price more closely; lower values make it smoother. Default is 0.85.
- **ALMA Sigma** — applies only when the Arnaud Legoux type is selected. Larger values produce a smoother line; smaller values follow price more closely. Default is 6.
- **LSMA Offset** — applies only when the Least Squares type is selected. Shifts that line forward or backward by a set number of bars. Default is 0.
### Signals
- **Signal Trigger** — chooses how the trend is defined, either Ribbon Flip (steadier, later) or Fastest MA Slope (earlier, more frequent). Default is Ribbon Flip.
- **Show Buy/Sell Labels** — turns the BUY and SELL labels on or off. Default is on.
- **Label Position** — chooses where labels sit. Ribbon attaches them to the band, just below the lowest line for a buy and just above the highest for a sell, so they travel with the ribbon. Bar pins them to the candles instead, below the low for a buy and above the high for a sell. Default is Ribbon.
- **Label ATR Offset** — sets how far a label sits from the ribbon in Ribbon mode, scaled to recent price movement so the gap stays consistent in calm and volatile markets. A value of zero places the label right on the band; larger values push it further away. Has no effect in Bar mode. Default is 0.5.
- **Color Bars By Trend** — tints the price bars to match the current trend color. Default is off.
- **Confirm Signals On Bar Close** — when on, alerts wait until a bar has fully closed before firing, so a signal cannot appear and then disappear before the bar finishes. Labels still show while the bar is forming. Default is on.
### Style
- **Bullish Color** — the color of the ribbon and labels during an up-trend.
- **Bearish Color** — the color of the ribbon and labels during a down-trend.
- **Ribbon Fill Transparency** — how see-through the shaded band is, from solid to invisible. Default is 78.
- **Ribbon Line Width** — the thickness of each ribbon line. Default is 1.
- **Label Size** — the text size of the BUY and SELL labels, from tiny to large. Default is Normal.
### Visual Polish
- **Momentum-Scaled Ribbon** — when on, the fill grows more solid as the ribbon expands and fades as it compresses, so trend strength is reflected in the shading. Default is off.
- **Strong-Trend Fill Transparency** — the solidity of the fill at full ribbon expansion when the scaling above is on. Lower is more solid. Default is 38.
- **Momentum Normalization Length** — how many bars are used to judge how wide the ribbon is now compared with its recent range. Shorter values react faster to changes in strength; longer values give a steadier scale. Default is 100.
- **Fill Price To Ribbon** — shades the gap between price and the ribbon to highlight pullbacks. Default is off.
- **Price Fill Transparency** — how subtle that price-to-ribbon shading is. Higher is fainter. Default is 88.
---
## Best Use
The ribbon works best as a trend filter rather than a stand-alone entry system. Trends are followed most cleanly when trades lean in the direction of the ribbon color, using the labels to mark the turning points. Reading the ribbon from a higher Structure Timeframe while entering on a faster chart is a natural way to keep trades aligned with the larger trend. In quiet, sideways markets the ribbon will change color back and forth and produce more frequent, less reliable signals; the Ribbon Flip setting and a wider spacing reduce this, at the cost of later entries. Faster average types and tighter spacing suit active, short-term charts, while smoother types and wider spacing suit calmer, longer-term views. インジケーター

インジケーター

VWAP A BE BOPVWAP A BE BOP — Every Anchor You'll Ever Need, One Indicator
VWAP A BE BOP consolidates the anchored VWAP toolkit that traders normally piece together from three or four separate scripts into a single, clean overlay. Instead of hunting for daily VWAP here, a weekly anchor there, and a rolling previous-day reference somewhere else, every timeframe you actually trade around lives in one place — fully customizable, fully synced.
Five calendar-anchored VWAPs — Daily, Weekly, Monthly, Quarterly, and Yearly — give you the institutional reference levels that price consistently reacts to, each with its own toggle and color so you can build exactly the confluence stack your strategy calls for. Layer a fast Daily VWAP against a slower Monthly or Quarterly anchor to instantly see whether you're trading with or against the higher-timeframe flow.
Daily and Previous Day deviation bands bring statistical context to the mix. Three independently adjustable standard-deviation multipliers (defaulting to 1, 2, and 2.5) mark the zones where price has statistically stretched from fair value — classic mean-reversion and breakout-confirmation territory, without cluttering your chart with bands on every single line.
A true Previous Day VWAP, anchored precisely at session open with zero configuration required, plus optional rolling lines going back a full week — perfect for spotting how current price stacks up against where the market was trading 2, 3, or even 7 sessions ago.
Fully adjustable labels turn a wall of colored lines into an instantly readable chart. Rename any line to whatever shorthand you like — "pDay," "M," "Q" — and control label size and horizontal offset so the tags sit exactly where you want them, whether you're on a widescreen monitor or a cramped mobile chart.
Built for traders who live and die by mean reversion, fair value, and institutional order flow, VWAP A BE BOP strips away the noise of over-engineered multi-panel scripts and gives you a single, elegant, endlessly configurable VWAP suite — the last VWAP indicator you'll need to add to your chart.
For educational and informational purposes only. Not financial advice. インジケーター
