BTC vs USDT Dominance + Info//@version=5
indicator("BTC vs USDT Dominance + Info", overlay=false)
// Ambil data BTCUSDT (Bybit)
btc = request.security("BYBIT:BTCUSDT", timeframe.period, close)
// Ambil data USDT Dominance (USDT.D)
usdtDom = request.security("CRYPTOCAP:USDT.D", timeframe.period, close)
// Normalisasi biar skalanya sama
btcNorm = (btc - ta.lowest(btc, 200)) / (ta.highest(btc, 200) - ta.lowest(btc, 200)) * 100
usdtNorm = (usdtDom - ta.lowest(usdtDom, 200)) / (ta.highest(usdtDom, 200) - ta.lowest(usdtDom, 200)) * 100
// Plot garis
plot(btcNorm, color=color.green, title="BTC (Normalized)", linewidth=2)
plot(usdtNorm, color=color.red, title="USDT Dominance (Normalized)", linewidth=2)
// Deteksi arah candle terakhir
btcUp = ta.change(btc) > 0
btcDown = ta.change(btc) < 0
// Label info otomatis
if btcUp
label.new(bar_index, btcNorm, "BTC Naik → USDT Dominance Turun",
color=color.green, textcolor=color.white, style=label.style_label_up)
if btcDown
label.new(bar_index, btcNorm, "BTC Turun → USDT Dominance Naik",
color=color.red, textcolor=color.white, style=label.style_label_down)
Indicatori e strategie
Rolling Correlation BTC vs Hedge AssetsRolling Correlation BTC vs Hedge Assets
Overview
This indicator calculates and plots the rolling correlation between Bitcoin (BTC) returns and several key hedge assets:
• XAUUSD (Gold)
• EURUSD (proxy for DXY, U.S. Dollar Index)
• VIX (Volatility Index)
• TLT (20y U.S. Treasury Bonds ETF)
By monitoring these dynamic correlations, traders can identify whether BTC is moving in sync with risk assets or decoupling as a hedge, and adjust their trading strategy accordingly.
How it works
1. Computes returns for BTC and each asset using percentage change.
2. Uses the rolling correlation function (ta.correlation) over a configurable window length (default = 12 bars).
3. Plots each correlation as a separate colored line (Gold = Yellow, EURUSD = Blue, VIX = Red, TLT = Green).
4. Adds threshold levels at +0.3 and -0.3 to help classify correlation regimes.
How to use it
• High positive correlation (> +0.3): BTC is moving together with the asset (risk-on behavior).
• Near zero (-0.3 to +0.3): BTC is showing little to no correlation — neutral/independent moves.
• Negative correlation (< -0.3): BTC is moving in the opposite direction — potential hedge opportunity.
Practical strategies:
• Watch BTC vs VIX: a spike in volatility (VIX ↑) usually coincides with BTC selling pressure.
• Track BTC vs EURUSD: stronger USD often puts downside pressure on BTC.
• Observe BTC vs Gold: during “flight to safety” events, gold rises while BTC weakens.
• Monitor BTC vs TLT: rising yields (falling TLT) often align with BTC weakness.
Inputs
• Window Length (bars): Number of bars used to calculate rolling correlations (default = 12).
• Comparison Timeframe: Default = 5m. Can be changed to align with your intraday or swing trading style.
Notes
• Works best on intraday charts (1m, 5m, 15m) for scalping and short-term setups.
• Use correlations as context, not standalone signals — combine with volume, VWAP, and price action.
• Correlations are dynamic; they can switch regimes quickly during macro events (CPI, NFP, FOMC).
This tool is designed for traders who want to manage risk exposure by monitoring whether BTC is behaving as a risk-on asset or hedge, and to exploit opportunities during decoupling phases.
X HL TargetsDesigned to track and project prior interval high and low levels. It provides traders with clear reference points for potential targets, support and resistance
Key Features
Prior Interval Anchoring
At the start of each new interval, the indicator captures the previous interval’s high and low.
Current interval developing highs and lows are ignored, ensuring only completed data drives level creation.
Dynamic Extensions
Each high and low level is extended forward until price action mitigates (touches or crosses) the level.
When mitigated, the line is automatically “frozen” at the bar of contact and restyled to a subdued color.
End-of-Day Housekeeping
Optional setting allows all mitigated lines to be automatically removed at the end of each interval, keeping charts uncluttered and focused only on active untested levels.
Performance Management
User-defined limit on the number of past intervals retained ensures efficient performance and prevents chart overload.
Trading Applications
Target Mapping: Prior interval highs and lows are commonly watched areas where liquidity pools form and price often reacts.
Breakout & Reversal Signals: Monitoring if and when price mitigates these levels can help confirm breakouts or identify potential reversals.
Intraday Focus: By excluding developing highs and lows of the current session, the indicator emphasizes only proven, market-validated levels.
Clean Workspace: End-of-day deletion of mitigated lines prevents clutter and highlights only the most relevant active levels for ongoing sessions.
Gap Up HighlighterIdentifies stocks which meet the following conditions
1) Todays Open > 1.03* Previous day high
2) Todays Close > 1.03* Previous day high
Psych Zones – 000/250/500/750 (250-pip bands, 500 emphasis)Market makers Strategy that helps all traders make money overtime
Institutional Candles (4H @ Monthly Extremes)Market Structure and institutional accounts for higher markers and has built a system that developed reversals
Ludvig Indicator PROThe Ludvig Indicator is designed to identify high-probability breakout setups by combining trend, volume, volatility, and relative strength filters. It helps you enter stocks (or ETFs/crypto) when institutional money is likely flowing in, while avoiding false breakouts and weak trends.
🔑 Core Features
Zero-Lag EMA (ZLEMA)
Faster, less lagging trend detection compared to traditional EMAs.
Used as the basis for dynamic ATR bands.
ATR Volatility Bands
Adaptive bands based on the Average True Range (ATR).
Define the zone where price must close outside to confirm trend strength.
Breakout Confirmation
Requires price to close above recent highs (lookback configurable).
Ensures signals are “true breakouts,” not just noise around moving averages.
Volume Filter (Relative Volume)
Validates breakouts with significantly higher volume than average.
Prevents low-liquidity signals from triggering.
Trend Strength (ADX)
Built-in ADX calculation ensures only strong, trending moves are considered.
Default filter: ADX ≥ 18 (configurable).
Relative Strength vs. Benchmark
Compares the asset’s momentum against a benchmark (default: SPY).
Only signals when the asset is outperforming the benchmark.
Useful for sector rotation and picking leaders instead of laggards.
Alerts & Signals
Breakout entries are marked with small green triangles.
Built-in alerts for automated notifications (TradingView alerts).
Universal MA Cloud It's a highly customizable MA with a Cloud around the precise value to dynamically account for high/low market volatility environments. Have fun.
FUMO 200 MagnetWhat it does
FUMO Magnet measures how far price has stretched away from its long-term “magnet” — a blended EMA/SMA moving average (200 by default).
It plots a logarithmic deviation (optionally normalized) as an oscillator around zero.
Above 0** → price is above the magnet (stretched up)
Below 0** → price is below the magnet (stretched down)
Guide levels** highlight potential overbought/oversold zones
---
Why log deviation?
Log returns make extremes comparable across cycles and compress exponential trends — especially useful for BTC and other crypto assets.
Normalization modes further adjust the scale, keeping the oscillator readable on any chart.
---
Inputs
**Base**
* Source (default: Close)
* Base Length (default: 200 EMA/SMA)
* EMA vs SMA weight (%) — 0% = pure SMA, 100% = pure EMA, 50% = blended
* EMA smoothing of deviation — acts as a noise filter
**Normalization**
* None (Log Deviation) — raw log stretch in % terms
* Z-score — deviation in standard deviations (σ)
* Robust Z (MAD) — deviation vs median absolute deviation, resistant to outliers
* Tanh squash — smooth nonlinear squash of extremes for compact scale
* Normalization window (for Z / MAD)
* Tanh scale (lower = stronger squash)
* Clamp after normalization — hard cap at ±X
**Levels**
* Guide levels (Upper / Lower) — visual thresholds (default ±12)
* Zero line toggle
---
### How to read it
* **Trend bias**: sustained time above 0 = uptrend, below 0 = downtrend
* **Stretch / mean reversion**: the farther from 0, the higher the reversion risk
* **Cross-checks**: combine with structure (HH/HL, LH/LL), volume, or momentum (RSI, MACD)
---
### Recommended settings by timeframe
**Long-term (1D / 1W)**
* Normalization: None (Log Deviation)
* Base Length: 200
* EMA vs SMA weight: 50% (adjust 35–65% for faster/slower magnet)
* Deviation smoothing: 20 (10–30 range)
* Guide levels: ±12 to ±20
* Use case: cycle extremes, portfolio rebalancing, trim/add logic
**Swing (4H – 1D)**
* Normalization: Z-score
* Window: 200 (100–250)
* Smoothing: 14–20
* Guide levels: ±2σ to ±3σ
* Use case: stretched conditions across regimes; ±3σ is rare, often mean-reverts
**Intraday / Active swing (1H – 4H)**
* Normalization: Robust Z (MAD)
* Window: 200 (150 for faster response)
* Smoothing: 10–16
* Guide levels: ±3 to ±4 (robust units)
* Use case: handles spikes better than σ, fewer false overbought/oversold signals
**Scalping / Universal readability (15m – 1H)**
* Normalization: Tanh squash
* Tanh scale: 6–10 (start with 8)
* Smoothing: 8–12
* Guide levels: ±8 to ±12
* Use case: compact panel across assets and timeframes; not % or σ, but visually consistent
---
### Optional
* Clamp: enable ±20 (or ±25) for strict bounded range (useful for public charts)
---
### Quick setups
**BTC Daily (“cycle view”)**
* Normalization: None
* Blend: 50%
* Smooth: 20
* Levels: ±12–15
**BTC 4H (“swing”)**
* Normalization: Z-score
* Window: 200
* Smooth: 16
* Levels: ±2.5σ to ±3σ
**Alts 1H (“volatile”)**
* Normalization: Robust Z (MAD)
* Window: 200
* Smooth: 12
* Levels: ±3.5 to ±4.5
**Mixed assets 15m (“compact panel”)**
* Normalization: Tanh squash
* Scale: 8
* Smooth: 10
* Levels: ±8–12
* Clamp: ±20
BOS FVG IndicatorBOS FVG Indicator (Smart Market Structure Tool)
🔎 Overview
The BOS FVG Indicator is a smart price-action–based tool that combines Break of Structure (BOS), Change of Character (CHoCH), Fair Value Gaps (FVG), Supertrend, and ADX strength into one powerful indicator.
It helps traders identify market structure shifts, imbalances, and high-probability trade setups while also highlighting no-trade zones (NTZ) where the market is choppy or lacks trend strength.
This indicator is designed for intraday and swing traders who follow ICT-style concepts or price-action based trading.
⚡ Key Features
Break of Structure (BOS) & CHoCH Detection
Labels bullish BOS (📈 BOS↑) and bearish BOS (📉 BOS↓).
Highlights structure shifts for trend confirmation.
Fair Value Gaps (FVG)
Auto-detects bullish and bearish FVGs.
Draws transparent boxes with labels where imbalances appear.
Supertrend Confirmation
Adaptive supertrend line with dynamic coloring (green = bullish, red = bearish).
No Trade Zone (NTZ)
Automatically shades background gray when ADX is weak or no BOS detected.
Helps avoid false signals in sideways/choppy markets.
Multi-Timeframe Context
Previous 4H candle range plotted as a dotted yellow box.
Useful for intraday traders tracking HTF liquidity zones.
Signal Strength
Regular and Strong Buy/Sell signals based on ADX confirmation.
Labels include entry info, RR (2:1), and trend strength.
Market Info Dashboard
Table on chart showing ADX strength, current trend, and trade zone status.
🛠 How to Use
Add to Chart → Apply the indicator to any timeframe (works best on 5m–1H for intraday, 4H–Daily for swing).
Choose Mode
Indicator Mode → Shows visual signals, BOS, FVG, NTZ zones, and dashboard.
Strategy Mode → Displays trade entry labels with RR info for backtesting setups.
Filters
Only trade signals when ADX > threshold and NTZ is inactive.
Confirm with Supertrend direction + BOS + FVG alignment.
Entries & Exits
Long Entry → Bullish BOS + Bullish FVG + Trend bullish.
Short Entry → Bearish BOS + Bearish FVG + Trend bearish.
Stop Loss: Recent swing high/low.
Take Profit: Auto-suggested 2:1 RR.
🔔 Alerts
Set alerts to never miss key signals:
✅ Bullish / Bearish BOS
✅ Bullish / Bearish FVG
✅ Strong Buy / Sell
✅ Regular Buy / Sell
✅ Long / Short Entries
✅ No Trade Zone active
Alerts are pre-configured with clear messages (📈, 📉, 🚀, 🟢, 🔴, ⚪).
📌 Best Use Cases
ICT-style liquidity and FVG traders.
Intraday traders filtering strong vs weak signals.
Swing traders using multi-timeframe confirmation.
Traders who want an all-in-one market structure toolkit.
👉 This script is not financial advice. Always backtest before using in live markets.
VSA Highlight & Relative Strength of Volume [odnac]This is a TradingView indicator combining VSA (Volume Spread Analysis) signals with a relative strength of volume visualization.
The indicator has two main parts:
1. VSA Volume Highlight:
Detects common VSA signals, including Stopping Volume, Buying Climax, No Supply, No Demand, Test, Up-thrust, Shakeout, Demand Absorption, and Supply Absorption.
Supports a trend filter using a user-selectable moving average type (SMA, EMA, WMA, or VWMA) and length.
Calculates spread and volume moving averages to determine wide/narrow spreads and high/low volume relative to the averages.
Determines relative bar positions (close near high, close near low, or mid-close) to categorize VSA signals.
Optionally colors the background based on the detected VSA signal.
Supports alerts for each VSA signal type.
2. Relative Strength of Volume:
Splits total volume into buying and selling components based on the candle’s high, low, and close.
Buying volume is calculated as volume times the proportion of the candle’s close above the low.
Selling volume is calculated as volume times the proportion of the candle’s close below the high.
Plots buying and selling volume as colored columns in the pane.
Plots total volume in the status line colored according to the dominant side (buying or selling).
Inputs include:
Toggle visibility for each VSA signal.
Trend filter options (type and length).
Volume and spread moving average lengths and multipliers for high/low volume and wide/narrow spread detection.
Thresholds for close positions near high or low, and for identifying Buying Climax.
Opacity for VSA volume highlights.
The indicator is designed to help traders visually identify key volume patterns and analyze buying and selling pressure in the market.
Custom Support & Resistance Levels (Manual Input)This indicator lets you plot your own support levels (and can be extended for resistance) directly on the chart by entering them as comma-separated values.
📌 Supports manual input for multiple price levels.
📊 Lines are extended across the chart for clear visualization.
🎨 Dynamic coloring:
Green if the current price is above the level.
Red if the current price is below the level.
🧹 Old lines are automatically cleared to avoid clutter.
This tool is ideal if you:
Prefer to mark your own key zones instead of relying only on auto-detected levels.
Want clean and simple visualization of critical price areas.
👉 Coming soon: Resistance levels input (commented in the code, can be enabled).
Current Candle### Overview
The **Current Candle** indicator displays live information about the active bar. It shows the price change, percentage change, and candle range (high–low), conveniently placed to the right of the current candle.
### Features
• Shows absolute price change from the previous close
• Shows percentage change (%)
• Shows candle range (high–low)
• Customizable bull and bear colors (default TradingView candle colors: green = rgb(8,153,129), red = rgb(242,54,44))
• Toggle on/off Value, Percentage, and Range individually
• Always updates on the latest candle only, keeping charts clean
### How to Use
1. Add the indicator to your chart.
2. Adjust the “Right offset (bars)” to position the label.
3. Enable or disable Value, Percentage, or Range via checkboxes.
4. Customize bull/bear colors to match your chart theme if desired.
### Notes
• Label is plotted only on the latest candle (`barstate.islast`) to avoid clutter.
• Colors cannot be automatically synced to your TradingView chart theme — use the color inputs to match them manually.
• This script is designed for clarity and quick reference without altering your chart’s candles.
---
*Stay focused on the current candle — see change, percentage, and range at a glance.*
Institutional Candles at Weekly/Monthly ExtremesMarket Makers use institutional candles to reverse price and they profit on the short and the long. That being said its important to know they will always come back and reverse price to close out their losing positions.
MACD + AO + Supertrend Buy/Sell (Dual Timeframe)This indicator combines the MACD, Awesome Oscillator and Supertrend to create buy and sell signals when certain criteria is met.
Parameters are standard except for Supertrend uses ATR 13, factor 1.5, MACD fast length is 8 and slow is 13.
Once the MACD line, histogram, Awesome Oscillator are above zero, and price is above the Supertrend indicator, a buy signal will be printed. The opposite should print a sell signal.
There is an option to set a higher time frame bias too, this should filter out some of the signals.
Use at your own discretion but I suggest having the MACD/AO and Supertrend on the charts to verify it's working correctly, then I will tend to ignore signals when the price has already moved too far in the trade direction.
Another suggestion would be to use the Supertrend indicator as your stop loss area and then trail that stop once the price moves in a favorable direction.
Disclaimer
This indicator is provided for informational and educational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. Trading involves risk, and past performance is not indicative of future results. Use this tool at your own risk, and always do your own research or consult a licensed financial professional before making trading decisions.
SCTI-D1SCTI-D1 Indicator Introduction / 指标简介
The SCTI-D1 (Smart Composite Trading Indicator - Daily) is a comprehensive, multi-feature trading tool designed for serious traders who demand depth, flexibility, and clarity in their market analysis. This indicator combines several powerful concepts into one seamless workflow, including:
Multiple EMA Systems with customizable lengths and visibility
PMA (Projected Moving Average) with fill options between lines
VWAP with configurable anchors and deviation bands
Divergence Detection for MACD and Histogram
Volume Profile with node detection (peaks, troughs, highs, lows)
Smart Money Concepts including order blocks, fair value gaps, equal highs/lows, and market structure shifts
Whether you trade stocks, forex, or cryptocurrencies, the SCTI-D1 helps you identify key levels, track institutional activity, and spot high-probability reversal signals—all in one clean, customizable interface.
SCTI-D1 指标简介
SCTI-D1(智能综合交易指标 - 日线版)是一款功能全面的交易工具,专为需要深度、灵活性和清晰市场分析的专业交易者设计。该指标将多种强大概念融合在一个流畅的工作流程中,包括:
多组EMA系统,可自定义长度和显示
PMA(投影移动平均线),支持均线间填充色
VWAP,可配置锚定周期和偏差带
背离检测,支持MACD和柱状图
成交量分布,支持节点检测(峰值、谷值、最高、最低)
聪明钱概念,包括订单块、公允价值缺口、等高/等低和市场结构转换
无论您交易股票、外汇还是加密货币,SCTI-D1 都能帮助您识别关键水平、跟踪机构资金动向并发现高概率反转信号——所有功能均集成在一个清晰可定制的界面中。
Custom Support & Resistance LevelsThe Smart Auto Trendline Indicator is designed to help traders quickly identify key market trends without the need for manual drawing. It automatically detects swing highs and lows, plots dynamic trendlines, and updates them in real-time as price evolves.
This tool is especially useful for traders who rely on trendline breakouts, pullback entries, or reversal confirmations. By simplifying chart analysis, it saves time and ensures more consistent results.
Key Features:
🔹 Automatic detection of valid swing highs and lows
🔹 Dynamic trendline plotting (auto-adjusts as price moves)
🔹 Highlights potential breakout and breakdown zones
🔹 Works on all timeframes and instruments (Forex, Stocks, Indices, Crypto)
🔹 Clean, non-intrusive design to keep charts clear
🔹 Customizable settings (line color, style, sensitivity)
How to Use:
Apply the indicator to your chart.
Observe automatically drawn trendlines.
Watch for breakouts above/below trendlines for trade entries.
Use in combination with other tools like RSI, MACD, or support/resistance for stronger confirmation.
Best For:
Breakout traders
Swing traders
Trend followers
Forex, Stocks, Crypto, Indices
Constance Brown Composite Index EnhancedWhat This Indicator Does
Implements Constance Brown's copyrighted Composite Index formula (1996) from her Master's thesis - a breakthrough oscillator that solves the critical problem where RSI fails to show divergences in long-horizon trends, providing early warning signals for major market reversals.
The Problem It Solves
Traditional RSI frequently fails to display divergence signals in Global Equity Indexes and long-term charts, leaving asset managers without warning of major price reversals. Brown's research showed RSI failed to provide divergence signals 42 times across major markets - failures that would have been "extremely costly for asset managers."
Key Components
Composite Line: RSI Momentum (9-period) + Smoothed RSI Average - the core breakthrough formula
Fast/Slow Moving Averages: Trend direction confirmation (13/33 periods default)
Bollinger Bands: Volatility envelope around the composite signal
Enhanced Divergence Detection: Significantly improved trend reversal timing vs standard RSI
Research-Proven Performance
Based on Brown's extensive study across 6 major markets (1919-2015):
42 divergence signals triggered where RSI showed none
33 signals passed with meaningful reversals (78% success rate)
Only 5 failures - exceptional performance in monthly/2-month timeframes
Tested on: German DAX, French CAC 40, Shanghai Composite, Dow Jones, US/Japanese Government Bonds
New Customization Features
Moving Average Types: Choose SMA or EMA for fast/slow lines
Optional Fills: Toggle composite and Bollinger band fills on/off
All Periods Adjustable: RSI length, momentum, smoothing periods
Visual Styling: Customize colors and line widths in Style tab
Default Settings (Original Formula)
RSI Length: 14
RSI Momentum: 9 periods
RSI MA Length: 3
SMA Length: 3
Fast SMA: 13, Slow SMA: 33
Bollinger STD: 2.0
Applications
Long-term investing: Monthly/2-month charts for major trend changes
Elliott Wave analysis: Maximum displacement at 3rd-of-3rd waves, divergence at 5th waves
Multi-timeframe: Pairs well with MACD, works across all timeframes
Global markets: Proven effective on equities, bonds, currencies, commodities
Perfect for serious traders and asset managers seeking the proven mathematical edge that traditional RSI cannot provide.
Fractals + FVG [Combined]Звісно, ось варіант опису англійською, який можна використати для публікації індикатора в TradingView.
Description
This script combines two powerful and widely-used trading concepts into a single, comprehensive indicator: Bill Williams Fractals with dynamic support/resistance lines and Fair Value Gaps (FVG) based on the popular logic from LuxAlgo.
The goal is to provide a cleaner chart by merging two essential tools, allowing traders to analyze market structure and imbalances simultaneously.
Features
1. Williams Fractals with Invalidation Lines
This part of the indicator identifies classic Bill Williams fractals and enhances them with a unique visualization feature.
Fractal Detection: Automatically identifies both bullish (bottom) and bearish (top) fractals. You can choose between a 3-bar or 5-bar pattern in the settings.
Dynamic S/R Lines: A horizontal line is automatically drawn from every confirmed fractal, acting as a potential support or resistance level.
Automatic Invalidation: A line is considered "invalidated" or breached when the body of a candle closes past it. When this happens, the line stops extending, changes its color to the "invalidated" color, and remains on the chart as a historical reference. This provides a clear, objective signal that a level has been broken.
Customization: You can fully customize the colors for the support, resistance, and invalidated lines to match your chart theme.
2. Fair Value Gaps (FVG) / Imbalance
This module incorporates the robust FVG detection logic from LuxAlgo to automatically identify and display market imbalances.
FVG Detection: Highlights bullish and bearish Fair Value Gaps on the chart with colored boxes, representing inefficiencies in price delivery.
Automatic Mitigation: The FVG boxes are automatically removed from the chart once the price has "mitigated" or filled the gap, keeping your workspace clean and focused on active imbalances.
Multi-Timeframe (MTF): You can set the indicator to find and display FVGs from a higher timeframe directly on your current chart.
Dashboard: An optional on-screen dashboard provides a quick summary of the total count of bullish/bearish FVGs and the percentage that have been mitigated.
Full Customization: Control the colors of FVG boxes, extend their length, and configure other visual style settings.
How to Use
Fractal Lines: Use the active support and resistance lines as key levels for potential bounces or breaks. A line's invalidation can serve as confirmation of a shift in market structure.
FVG Zones: Fair Value Gaps often act as "magnets" for price. Use these zones as potential targets for your trades or as areas of interest for entries when price retraces to fill the imbalance.
Combined Strategy: The true power of this indicator comes from combining both concepts. For example, a bullish FVG forming near a key fractal support level can create a high-probability confluence zone for a long entry. Similarly, a break and invalidation of a fractal resistance line might signal that price is heading towards the next bearish FVG above.
This indicator is a tool for analysis and should be used in conjunction with your own trading strategy and risk management rules.
CVD Polarity Indicator (With Rolling Smoothed)📊 CVD Polarity Indicator (with Rolling Smoothing)
Purpose
The CVD Polarity Indicator combines Cumulative Volume Delta (CVD) with price bar direction to measure whether buying or selling pressure is in agreement with price action. It then smooths that signal over time, making it easier to see underlying volume-driven market trends.
This indicator is essentially a volume–price agreement oscillator:
- It compares price direction with volume delta (CVD).
- Translates that into per-bar polarity.
- Smooths it into a rolling sum for clarity.
- Adds a short EMA to highlight turning points.
The end result: a tool that helps you see when price action is backed by real volume flows versus when it’s running on weak participation.
__________________________________________________________________________________
1. Cumulative Volume Delta (CVD)
What it is:
CVD is the cumulative sum of buying vs. selling pressure measured by volume.
- If a bar closes higher than it opens → that bar’s volume is treated as buying pressure (+volume).
- If a bar closes lower than it opens → that bar’s volume is treated as selling pressure (–volume).
Rolling version:
Instead of accumulating indefinitely (which just creates a line that trends forever), this indicator uses a rolling sum over a user-defined number of bars (cumulation_length, default 14).
- This shows the net delta in recent bars, making the CVD more responsive and localized.
2. Bar Direction vs. CVD Change
Each bar has two pieces of directional information:
1. Bar direction: Whether the candle closed above or below its open (close - open).
2. CVD change: Whether cumulative delta increased or decreased from the prior bar (cvd - cvd ).
By comparing these two:
- Agreement (both up or both down):
→ Polarity = +volume (if bullish) or –volume (if bearish).
- Disagreement (bar up but CVD down, or bar down but CVD up):
→ Polarity flips sign, signaling divergence between price and volume.
Thus, raw polarity = a per-bar measure of whether price action and volume delta are in sync.
3. Polarity Smoothing (Rolling Polarity)
- Problem with raw polarity:
It flips bar-to-bar and looks very jagged — not great for seeing trends.
- Solution:
The indicator applies a rolling sum over the past polarity_length bars (default 14).
- This creates a smoother curve, representing the net polarity over time.
- Positive values = net bullish alignment (buyers stronger).
- Negative values = net bearish alignment (sellers stronger).
Think of it like an oscillator showing whether buyers or sellers have had control recently.
4. EMA Smoothing
Finally, a 10-period EMA is applied on top of the rolling polarity line:
- This further reduces noise.
- It helps highlight shifts in the underlying polarity trend.
- Crossovers of the polarity line and its EMA can serve as trade signals (bullish/bearish inflection points).
________________________________________________________________________________
How to Read It
1. Polarity above zero → Recent bars show more bullish agreement between price and volume.
2. Polarity below zero → Recent bars show more bearish agreement.
3. Polarity diverging from price → If price goes up but polarity trends down, it signals weakening buying pressure (potential reversal).
4. EMA crossovers →
- Polarity crossing above its EMA = bullish momentum shift.
- Polarity crossing below its EMA = bearish momentum shift.
Practical Use Cases
- Trend Confirmation
Use polarity to confirm whether a price move is supported by volume. If price rallies but
polarity stays negative, the move is weak.
- Divergence Signals
Watch for divergences between price trend and polarity trend (e.g., higher highs in price but
lower highs in polarity).
- Momentum Shifts
Use EMA crossovers as signals that the underlying balance of buying/selling has flipped.
Smoothed ROC adjusted by Linearity (Clenow-style)SROC adjusted by Linearity of the trend. Targets smoother trends.
Offset Strike LinesOffset Strike Lines (OSL) is a tool designed to plot strike-based grid levels by offsetting one symbol against another. It compares two instruments (for example, futures vs. index) and projects evenly spaced horizontal lines above and below a calculated reference price. Each line is annotated with the adjusted counter-symbol price, making it easy to visualize relative levels across markets. Customization options include interval size, number of lines, text size, line and text colors — giving traders a clear, flexible framework for mapping out strike zones and price relationships.
OHLC Lines – Yesterday & Today (Minimalist Option)This indicator draws horizontal lines representing the Open, High, Low, and Close (OHLC) levels of yesterday and today directly on your chart. It automatically updates each day, showing only the lines for the previous day and the current day, keeping your chart clean and focused.
Features:
Display Yesterday’s OHLC levels.
Display Today’s OHLC levels.
Optional Minimalist Mode with customizable color, width, and line style.
Lines automatically update each day and remove old lines.
Fully customizable colors, visibility, and line width for each OHLC level.
Use Case:
Perfect for traders who want to monitor key daily price levels, identify support/resistance zones, or incorporate OHLC levels into intraday strategies.