QQE MODADDED QQE WEIGHTED OSCILLATOR to the QQE MOD indicator. The oscillator has a fast line that crosses the slow line. As the fast crosses above the slow line this is a long situation and vice versa for a short situation. The weighted Oscillator is a deriviation by LuxAlgo. The QQE mod portion was published by Colinmck
Wskaźniki i strategie
QQE + Signals RNEdited this to do away with larged signals of long and short to small triangles labeld only with QQE text
PTST – Distance from 66-Day LowThis simple yet powerful indicator shows how far the current price is from the lowest low of the last 66 trading days, expressed as a percentage.
🔍 Why use this?
• Identify overextended downtrends or potential bounce zones
• Spot stocks forming major bottoms
• Use it as a mean-reversion or strength filter
✅ Features
• Customizable lookback (default: 66 days)
• Clean, clutter-free plot
• Works on any timeframe and asset
Crypto Spot Volume Ratio**Overview**
This TradingView Pine Script v7 indicator computes and visualizes each exchange’s spot‐volume share relative to the average across ten major venues. By plotting ten “volume coefficients” around a baseline of 1, you immediately see which exchanges are trading above or below the aggregate average in each bar (timeframe period).
---
## 1. Data Sources
The script pulls spot trading volume for the current symbol (e.g. BTC/USDT, ETH/USDT, SOL/USDT, etc.) from these ten exchanges:
* Binance
* OKX
* Bybit
* KuCoin
* Gate.io
* HTX
* Kraken (USD pair)
* Coinbase (USD pair)
* Bitstamp (USD pair)
* Bitfinex (USD pair)
For USD-quoted venues (Coinbase, Kraken, Bitstamp, Bitfinex), it automatically converts the symbol suffix from “USDT” to “USD.”
---
## 2. Calculation Steps
1. **Fetch Volumes**
Using `request.security`, the script retrieves `volume` from each exchange’s contract at the chart’s timeframe.
2. **Sum and Average**
* **Total Volume (`sumVol`)** = sum of all ten exchanges’ volumes.
* **Average Volume (`avgVol`)** = `sumVol / 10‘.
3. **Compute Coefficients**
For each exchange *i*,
A coefficient > 1 means that exchange’s volume is above the ten‐exchange average; < 1 means below average.
4. **Rendering**
* **Table**: A horizontal row in the top‐right corner lists each enabled exchange’s coefficient (formatted to two decimals).
* **Plots**: Ten overlaid line plots show each exchange’s coefficient time series. A dashed horizontal line at **1** marks the average baseline.
---
## 3. Configuration Options
In the indicator’s settings panel, you can toggle **“Show …”** for any of the ten exchanges. Disabling an exchange will hide both its table entry and its plotted line—but does **not** change the average calculation (which always divides by 10).
---
## 4. Interpretation & Significance
* **Relative Activity**: By normalizing each venue to the ten‐exchange average, you spot shifts in where volume is concentrated.
* **Liquidity Insights**: Exchanges consistently above 1 may offer deeper liquidity, tighter spreads, or attract more order flow. Those below 1 may lag on volume, signaling lower activity or potential outages.
* **Arbitrage & Flow Monitoring**: Sudden spikes on a particular exchange (coefficient >> 1) can indicate localized buying/selling pressure, useful for spotting arbitrage windows, large order flows, or exchange-specific events.
* **Market Health**: Tracking the dispersion of these coefficients over time gives you a quick visual of how balanced or skewed the overall market activity is across venues.
---
## 5. How It Works in Practice
1. **Attach** this indicator to any USDT or USD spot chart (e.g., BTCUSDT, ETHUSDT).
2. **Observe** which exchange lines rise above the dashed **1** line—those venues are currently trading more volume than the average of the ten.
3. **Use** the table to see exact coefficient values each bar.
4. **Toggle** exchanges on/off to focus on specific venues without affecting the universal average baseline.
By comparing ten exchanges on a single pane, you gain real-time clarity on where crypto liquidity and activity are most intense—and where it temporarily wanes—empowering more informed trading, arbitrage strategies, and market‐structure analysis.
Lokie's RSI + VWAP + EMA Scalper [Fresh Edition]Lokie’s RSI + VWAP + EMA Scalper
Built for fast, smart scalping on 1–5 min charts. Combines RSI momentum, EMA crossovers, and VWAP zone bias to highlight clean buy/sell entries.
No FOMO signals. No fluff. Just tactical precision.
Perfect for momentum traders who want clarity, not clutter.
By DerekFWIN
Volume Dominance (Multi-Timeframe)Volume dominance is a mathematical concept i invented by separating up volume and down volume, and replacing the opposing elements in the averaging arrays with zeroes.
positive volume dominance is calculated by taking the average of volumes with a positive price direction over a period. for every volume with a negative price direction within the period, a zero is added to the averaging array.
Dpv = sum(upVol + (dnVol * 0)) / length
Dnv = sum(dnVol + (upVol * 0)) / length
Dpv = Dominance of Positive volume
Dnv = Dominance of Negative volume
upVol = total volume of upward filtered candles within length array
dnVol = total volume of downward filtered candles within length array
the user can see positive and negative volume dominance and read the label at the end of the plot to see the breadth of the dominance gap.
the user can select between using EMA and SMA to compute the dominance averages.
when the yellow center line moves with the change of a dominance line, it indicates strong directional force.
Lum3n Reversal IndicatorLum3n Reversal Indicator
The Lum3n Reversal Indicator is a powerful tool designed to detect high-probability reversal zones by combining candlestick patterns, momentum shifts, volume spikes, and trend confirmation. This script helps traders identify early turning points backed by smart logic—not just noise.
Core Features
Candlestick Pattern Detection
Recognizes over 18 classic bullish and bearish reversal patterns, including engulfing, harami, morning/evening star, tweezer tops/bottoms, and more.
Smart Buy/Sell Logic
Filters out weak signals using RSI thresholds, moving average distance, and high-volume confirmation.
Trend Confirmation with StochRSI
Uses a smoothed Stochastic RSI engine to confirm when a pattern aligns with broader momentum.
Halo Pulse Markers
Highlights ultra-strong reversal setups with high confidence scores and visual pulse effects.
Customizable Support Levels
Set personalized support zones to refine entry timing and accuracy.
Gradient Candle Coloring
Smooth candle color transitions based on momentum and trend strength for a clean visual experience.
Signal Toggle Option
Show or hide buy/sell labels for a less cluttered chart.
How to Use:
Use standard signals for early entries and confluence.
Wait for Halo signals (high score + volume + trend) for stronger conviction.
Combine with your existing support/resistance or smart money concepts for optimal results.
Effective across multiple timeframes from 15-minute to daily charts.
52-Week High and 30-Day Highshows 52-week high and 30-day high lines on the chart.
It is used to see the price up movement and confirms that the current price is lower than last 30 days price
Nasdaq Market Direction ProbabilitiesA table in the bottom-left corner showing bullish, bearish, and neutral probabilities for Nasdaq market direction, calculated from weighted indicators (moving averages, RSI, volume trend, futures change, and sentiment).
A label on the chart with a recommendation ("Long", "Short", or "Monitor") based on the highest probability.
A histogram of the bullish probability in a separate pane.
The probabilities update on each confirmed bar, using the chart’s timeframe (ideally 60 minutes).
Break Above Real Bearish Open// This indicator is designed to help identify precise intraday entry points on lower timeframes.
// It tracks the most recent valid bearish candle—defined as a red candle whose close is lower than the low of the most recent bullish candle.
// When the price breaks above the open of that bearish candle with a bullish candle, a "Break↑" signal is shown.
// Minor pullback candles within uptrends are filtered out to reduce noise.
// The alert only triggers once per valid bearish setup, avoiding redundant signals.
// Ideal for detecting breakout opportunities after pullbacks in intraday trending markets.
// 이 인디케이터는 장중 분봉 기준에서 정밀한 진입 타이밍을 포착하는 데 도움을 줍니다.
// 최근 형성된 유효한 음봉(가장 최근 양봉의 저가보다 종가가 낮은 음봉)을 추적하며,
// 해당 음봉의 시가를 돌파하는 양봉이 등장할 경우, "Break↑" 신호를 차트에 표시합니다.
// 상승 중의 사소한 눌림 음봉은 자동으로 걸러내어 노이즈를 최소화합니다.
// 하나의 음봉에 대해 알림은 단 한 번만 발생하며, 중복되지 않도록 설계되어 있습니다.
// 분봉 흐름 속 눌림목 이후 돌파 구간을 자동으로 포착하고자 할 때 유용하게 활용할 수 있습니다.
Crypto Sentiment + Correlation📊 Crypto Sentiment + Correlation Indicator
Key Features:
- 🔄 Sentiment Aggregation: Measures price momentum vs moving averages across BTC, LTC, ETH, XRP, and SOL.
- ⚖️ Flexible Weighting Options: Choose between equal weight, market cap weighting, or volume-driven sentiment for tailored insights.
- 📈 Visual Candles & Background Signals: Uses sentiment-based candle overlays and color-coded signals to indicate potential shifts or divergence.
- 📊 BTC Correlation Map: Tracks correlation strength and direction between combined sentiment and Bitcoin’s price movement.
- 🧠 Technical Overlays: EMA and Bollinger Bands help contextualize sentiment trends with traditional indicators.
- 🎨 Stylized SMA Layers: Adds intuitive multi-format SMA visualization with area fill and stepped markers for easy spotting of trend shifts.
Why Use It:
Whether you're swing trading or refining entries on crypto positions, this tool gives you a snapshot of what the “mood” across major coins looks like—are the markets in harmony or diverging from BTC’s path? Use it to stay ahead of trend reversals, spot overextended rallies, or confirm bullish sentiment before you jump in.
NVDA Put Exit Alerts - Enhanced How to Use on These Timeframes:
5-15 min chart:
Look for price rejections or bounces at the weekly/monthly VWAP.
Confirm with CMF above 0.1 (buy pressure) or below -0.1 (sell pressure).
30-min to 1-hour chart:
Use to identify broader intraday swing moves that align with macro VWAP levels.
CMF will act as a filter for volume divergence setups.
Ticker Industry and Competitor LookupThe Ticker Industry and Competitor Lookup is a comprehensive indicator that provides instant access to industry classification data and competitive intelligence for any ticker symbol. Built using the advanced SIC_TICKER_DATA library, this tool delivers professional-grade sector analysis with enterprise-level performance. It's a simple yet great tool for competitor research, sector studies, portfolio diversification, and investment decision-making.
This indicator is a simple tool built on based on our SIC_TICKER_DATA library to demonstrate the use cases of the library. In this case, you enter a ticker and it displays the sector, SIC or Standard Industrial Classification which is a SEC identifier, and more importantly, the competitors that are listed to be in the exact same SIC by SEC.
There isn't much to say about the indicator itself but we strongly recommend checking out the SIC_TICKER_DATA library we just published to learn more about the types of indicators you can build using it.
PietasterThis Pine Script (v6) indicator plots a 111-day Simple Moving Average (SMA) and a 2 * 350-day SMA (equivalent to a 700-day SMA) for Bitcoin's price, displayed on any timeframe. It highlights crossover points with vertical lines: green for bullish crossovers (111-day MA crosses above 700-day MA) and purple for bearish crossovers (111-day MA crosses below 700-day MA). Vertical lines extend 50% above the highest price and 50% below the lowest price at the crossover, ensuring visibility through price action. Labels identify the moving averages for clarity.
SIC_TICKER_DATAThe SIC Ticker Data is an advanced and efficient library for ticker-to-industry classification and sector analysis. Built with enterprise-grade performance optimizations, this library provides instant access to SIC codes, industry classifications, and peer company data for comprehensive market analysis.
Perfect for: Sector rotation strategies, peer analysis, portfolio diversification, market screening, and financial research tools.
The simple idea behind this library is to pull any data related to SIC number of any US stock market ticker provided by SEC in order to see the industry and also see the exact competitors of the ticker.
The library stores 3 types of data: SIC number, Ticker, and Industry name. What makes it very useful is that you can pull any one of this data using the other. For example, if you would like to know which tickers are inside a certain SIC, or what's the SIC number of a specific ticker, or even which tickers are inside a certain industry, you can use this library to pull this data. The idea for data inside this library is to be accessible in any direction possible as long as they're related to each other.
We've also published a simple indicator that uses this library in order to demonstrate the inner workings of this library.
The library stores thousands of tickers and their relevant SIC code and industry for your use and is constantly updated with new data when available. This is a large library but it is optimized to run as fast as possible. The previous unpublished versions would take over 40 seconds to load any data but the final public version here loads the data in less than 5 seconds.
🔍 Primary Lookup Functions
createDataStore()
Initialize the library with all pre-loaded data.
store = data.createDataStore()
getSicByTicker(store, ticker)
Get SIC code for any ticker symbol.
sic = data.getSicByTicker(store, "AAPL") // Returns: "3571"
getIndustryByTicker(store, ticker)
Get industry classification for any ticker.
industry = data.getIndustryByTicker(store, "AAPL") // Returns: "Computer Hardware"
getTickersBySic(store, sic)
Get all companies in a specific SIC code.
software = data.getTickersBySic(store, "7372") // Returns: "MSFT,GOOGL,META,V,MA,CRM,ADBE,ORCL,NOW,INTU"
getTickersByIndustry(store, industry)
Get all companies in an industry.
retail = data.getTickersByIndustry(store, "Retail") // Returns: "AMZN,HD,WMT,TGT,COST,LOW"
📊 Array & Analysis Functions
getTickerArrayBySic(store, sic)
Get tickers as array for processing.
techArray = data.getTickerArrayBySic(store, "7372")
for i = 0 to array.size(techArray) - 1
ticker = array.get(techArray, i)
// Process each tech company
getTickerCountBySic(store, sic)
Count companies in a sector (ultra-fast).
pinescripttechCount = data.getTickerCountBySic(store, "7372") // Returns: 10
🎯 Utility Functions
tickerExists(store, ticker)
Check if ticker exists in database.
exists = data.tickerExists(store, "AAPL") // Returns: true
tickerInSic(store, ticker, sic)
Check if ticker belongs to specific sector.
isInTech = data.tickerInSic(store, "AAPL", "3571") // Returns: true
💡 Usage Examples
Example 1: Basic Ticker Lookup
// @version=6
import EdgeTerminal/SIC_TICKER_DATA/1 as data
indicator("Ticker Analysis", overlay=true)
store = data.createDataStore()
currentSic = data.getSicByTicker(store, syminfo.ticker)
currentIndustry = data.getIndustryByTicker(store, syminfo.ticker)
if barstate.islast and currentSic != "NOT_FOUND"
label.new(bar_index, high, syminfo.ticker + " SIC: " + currentSic + " Industry: " + currentIndustry)
Example 2: Sector Analysis
// @version=6
import EdgeTerminal/SIC_TICKER_DATA/1 as data
indicator("Sector Comparison", overlay=false)
store = data.createDataStore()
// Compare sector sizes
techCount = data.getTickerCountBySic(store, "7372") // Software
financeCount = data.getTickerCountBySic(store, "6199") // Finance
healthCount = data.getTickerCountBySic(store, "2834") // Pharmaceutical
plot(techCount, title="Tech Companies", color=color.blue)
plot(financeCount, title="Finance Companies", color=color.green)
plot(healthCount, title="Health Companies", color=color.red)
Example 3: Peer Analysis
// @version=6
import EdgeTerminal/SIC_TICKER_DATA/1 as data
indicator("Find Competitors", overlay=true)
store = data.createDataStore()
currentSic = data.getSicByTicker(store, syminfo.ticker)
if currentSic != "NOT_FOUND"
competitors = data.getTickersBySic(store, currentSic)
peerCount = data.getTickerCountBySic(store, currentSic)
if barstate.islast
label.new(bar_index, high, "Competitors (" + str.tostring(peerCount) + "): " + competitors)
Example 4: Portfolio Sector Allocation
// @version=6
import EdgeTerminal/SIC_TICKER_DATA/1 as data
indicator("Portfolio Analysis", overlay=false)
store = data.createDataStore()
// Analyze your portfolio's sector distribution
portfolioTickers = array.from("AAPL", "MSFT", "GOOGL", "JPM", "JNJ")
sectorCount = map.new()
for i = 0 to array.size(portfolioTickers) - 1
ticker = array.get(portfolioTickers, i)
industry = data.getIndustryByTicker(store, ticker)
if industry != "NOT_FOUND"
currentCount = map.get(sectorCount, industry)
newCount = na(currentCount) ? 1 : currentCount + 1
map.put(sectorCount, industry, newCount)
🔧 Advanced Feature
You can also bulk load data for large data sets like this:
// Pre-format your data as pipe-separated string
bulkData = "AAPL:3571:Computer Hardware|MSFT:7372:Software|GOOGL:7372:Software"
store = data.createDataStoreFromBulk(bulkData)
Fusion AI IndicatorWhat is Fusion AI?
The Fusion AI Indicator blends three proven momentum & mean-reversion signals into a single composite “AI Score.” By normalizing and weighting EMA crossovers, RSI bias and MACD momentum, you get one clean line that captures multi-factor strength shifts in real time—plus optional price-chart arrows and built-in alerts.
How it works
Fast vs. Slow EMA (40%)
(EMA(fastLen) – EMA(slowLen)) / EMA(slowLen)
RSI Deviation (30%)
(RSI(rsiLen) – 50) / 50
MACD Momentum (30%)
(MACD.line – MACD.signal) / ATR(14)
AI Score = 0.4 · EMA + 0.3 · RSI + 0.3 · MACD
Thresholds
Buy when AI Score crosses up through +Threshold
Sell when it crosses down through –Threshold
Default Inputs (tuned for balanced signals)
Fast MA Length: 12
Slow MA Length: 26
RSI Length: 14
MACD Fast EMA: 12
MACD Slow EMA: 26
MACD Signal Smoothing: 9
AI Score Threshold: 0.30
Show Overlay Arrows: ✔️
Alert on Bar Close Only: ✔️
(You can lower Threshold toward 0.10–0.20 for more frequent signals in quieter markets.)
Recommended Markets & Timeframes
Bitcoin (BTCUSD) on 1 H, 4 H – captures crypto swings
Ethereum (ETHUSD) on 1 H, 4 H
AAPL, TSLA, SPY on 15 M, 1 H – ideal for intraday setups
How to Add Alerts
Add the indicator to your chart.
Open Create Alert → Condition →
Fusion AI Indicator with Alerts & Overlay → choose Buy Signal or Sell Signal.
Set Frequency to Once per bar close (default) or Once per bar.
Paste a custom message or use the default:
“Fusion AI: Bullish crossover detected”
“Fusion AI: Bearish crossunder detected”
Usage Tips
Combine with volume filters or support/resistance zones for higher-probability entries.
Use the gradient-colored subchart to spot building momentum even before arrows appear.
Back-test threshold levels per asset: volatility will dictate whether 0.30 is too loose or too tight.
Enjoy smoother, multi-factor signals in one indicator—Fusion AI does the math so your eyes can focus on the trade.
Live 30-Point Horizontal Lines with Price LabelsLive 30-Point Horizontal Lines with Price Labels for upper and below current price
USDT + USDC DominanceUSDT and USDC Dominance: This refers to the combined market capitalization of Tether (USDT) and USD Coin (USDC) as a percentage of the total cryptocurrency market capitalization. It measures the proportion of the crypto market held by these stablecoins, which are pegged to the US dollar. High dominance indicates a "risk-off" sentiment, where investors hold stablecoins for safety during market uncertainty. A drop in dominance suggests capital is flowing into riskier assets like altcoins, often signaling a bullish market or the start of an "alt season."
Kalman Moving Average For LoopKey Features of the Indicator:
Flexible Moving Average Calculation (calcMovingAverage):Description: Allows users to select from 10 moving average types (SMA, EMA, DEMA, TEMA, WMA, VWMA, SMMA, HMA, LSMA, ALMA) to process the input price source (pricesource, default: close).
Parameters:
maType: User selects the moving average type (default: HMA).
period: Length of the moving average (default: 14).
almaSigma: Sigma parameter for ALMA (default: 5).
Purpose: Provides versatility in analyzing price trends, with the chosen moving average (maValue) used for comparison with the smoothed Kalman filter output.
Kalman Filter for Price Smoothing:
Description:
Applies a Kalman filter to the price source to produce a filtered price (kalmanFilteredPrice), which is further smoothed using an HMA to create smoothedKalmanPrice.
Parameters:
process_noise: Controls system model noise (default: 0.01).
measurement_noise:
Controls measurement noise (default: 3).
N: Filter order, determining the number of state estimates (default: 3).
smooth_period: HMA period for smoothing kalmanFilteredPrice (default: 9).
Purpose: Reduces noise in price data, providing a smoother trend line for signal generation and plotting.
Historical Analysis with For-Loop:
Description: Uses a for-loop to calculate the average of calcMovingAverage values over a user-defined historical range (from to to_) for historical bars of the price source (pricesource ).
Parameters:
from: Start of the historical range (default: 1).
to_: End of the historical range (default: 25).
Purpose: Computes an average moving average (avgMa) over the specified range to compare with the smoothed Kalman price for signal generation.
Error Handling and Robustness:
Description: Includes checks for na values in the for-loop to ensure only valid calcMovingAverage values contribute to the average (avgMa). Resets signal and plot variables each bar to prevent carryover.
Purpose: Ensures reliable calculations and prevents errors from invalid data.
Correlation Coefficient with MA & BB中文版介紹
相關係數、移動平均線與布林帶指標 (Correlation Coefficient with MA & BB)
這個 Pine Script 指標是一款強大的工具,旨在幫助交易者和投資者深入分析兩個市場標的之間的關係強度與方向,並結合移動平均線 (MA) 和布林帶 (BB) 來進一步洞察這種關係的趨勢和波動性。
無論您是想尋找配對交易機會、管理投資組合風險,還是僅僅想更好地理解市場動態,這個指標都能提供有價值的見解。
指標特色與功能:
動態相關係數計算:
您可以選擇任何您想比較的股票、商品或加密貨幣代號(例如,預設為 GOOG)。
指標會自動計算當前圖表(主數據源,預設為收盤價)與您指定標的之間的相關係數。
相關係數值介於 -1 (完美負相關) 至 1 (完美正相關) 之間,0 表示無線性關係。
視覺化呈現相關係數線,並標示 1、0、-1 參考水平線,同時填充完美相關區間,讓您一目了然。
特別之處:程式碼中包含了 ticker.modify,確保比較標的數據考慮了股息調整或延長交易時段,使相關性分析更加精準。
相關係數的移動平均線 (MA):
為了平滑相關係數的短期波動,指標提供了多種移動平均線類型供您選擇,包括:SMA、EMA、WMA、SMMA。
您可以設定計算 MA 的週期長度(預設 20 週期)。
這條 MA 線有助於識別相關係數的長期趨勢,判斷兩者關係是趨於增強還是減弱。
相關係數的布林帶 (BB):
將布林帶應用於相關係數,以衡量其波動性和相對高低水平。
中軌與您選擇的移動平均線保持一致。
上軌和下軌則根據相關係數的標準差和您設定的 Z 值(預設 2.0 倍標準差)動態調整。
布林帶可以幫助您識別相關係數何時處於極端水平,可能預示著未來會回歸均值。
如何運用這個指標?
配對交易策略:當兩個通常高度相關的資產,其相關係數短期內顯著偏離平均水平(例如,一個資產價格上漲而另一個原地踏步),您可能可以考慮利用此「失衡」進行配對交易。
投資組合多元化:了解不同資產之間的相關性,有助於構建更穩健的投資組合,避免過度集中於同向變動的資產,有效分散風險。
市場趨勢洞察:透過觀察相關係數的趨勢和波動,您可以更好地理解不同市場板塊或資產類別之間的聯動性,為您的宏觀經濟分析提供數據支持。
請注意,相關性不等於因果性。使用此指標時,請結合您的整體交易策略、宏觀經濟分析以及其他技術指標進行綜合判斷。
English Version Introduction
Correlation Coefficient with Moving Average & Bollinger Bands Indicator (Correlation Coefficient with MA & BB)
This Pine Script indicator is a powerful tool designed to help traders and investors deeply analyze the strength and direction of the relationship between two market instruments. It integrates Moving Averages (MA) and Bollinger Bands (BB) to further insight into the trend and volatility of this relationship.
Whether you're looking for pair trading opportunities, managing portfolio risk, or simply aiming to better understand market dynamics, this indicator can provide valuable insights.
Indicator Features & Functionality:
Dynamic Correlation Coefficient Calculation:
You can select any symbol you wish to compare (e.g., default is GOOG), be it stocks, commodities, or cryptocurrencies.
The indicator automatically calculates the correlation coefficient between the current chart (main data source, default is close price) and your specified symbol.
Correlation values range from -1 (perfect negative correlation) to 1 (perfect positive correlation), with 0 indicating no linear relationship.
It visually plots the correlation line, marks 1, 0, -1 reference levels, and fills the perfect correlation zone for clear visualization.
Special Feature: The code includes ticker.modify, ensuring that the comparative symbol's data accounts for dividend adjustments or extended trading hours, leading to more precise correlation analysis.
Moving Average (MA) for Correlation:
To smooth out short-term fluctuations in the correlation coefficient, the indicator offers multiple MA types for you to choose from: SMA, EMA, WMA, SMMA.
You can set the length of the MA period (default 20 periods).
This MA line helps identify the long-term trend of the correlation coefficient, indicating whether the relationship between the two instruments is strengthening or weakening.
Bollinger Bands (BB) for Correlation:
Bollinger Bands are applied to the correlation coefficient itself to gauge its volatility and relative high/low levels.
The middle band aligns with your chosen Moving Average.
The upper and lower bands dynamically adjust based on the correlation coefficient's standard deviation and your set Z-score (default 2.0 standard deviations).
Bollinger Bands can help you identify when the correlation coefficient is at extreme levels, potentially signaling a future reversion to the mean.
How to Utilize This Indicator:
Pair Trading Strategies: When two typically highly correlated assets show a significant short-term deviation from their average correlation (e.g., one asset's price rises while the other stagnates), you might consider exploiting this "imbalance" for pair trading.
Portfolio Diversification: Understanding the correlation between different assets helps build a more robust investment portfolio, preventing over-concentration in co-moving assets and effectively diversifying risk.
Market Trend Insight: By observing the trend and volatility of the correlation coefficient, you can better understand the联动 (interconnectedness) between different market sectors or asset classes, providing data support for your macroeconomic analysis.
Please note that correlation does not imply causation. When using this indicator, combine it with your overall trading strategy, macroeconomic analysis, and other technical indicators for comprehensive decision-making.
Linear Regression Channel – shiftableThis is the built-in Linear Regression Channel with an extra parameter to shift it back N days.