Multi-Timeframe Trend Analysis [Aaron Diaz]🧠 Indicator Review: Multi-Timeframe Trend Analysis
📌 What Does It Do?
The "Multi-Timeframe Trend Analysis" indicator by Aaron Diaz performs a trend assessment across multiple timeframes using Exponential Moving Averages (EMAs) as internal logic. Instead of plotting EMAs on the chart, this version only displays a clean dashboard that shows whether each EMA is trending up or down, keeping your chart clutter-free.
🧾 Based on the original indicator by BigBeluga, this version was modified by Aaron Diaz to remove the EMA plots and focus solely on actionable trend information via a table.
🔍 How It Works
It calculates 5 different EMAs (default: 20, 30, 40, 50, 60 periods).
For each EMA, it checks if it’s trending up (EMA > EMA 2 candles ago) or down.
These signals are then evaluated across 5 customizable timeframes (e.g., 1h, 2h, 3h, etc.).
A dashboard/table appears on the top-right corner of your screen, showing:
🢁 = Uptrend for that EMA and timeframe.
🢃 = Downtrend.
It uses color codes (green = bullish, purple = bearish) to make trend reading fast and intuitive.
🧱 Technical Foundations
Exponential Moving Averages (EMAs):
EMAs give more weight to recent prices, making them highly responsive to current trends.
Widely used to detect momentum and reversals.
Multi-Timeframe Analysis (MTF):
Helps confirm trend strength by analyzing multiple timeframes.
Reduces false signals and noise found in a single timeframe.
📈 Suggested Strategy: "MTF Trend Confluence"
🎯 Goal:
Only trade when multiple timeframes confirm the same directional bias.
✅ Long Entry Rules:
At least 3 out of 5 timeframes must show 🢁 on at least 4 of the 5 EMAs.
Confirm entry with:
A bullish candlestick pattern.
A breakout above recent resistance.
Optional filter: RSI or MACD not in overbought zone.
🔻 Short Entry Rules:
At least 3 timeframes must show 🢃 on at least 4 EMAs.
Confirm with:
A bearish candle or breakdown below support.
Optional filter: RSI or MACD not in oversold zone.
🛑 Exit Rules:
Take Profit at key support/resistance levels or at a 2:1 risk-reward ratio.
Stop Loss below/above the last swing or fixed % (e.g., 1.5–2%).
Exit early if the dashboard shows a shift in trend across key timeframes.
🧪 Example Use Case
You're trading on a 15-minute chart:
The dashboard shows 🢁 across 1h, 2h, and 3h timeframes for EMA20, EMA30, and EMA40.
Price breaks a local resistance level.
You enter long and target the next liquidity zone, placing your stop-loss below the most recent swing low.
⚠️ Important Notes
This is not a signal generator—it’s a trend confirmation tool.
Best used for swing or intraday trend trading.
Avoid using it in ranging or sideways markets.
Trend Analizi
NEPALI DASHBOARD NEPALI DASHBORAD - All-In-One Sentiment Dashboard
Overview
The NEPALI DASHBORAD is a comprehensive, all-in-one dashboard designed to give day traders a quick yet powerful overview of market sentiment. Instead of cluttering your chart with dozens of individual indicators, this tool consolidates the signals from 11 different technical indicators into a single, easy-to-read table. It calculates an overall bull/bear sentiment score and provides a trading recommendation based on the confluence of these signals, helping you make more informed decisions at a glance.
The dashboard is fully customizable, allowing you to adjust indicator settings, change the table size, and move it to any corner of your chart.
Key Features
Multi-Indicator Analysis: Gathers data from 11 essential indicators covering trend, momentum, volume, and volatility.
Sentiment Score: Calculates a simple "Bull vs. Bear" score to instantly gauge market sentiment.
Actionable Recommendations: Provides a clear trading recommendation (Strong Buy, Buy, Sell, Strong Sell, Hold) based on the strength of the confluence.
Higher Timeframe (HTF) Context: Includes an HTF trend analysis to ensure your trades align with the bigger picture.
Customizable Dashboard: Easily change the size and position of the dashboard to fit your workspace.
How to Use
Check the Market Sentiment: Look at the "Bull vs. Bear" score first. A high score (e.g., 8 vs. 3) indicates strong confluence in one direction.
Verify the HTF Trend: Ensure your intended trade direction aligns with the higher timeframe trend for better probability. For example, be cautious about taking "SELL" signals if the HTF Trend is strongly "BULL."
Use the Recommendation as a Guide: The "Recommendation" and "Confidence" % give you a summary of the indicator signals. A "STRONG BUY" or "STRONG SELL" means that a significant majority of the indicators are in agreement.
Drill Down into Indicators: Use the individual indicator statuses in the table to understand why the market sentiment is bullish or bearish. For example, you might see that momentum indicators (RSI, Stoch) are bullish, but trend indicators (MA, MACD) are still lagging.
Combine with Your Strategy: This dashboard is a powerful confirmation tool. Use its signals to confirm entries and exits for your existing trading strategy. Do not use it as a standalone signal provider.
Disclaimer
In simple terms: This is a tool for analysis, not a signal to trade. Your money is your responsibility.
This script is for educational and informational purposes only. I am not a financial advisor; I am just a learner sharing my work. The information and tools provided are not, and should not be construed as, financial advice, an offer, or a solicitation to buy or sell any securities.
Trading and investing in financial markets involve substantial risk of loss and is not suitable for every investor. I do not guarantee the accuracy, completeness, or profitability of this script. All trading decisions you make are your own, and you are solely responsible for any resulting profits or losses.
Always conduct your own research and seek advice from a qualified financial advisor before making any investment decisions. By using this script, you agree that I am not liable for any and all losses you may incur.
Fractal Pullback Market StructureFractal Pullback Market Structure
Author: The_Forex_Steward
License: Mozilla Public License 2.0
The Fractal Pullback Market Structure indicator is a sophisticated price action tool designed to visualize internal structure shifts and break-of-structure (BoS) events with high accuracy. It leverages fractal pullback logic to identify market swing points and confirm whether a directional change has occurred.
This indicator detects swing highs and lows based on fractal behavior, drawing zigzag lines to connect these key pivot points. It classifies and labels each structural point as either a Higher High (HH), Higher Low (HL), Lower High (LH), or Lower Low (LL). Internal shifts are marked using triangle symbols on the chart, distinguishing bullish from bearish developments.
Break of Structure events are confirmed when price closes beyond the most recent swing high or low, and a horizontal line is drawn at the breakout level. This helps traders validate when a structural trend change is underway.
Users can configure the lookback period that defines the sensitivity of the pullback detection, as well as a timeframe multiplier to align the logic with higher timeframes such as 4H or Daily. There are visual customization settings for the zigzag lines and BoS markers, including color, width, and style (solid, dotted, or dashed).
Alerts are available for each key structural label—HH, HL, LH, LL—as well as for BoS events. These alerts are filtered through a selectable alert mode that separates signals by timeframe category: Low Timeframe (LTF), Medium Timeframe (MTF), and High Timeframe (HTF). Each mode allows the user to receive alerts only when relevant to their strategy.
This indicator excels in trend confirmation and reversal detection. Traders can use it to identify developing structure, validate internal shifts, and anticipate breakout continuation or rejection. It is particularly useful for Smart Money Concept (SMC) traders, swing traders, and those looking to refine entries and exits based on price structure rather than lagging indicators.
Visual clarity, adaptable timeframe logic, and precise structural event detection make this tool a valuable addition to any price action trader’s toolkit.
Trend Weakness Detector via EMAShow Trend Weakness via how far price from EMA. Check avr distance from EMA and if it is less that std than Show as weekness
Average Daily % Change by Weekday📊 Average Daily % Change by Weekday
This script calculates and displays the average daily percentage change for each weekday (Monday through Sunday) based on historical price data. It helps traders analyze which days tend to be bullish or bearish over a selected backtest date range.
✅ Features:
Customizable date range (From Year/Month/Day to To Year/Month/Day)
Calculates average % change for each weekday (Mon–Sun)
Supports assets that trade 7 days (e.g., crypto)
Color-coded outputs (green = positive, red = negative)
Final results shown as a table in the bottom-right corner
Works only on the 1D timeframe (daily)
🧠 How it works:
For each day within the selected date range:
The script calculates the % change as: (Close - Open) / Open * 100
Then, it groups the data by weekday and averages the values
This gives you insight into how each day of the week behaves historically for the current asset.
⚠️ Notes:
This script only works on daily (1D) timeframes.
For most accurate results, use it on assets with long trading history (e.g., BTCUSD).
Designed for educational and statistical analysis purposes.
MP MTF LiquidityMP MTF Liquidity
Multi-Timeframe Liquidity Levels – Automatic High/Low Tracking
This indicator automatically tracks and draws liquidity levels (recent highs and lows) from up to 6 custom timeframes directly on your chart. It’s designed for advanced traders who want to visualize important swing points and liquidity pools across multiple timeframes—ideal for Smart Money Concepts (SMC), ICT, and price action trading.
Key Features:
Multi-Timeframe Support:
Select up to 6 different timeframes (ex: 1H, 4H, Daily, Weekly, etc.), each with separate color and visibility controls.
Real Liquidity (No Repaint):
Levels are only drawn from fully closed bars on each timeframe—no lines from currently forming candles, ensuring accuracy and no forward-looking bias.
Automatic Detection:
Highs and lows are detected automatically. Levels that get swept (price breaks through) are converted to dashed lines for easy visual distinction.
Customizable:
Choose line colors for highs/lows and set the maximum number of active levels per timeframe to keep charts clean.
Extended Lines:
All levels are extended to the right, helping you see how current price interacts with past liquidity.
How It Works:
On every new bar of your chosen higher timeframe(s), the indicator records the high and low of the previous (just-closed) candle.
These levels are extended as rays until price sweeps (crosses) them.
When a level is swept, it is redrawn as a dashed line to highlight liquidity grabs or stop hunts.
No lines are drawn for the “live” bar—only confirmed, closed levels are displayed.
Who is this for?
SMC, ICT, and price action traders seeking high-confidence liquidity zones.
Intraday, swing, and multi-timeframe traders who want an automated, visual edge.
Anyone wanting to avoid repainting or “fake” levels from unfinished candles.
Tip:
Combine this indicator with your favorite order block, fair value gap (FVG), or market structure tools for even greater context and confluence.
Disclaimer:
No indicator guarantees profits. Always use with proper risk management and in conjunction with your trading plan.
Essa - Market Structure & Fibonacci ToolkitOverview
The Essa Market Structure & Fibonacci Toolkit is a comprehensive trading indicator that combines advanced market structure analysis with customizable fibonacci levels and fair value gap detection. It identifies high-probability trading opportunities by detecting confluence zones where multiple technical factors align, providing traders with precise entry and exit points based on institutional trading concepts.
Key Features
📊Market Structure Analysis
Pattern Recognition: Automatically detects Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), Lower Lows (LL)
Change of Character (CHoCH): Identifies trend changes and market structure breaks
Pattern Locking: Fibonacci levels lock to specific swing patterns (LH→LL for bearish, HL→HH for bullish)
Multi-Timeframe Analysis: Analyzes trend strength across multiple timeframes with scoring system
🧮 Custom Fibonacci System
Fully Configurable Levels: Set any percentage (e.g., 25%, 65%, 87.5%) - not limited to traditional levels
Dynamic Labels: Shows your actual percentages, not hardcoded values
Golden Zone Trading: Customizable optimal entry zones between any two fibonacci levels
Auto-Extension: Levels automatically extend as price moves
Distance Tables: Real-time pip distances to nearest fibonacci levels
📈 Fair Value Gap (FVG) Detection
Smart Detection: Identifies bullish and bearish fair value gaps with size filtering
Age Tracking: Shows how long each FVG has been active (bars or time format)
Confluence Highlighting: Enhanced colors when FVGs overlap with fibonacci golden zones
Width Filtering: ATR-based minimum width requirements to filter noise
🎯 Confluence Trading
Multi-Factor Analysis: Combines market structure + fibonacci + FVGs + golden zones
High-Probability Zones: Highlights areas where multiple factors converge
Trend Strength Scoring: 0-100% scoring system based on multiple confluence factors
Smart Alerts: Notifications for high-confluence setups only
⚡ Advanced Features
Trend Analysis Table: Real-time trend bias, strength score, and pattern identification
Adaptive Sensitivity: Automatically adjusts to market volatility using ATR
Professional Alerts: Customizable alerts for structure breaks, golden zone touches, and FVG confluence
Clean Interface: Basic/Advanced settings organization with inline controls
🎨 Visual Excellence
Professional Styling: Clean, institutional-grade visual presentation
Customizable Colors: Full color customization for all elements
Smart Labeling: Context-aware labels that don't overlap
Performance Optimized: Efficient rendering with visual element limits
Perfect for: Swing traders, day traders, and institutional-style traders who want to identify high-probability setups using confluence of market structure, fibonacci levels, and fair value gaps.
Premium Fibonacci Buy/Sell [MasoodPro]OVERVIEW
This script plots Fibonacci Entry Bands, a trend-following and mean-reversion hybrid system built around dynamic volatility-adjusted bands scaled using key Fibonacci levels. It calculates a smoothed basis line and overlays multiple bands at fixed Fibonacci multipliers of either ATR or standard deviation. Depending on the trend direction, specific upper or lower bands become active, offering a clear framework for entry timing, trend identification, and profit-taking zones.
CONCEPTS
The core idea is to use Fibonacci levels—0.618, 1.0, 1.618, and 2.618—as multipliers on a volatility measure to form layered price bands around a trend-following moving average. Trends are defined by whether the basis is rising or falling. The trend determines which side of the bands is emphasized: upper bands for downtrends, lower bands for uptrends. This approach captures both directional bias and extreme price extensions. Take-profit logic is built in via crossovers relative to the outermost bands, scaled by user-selected aggressiveness.
FEATURES
Basis Line – A double EMA smoothing of the source defines trend direction and acts as the central mean.
snapshot
Volatility Bands – Four levels per side (based on selected ATR or stdev) mark the Fibonacci bands. These become visible only when trend direction matches the side (e.g., only lower bands plot in an uptrend).
snapshot
Bar Coloring – Bars are shaded with adjustable transparency depending on distance from the basis, with color intensity helping gauge overextension.
snapshot
Entry Arrows – A trend shift triggers either a long or short signal, with a marker at the outermost band with ▲/▼ signs.
snapshot
Take-Profit Crosses – If price rejects near the outer band (based on aggressiveness setting), a cross appears marking potential profit-taking.
snapshot
Bounce Signals – Minor pullbacks that respect the basis line are marked with triangle arrows, hinting at continuation setups.
snapshot
Customization – Users can toggle bar coloring, signal markers, and select between ATR/stdev as well as take-profit aggressiveness.
Alerts – All major signals, including entries, take-profits, and bounces, are available as alert conditions.
Tt • FVG CandlesAn FVG / Imbalance identifier.
Default color:
• Light grey - Bullish FVG
• Dark grey - Bearish FVG
Ultimate SuperTrend with Support and ResistanceModified ST with Support and resistance levels. This was developed by SAM team to provide a singular indicator to trade in NIFTY. It can also be used in other securities.
Based on the trading style, can be used for Sell and Buy trades. Provide your comments and guidance.
Universal Renko Bars by SiddWolfUniversal Renko Bars or UniRenko Bars is an overlay indicator that applies the logic of Renko charting directly onto a standard candlestick chart. It generates a sequence of price-driven bricks, where each new brick is formed only when the price moves a specific amount, regardless of time. This provides a clean, price-action-focused visualization of the market's trend.
WHAT IS UNIVERSAL RENKO BARS?
For years, traders have faced a stark choice: the clean, noise-free world of Renko charts, or the rich, time-based context of Candlesticks. Choosing Renko meant giving up your favorite moving averages, volume profiles, and the fundamental sense of time. Choosing Candlesticks meant enduring the market noise that often clouds true price action.
But what if you didn't have to choose?
Universal Renko Bars is a revolutionary indicator that ends this dilemma. It's not just another charting tool; it's a powerful synthesis that overlays the pure, price-driven logic of Renko bricks directly onto your standard candlestick chart. This hybrid approach gives you the best of both worlds:
❖ The Clarity of Renko: By filtering out the insignificant noise of time, Universal Renko reveals the underlying trend with unparalleled clarity. Up trends are clean successions of green bricks; down trends are clear red bricks. No more guesswork.
❖ The Context of Candlesticks: Because the Renko logic is an overlay, you retain your time axis, your volume data, and full compatibility with every other time-based indicator in your arsenal (RSI, MACD, Moving Averages, etc.).
The true magic, however, lies in its live, Unconfirmed Renko brick. This semi-transparent box is your window into the current bar's real-time struggle. It grows, shrinks, and changes color with every tick, showing you exactly how close the price is to confirming the trend or forcing a reversal. It’s no longer a lagging indicator; it’s a live look at the current battle between buyers and sellers.
Universal Renko Bars unifies these two powerful charting methods, transforming your chart into a more intelligent, noise-free, and predictive analytical canvas.
HOW TO USE
To get the most out of Universal Renko Bars, here are a few tips and a full breakdown of the settings.
Initial Setup for the Best Experience
For the cleanest possible view, it's highly recommended that you hide the body of your standard candlesticks, that shows only the skelton of the candle. This allows the Renko bricks to become the primary focus of your chart.
→ Double click on the candles and uncheck the body checkbox.
Settings Breakdown
The indicator is designed to be powerful yet intuitive. The settings are grouped to make customization easy.
First, What is a "Tick"?
Before we dive in, it's important to understand the concept of a "Tick." In Universal Renko, a Tick is not the same as a market tick. It's a fundamental unit of price movement that you define. For example, if you set the Tick Size to $0.50, then a price move of $1.00 is equal to 2 Ticks. This is the core building block for all Renko bricks. Tick size here is dynamically determined by the settings provided in the indicator.
❖ Calculation Method (The "Tick Size" Engine)
This section determines the monetary value of a single "Tick."
`Calculation Method` : Choose your preferred engine for defining the Tick Size.
`ATR Based` (Default): The Tick Size becomes dynamic, based on market volatility (Average True Range). Bricks will get larger in volatile markets and smaller in quiet ones. Use the `ATR 14 Multiplier` to control the sensitivity.
`Percentage` : The Tick Size is a simple percentage of the current asset price, controlled by the `Percent Size (%)` input.
`Auto` : The "set it and forget it" mode. The script intelligently calculates a Tick Size based on the asset's price. Use the `Auto Sensitivity` slider to make these automatically calculated bricks thicker (value > 1.0) or thinner (value < 1.0).
❖ Parameters (The Core Renko Engine)
This group controls how the bricks are constructed based on the Tick Size.
`Tick Trend` : The number of "Ticks" the price must move in the same direction to print a new continuation brick. A smaller value means bricks form more easily.
`Tick Reversal` : The number of "Ticks" the price must move in the opposite direction to print a new reversal brick. This is typically set higher than `Tick Trend` (e.g., double) to filter out minor pullbacks and market noise.
`Open Offset` : Controls the visual overlap of the bricks. A value of `0` creates gapless bricks that start where the last one ended. A value of `2` (with a `Tick Reversal` of 4) creates the classic 50% overlap look.
❖ Visuals (Controlling What You See)
This is where you tailor the chart to your visual preference.
`Show Confirmed Renko` : Toggles the solid-colored, historical bricks. These are finalized and will never change. They represent the confirmed past trend.
`Show Unconfirmed Renko` : This is the most powerful visual feature. It toggles the live, semi-transparent box that represents the developing brick. It shows you exactly where the price is right now in relation to the levels needed to form the next brick.
`Show Max/Min Levels` : Toggles the horizontal "finish lines" on your chart. The green line is the price target for a bullish brick, and the red line is the target for a bearish brick. These are excellent for spotting breakouts.
`Show Info Label` : Toggles the on-chart label that provides key real-time stats:
🧱 Bricks: The total count of confirmed bricks.
⏳ Live: How many chart bars the current live brick has been forming. These bars forms the Renko bricks that aren't confirmed yet. Live = 0 means the latest renko brick is confirmed.
🌲 Tick Size: The current calculated value of a single Tick.
Hover over the label for a tooltip with live RSI(14), MFI(14), and CCI(20) data for additional confirmation.
TRADING STRATEGIES & IDEAS
Universal Renko Bars isn't just a visual tool; it's a foundation for building robust trading strategies.
Trend Confirmation: The primary use is to instantly identify the trend. A series of green bricks indicates a strong uptrend; a series of red bricks indicates a strong downtrend. Use this to filter out trades that go against the primary momentum.
Reversal Spotting: Pay close attention to the Unconfirmed Brick . When a strong trend is in place and the live brick starts to fight against it—changing color and growing larger—it can be an early warning that a reversal is imminent. Wait for the brick to be confirmed for a higher probability entry.
Breakout Trading: The `Max/Min Levels` are your dynamic breakout zones. A long entry can be considered when the price breaks and closes above the green Max Level, confirming a new bullish brick. A short entry can be taken when price breaks below the red Min Level.
Confluence & Indicator Synergy: This is where Universal Renko truly shines. Overlay a moving average (e.g., 20 EMA). Only take long trades when the green bricks are forming above the EMA. Combine it with RSI or MACD; a bearish reversal brick forming while the RSI shows bearish divergence is a very powerful signal.
A FINAL WORD
Universal Renko Bars was designed to solve a fundamental problem in technical analysis. It brings together the best elements of two powerful methodologies to give you a clearer, more actionable view of the market. By filtering noise while retaining context, it empowers you to make decisions with greater confidence.
Add Universal Renko Bars to your chart today and elevate your analysis. We welcome your feedback and suggestions for future updates!
Follow me to get notified when I publish New Indicator.
~ SiddWolf
MACD parametrable kylian MACD analysis with indicator on the chart showing bullish and bearish crossover points based on configurable thresholds.
Round Number Levels ProRound Number Levels Pro is a powerful support and resistance indicator that automatically plots psychological price levels on your chart.
What it does:
- Displays major round number levels (100, 200, 300, etc.) with prominent lines
- Shows mid-level lines (50, 150, 250, etc.) for additional reference points
- All lines extend across the entire chart for maximum visibility
- Automatically adjusts levels based on current price action
Key Features:
- Customizable Font Sizes - Large text for main levels, normal for mid-levels
- Clean Black Styling - Professional appearance that works on any chart background
- Flexible Line Styles - Choose solid, dashed, or dotted lines for main and mid levels
- Adjustable Parameters - Control number of levels, rounding increments, and label positioning
- Full Chart Extension - Lines extend both directions for complete price reference
Perfect for:
- Day traders looking for key psychological support/resistance levels
- Swing traders identifying major price zones
- Any trader who uses round numbers as decision points
How to use:
Simply add to your chart and the indicator will automatically plot relevant round number levels. Customize the settings to match your trading style and timeframe.
These psychological levels are where many traders make decisions, often creating natural support and resistance zones in the market.
Quad RSI MTFQuad RSI MTF
it's unique, visually rich, and highly useful for traders who want to understand momentum across different time horizons.
Quad RSI MTF is a custom indicator that plots the Relative Strength Index (RSI) from four different timeframes on one chart pane. It’s designed to help traders spot:
Multi-timeframe momentum alignment
Divergences between short-term and long-term RSI
Early warnings of trend reversals or exhaustion
Overbought/Oversold extremes across timeframes
Four RSI Inputs:
Fully customizable lengths and timeframes (e.g., 1H, Daily, Weekly, Monthly).
Uses request.security() to fetch RSI values from higher/lower timeframes.
Color-coded RSI plots:
Easy to visually differentiate between RSI 1–4.
Helps spot alignment or disagreement between timeframes.
Multi-Level Overbought/Oversold Bands:
Level 1: Traditional RSI zones (70/30)
Level 2: Extreme zones (98/2) to catch euphoria or panic
No repainting:
All values are based on historical RSI closes, ensuring reliability.
QQE MOD + QQE WEIGHTED OSCILLATORQQE MOD WITH QQE WEIGHTED OSCILLATOR added to the same subchart pane. fast line crossing slow line is a signal
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
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.
Trend Confluence Indicator identify potential trend reversals by combining signals from three popular technical indicators: MACD, Stochastic Oscillator, and ADX.
Here's a breakdown of its components and how it defines confluence:
MACD (Moving Average Convergence Divergence):
Purpose: This indicator helps to spot changes in the strength, direction, momentum, and duration of a trend.
Signals:
A bullish MACD signal is generated when the MACD line crosses above its signal line, indicating increasing bullish momentum.
A bearish MACD signal is generated when the MACD line crosses below its signal line, indicating increasing bearish momentum.
Stochastic Oscillator:
Purpose: This momentum indicator compares a security's closing price to its price range over a given period, identifying overbought and oversold conditions. It also shows momentum shifts.
Signals:
A bullish Stochastic signal is typically a crossover of the %K line above the %D line.
A bearish Stochastic signal is a crossover of the %K line below the %D line.
ADX (Average Directional Index):
Purpose: The ADX measures the strength of a trend, not its direction. Higher ADX values indicate a stronger trend, while lower values suggest a weak or ranging market.
Role in Confluence: For reversal signals, the indicator looks for the ADX to be below a specified threshold (defaulting to 25). The idea is that reversals are more likely to occur when the existing trend is weak or the market is consolidating, rather than when a strong trend is in full force.
How Confluence is Currently Defined (Simplified for Debugging):
In its current state (with the debugging simplification active in the Canvas), a signal is generated when:
Bullish Reversal (Trend Up): The MACD line crosses above its signal line AND the Stochastic %K line crosses above its %D line.
Bearish Reversal (Trend Down): The MACD line crosses below its signal line AND the Stochastic %K line crosses below its %D line.
When these simplified conditions are met, the indicator plots "Reversal Up" (▲) or "Reversal Down" (▼) labels directly on your chart. It also plots the individual MACD, Stochastic, and ADX lines on separate sub-panes to help you visualize the underlying indicator movements.
Original (More Comprehensive) Confluence (Commented Out):
The Canvas also contains commented-out code for the original, more stringent confluence conditions. These would have added further filters:
For Bullish Reversal: The Stochastic %K and %D lines would also need to be below the stochOversold level (e.g., 20) when the crossover occurred, and the ADX would need to be below the adxThreshold.
For Bearish Reversal: The Stochastic %K and %D lines would also need to be above the stochOverbought level (e.g., 80) when the crossover occurred, and the ADX would need to be below the adxThreshold.
Once you confirm the indicator is showing signals with the simplified logic, you can uncomment these original lines in the Canvas to activate the more precise confluence criteria, or adjust the input parameters to fine-tune its sensitivity.
Trend Reversal ConfluenceThe "Trend Reversal Confluence Indicator" I just made is designed to identify potential trend reversals by looking for a strong alignment (confluence) of signals from three different technical indicators:
MACD (Moving Average Convergence Divergence): This indicator is used to detect shifts in momentum.
A bullish MACD signal occurs when the MACD line crosses above its signal line.
A bearish MACD signal occurs when the MACD line crosses below its signal line.
Stochastic Oscillator: This momentum indicator identifies overbought and oversold conditions, as well as potential shifts in momentum.
A bullish Stochastic signal is typically a crossover of the %K line above the %D line, especially when both are coming out of oversold territory (below 20).
A bearish Stochastic signal is a crossover of the %K line below the %D line, especially when both are coming out of overbought territory (above 80).
ADX (Average Directional Index): This indicator measures the strength of a trend.
For reversal signals, the indicator looks for the ADX to be below a certain threshold (e.g., 25 by default). This suggests that the current trend is weak or the market is ranging, making it a more opportune time for a reversal to occur rather than a continuation of a strong trend.
How Confluence is Defined (Simplified for Debugging):
Currently, for debugging purposes, the indicator's confluence for a signal is simplified to:
Bullish Reversal: When the MACD line crosses above its signal line AND the Stochastic %K line crosses above its %D line.
Bearish Reversal: When the MACD line crosses below its signal line AND the Stochastic %K line crosses below its %D line.
Original Confluence (Commented Out in the Code):
The original, more stringent confluence conditions (which are currently commented out in the Canvas but can be reactivated) also included:
For Bullish Reversal: The Stochastic %K and %D lines also needed to be below the oversold level (e.g., 20) when the crossover occurred, and the ADX needed to be below the adxThreshold.
For Bearish Reversal: The Stochastic %K and %D lines also needed to be above the overbought level (e.g., 80) when the crossover occurred, and the ADX needed to be below the adxThreshold.
When these combined conditions are met, the indicator plots "Reversal Up" (▲) or "Reversal Down" (▼) labels directly on your chart, indicating a strong confluence of factors suggesting a potential trend change. You can also see the individual indicator plots (MACD, Stochastic, ADX) on separate panes to understand the components of the signal.
Kase Convergence Divergence [BackQuant]Kase Convergence Divergence
The Kase Convergence Divergence is a sophisticated oscillator designed to measure directional market strength through the lens of volatility-adjusted log return structures. Inspired by Cynthia Kase’s work on statistical momentum and price projection ranges, this unique indicator offers a hybrid framework that merges signal processing, multi-length sweep logic, and adaptive smoothing techniques.
Unlike traditional momentum oscillators like MACD or RSI, which rely on static moving average differences, KCD introduces a dual-process system combining:
Kase-style statistical range projection (via log returns and volatility),
A sweeping loop of lookback lengths for robustness,
First and second derivative modes to capture both velocity and acceleration of price movement.
Core Logic & Computation
The KCD calculation is centered on two volatility-normalized transforms:
KSDI Up: Measures how far the current high has moved relative to a past low, normalized by return volatility.
KSDI Down: Measures how far the current low has moved relative to a past high, also normalized.
For every length in a user-defined sweep range (e.g., 25–35), both KSDI_up and KSDI_dn are computed, and their maximum values across the loop are retained. The difference between these two max values produces the raw signal:
KPO (Kase Projection Oscillator): Measures directional skew.
KCD (Kase Convergence Divergence): Defined as KPO – MA(KPO) — similar in spirit to MACD but structurally different.
Users can choose to visualize either the first derivative (KPO) , or the second derivative (KCD) , depending on market conditions or strategy style.
Key Features
✅ Multi-Length Sweep Logic: Improves signal reliability by aggregating statistical range projections across a set of lookbacks.
✅ Advanced Smoothing Modes: Supports DEMA, HMA, TEMA, LINREG, WMA and more for dynamic adaptation.
✅ Dual Derivative Modes: Choose between speed (first derivative) or smoothness (second derivative) to fit your trading regime.
✅ Color-Encoded Signal Bands: Heatmap-style oscillator coloring enhances visual feedback on trend strength.
✅ Candlestick Painting: Optional bar coloring makes it easy to spot trend shifts on the main chart.
✅ Adaptive Fill Zones: Green and red fills between the oscillator and zero line help distinguish bullish and bearish regimes at a glance.
Practical Applications
📈 Trend Confirmation: Use KCD as a secondary confirmation layer after breakout or pullback entries.
📉 Momentum Shifts: Crossover and crossunder of the zero line highlight potential regime changes.
📊 Strategy Filters: Incorporate into algos to avoid trendless or mean-reverting environments.
🧪 Derivative Switching: Flip between KPO and KCD modes depending on whether you want to measure acceleration or deceleration of price flow.
Alerts & Signals
Two built-in alerts help you catch regime shifts in real time:
Long Signal: Triggered when the selected oscillator crosses above zero.
Short Signal: Triggered when it crosses below zero.
These events can be used to generate entries, exits, or trend validation cues in multi-layer systems.
Conclusion
The Kase Convergence Divergence goes beyond traditional oscillators by offering a volatility-normalized, derivative-aware signal engine with enhanced visual dynamics. Its sweeping architecture and dynamic fill logic make it especially powerful for identifying trending environments, filtering chop, and adding statistical rigor to your trading toolkit.
Whether you’re a discretionary trader seeking precision, or a quant looking to model more robust return structures, KCD offers a creative yet analytically grounded solution.
Useful Open Price Lines - Multi-Timeframe SupportDisplay important opening price levels on your chart with this comprehensive indicator.
KEY FEATURES:
✓ Track up to 6 different opening prices simultaneously
✓ Support for intraday time-based opens (any hour:minute)
✓ Higher timeframe opens: Daily, Weekly, Monthly, Quarterly, Semi-Annual, Yearly
✓ Automatic line extension with customizable cutoff
✓ Clean chart option - hide previous day's lines
✓ Full timezone support for global markets
✓ Customizable colors, labels, and line styles
USE CASES:
- Day traders: Track key session opens (Asian, London, NY)
- Swing traders: Monitor weekly and monthly opens
- Position traders: Track quarterly and yearly opens
- Multi-timeframe analysis: See all key levels at once
CUSTOMIZATION:
- Choose any time for intraday opens (00:00 - 23:00)
- Select from multiple timeframes (D, W, M, 3M, 6M, 12M)
- Customize labels, colors, and line styles
- Adjust label offset and size
- Set line extension cutoff time
The indicator is optimized for performance and works smoothly on all timeframes.
Fibonacci retracementHi all!
This indicator will show you the most recent Fibonacci retracement in the current trend. So if the trend is bullish the Fibonacci retracement will be drawn from swing low to high and from swing high to low in a bearish trend.
The uniqueness in this script lies in the adaptation to trend. To only plot the Fibonacci retracements according to the current market trend.
The trend is determined through break of structures (BOS) and change of characters (CHoCH). A change of character can be of type change of character plus (with a failed swing) and will then be shown as CHoCH+. This is possible through my library 'MarketStructure' (). It only uses break of structures and change of characters to be able to determine the trend, if you want a more detailed picture of the market structure you can use my script 'Market structure' ().
History and what to look for
Fibonacci retracement levels are used by many traders and are levels that are not Fibonacci sequence numbers themselves but they deriver from them. Some examples are:
23,6% - Divide a number by one three places ahead (e.g. 13/55)
38,2% - Divide a number by the one two places ahead (e.g. 21/55)
50% - Not from the Fibonacci sequence, but it's a number that price has reacted from in the past. Markets tend to retrace half a move before continuing
61,8% - The "golden retracement level". It derives from the "golden ratio" and is a core component of the Fibonacci sequence. The further you go in the Fibonacci sequence the preceding number divided by the current number will get closer and closer to this "golden ratio". This level is considered the most important Fibonacci retracement level by many traders
78,6% - Square root of 61.8%. This is often considered a deep correction (but not a trend reversal) and are often used for late entries
These levels are considered "key" and most significant. You want to look for a retracement of the price (down in a bullish trend and up in a bearish trend) to give you good entries.
Settings
For the trend you can set the pivot/swing lengths (right and left) and use the checkbox if you want these pivots to have labels. This can be done in the 'Market strucure' section.
In the 'Fibonacci retracement' section there is settings for the actual Fibonacci retracement. You can enable the trendline, set the color and the style of it. You can select which levels that should be shown by the indicator. There are 11 levels enabled by default, they are; 0-4.236. All settings in this section tries to be as similar to the "Fib Retracement" tool in Tradingview. You can also select the style of these lines (solid, dashed or dotted) and if you want them to extend to the right or not.
After this you can select if the Fibonacci retracement should be reversed or not, if prices should be displayed, if levels should be displayed and if to show the decimal levels or percentages and lastly the font size of these labels.
All defaults are based on the "Fib Retracement" tool by Tradingview.
Visualization
This indicator aims to be as visually similar to the default ("Fib Retracement") tool here on Tradingview. It will plot the Fibonacci retracement (called Auto Fibonacci/Auto fib) according to the trend from the library 'MarketStrucure'. The big differences from the "Fib Retracement" tool by Tradingview is that it's automatic (that adapts to trend), the market structure is visualized through lines and labels (showing 'BOS' for break of structures and 'CHoCH'/'CHoCH+' for change of characters) and that the labels showing information about the levels are positioned to be highly visible (left if <50% otherwise right if in a bullish trend, vice versa in a bearish trend or if reversed).
Don't hesitate if you have any feedback or nice feature suggestions!
Best of trading luck!