Gap Reversal Signal with Indicators🔍 Gap Reversal Signal with Indicators — 結合 KD、MACD、SAR 與背離分析的多功能指標
🔍 Gap Reversal Signal with Indicators — A Multi-Tool Signal Indicator Combining KD, MACD, SAR, and Divergence Analysis
中文說明:
本指標結合多種常用技術分析工具,包括 KD 隨機指標、MACD 動能交叉、SAR 趨勢方向、以及 MACD 背離偵測,用以辨識潛在的價格反轉區域。適用於日內交易與波段操作,支援各類市場,如加密貨幣、股票與外匯等。
English Description:
This indicator combines several popular technical tools: Stochastic KD, MACD momentum crossovers, SAR trend direction, and MACD divergence detection. It helps traders identify potential reversal areas and is ideal for both intraday and swing trading. Works well on crypto, stocks, and forex markets.
🧠 功能特點 | Key Features
✅ KD指標(慢速隨機指標)檢測超買超賣並提供%K與%D交叉訊號
✅ Stochastic KD (slow) to detect overbought/oversold zones and crossover signals
✅ MACD金叉/死叉與零軸突破捕捉趨勢轉變與動能反轉
✅ MACD Crossovers + Zero-Line Breaks to capture trend changes and momentum reversals
✅ SAR指標即時顯示多空方向
✅ Parabolic SAR for real-time trend direction indication
✅ MACD背離偵測協助辨識潛在反轉區域
✅ MACD Divergence Detection for identifying hidden trend reversals
✅ 圖形提示與標籤提示可視化呈現各類訊號
✅ Visual Alerts and Labels for easy and quick signal recognition
📈 支援市場 | Supported Markets
📊 台股 / 美股 / 外匯 / 加密貨幣
📊 Taiwan Stocks / US Stocks / Forex / Cryptocurrencies (e.g. BTC, ETH)
🔧 推薦用法 | Recommended Use
搭配缺口策略與支撐壓力位使用
Use with gap-trading strategies and support/resistance zones
用於盤整末期或趨勢反轉的提示
Helpful for end-of-consolidation signals or trend reversals
支援短線與波段交易風格
Suitable for scalping and swing trading styles
💡 把這個指標加入你的圖表,立即體驗多重技術分析所帶來的交易優勢!
💡 Add this indicator to your chart now and experience the power of multi-tool technical analysis!
Macd-v
Momentum Indicator for Day TradingThis indicator was built to help you concentrate on the following scenarios:
- Best Entry points on fast momentum breaks:
Momentum takes no longer than several minutes (2 to 5 minutes ~)
Strong break without good entry point along - you should act fast
- Best Entry points on long momentum breaks:
Momentum can take between 15 minutes to 1 hour.
Has good entry points along the trend.
The following are the marks of those trends:
✅ - Long trend possibility entry point.
📈 - Short trend possibility entry point.
👮♂️ - Negative sign - watch out!
📉🛒 - Buying the dip sign which means possible second option after the first trend already finished.
Goodluck!
BK AK-47 Divergence🚨 Introducing BK AK-47 Divergence — Multi-Timeframe Precision Firepower for True Traders 🚨
After months of development, I’m proud to release my fifth weapon in the arsenal — BK AK-47 Divergence.
💥 Why “AK-47”? The Meaning Behind the Name
The AK-47 isn’t just a rifle. It’s the symbol of reliability, versatility, and raw stopping power. It performs in every environment — from the mud to the mountains — just like this indicator cuts through noise on any timeframe, any asset, any condition.
🔸 “AK” honors the same legacy as before — my mentor, A.K., whose discipline and vision forged my trading edge.
🔸 “47” signifies layered precision: 4 = structure, 7 = spiritual completion. Together, it’s the weapon of divine order that adapts, reacts, and strikes with purpose.
🔍 What Is BK AK-47 Divergence?
It’s a next-generation divergence detector — a smart hybrid of MACD, Bollinger Bands, and multi-timeframe divergence logic wrapped in a custom volatility engine and real-time flash alerts.
Designed for snipers in the market — those who only take the highest-probability shots.
⚙️ Core Weapon Systems
✅ MACD + BB Precision Overlay → MACD plotted inside dynamic Bollinger Bands — reveals hidden pressure zones where most indicators fail.
✅ Smart Histogram Scaling → Adaptive amplification based on volatility. No more weak histograms in strong markets.
✅ Full Multi-Timeframe Divergence Detection:
🔻 Current TF Divergence
🕐 Higher TF Divergence
⏱️ Lower TF Divergence
Each plotted with clean visual alerts, color-coded by direction and timeframe. You get instant divergence recognition across dimensions.
✅ Background Flash Alerts → When MACD hits BB extremes, the background lights up in red or green. Eyes instantly lock in on key moments.
✅ Advanced Pivot Lookback Control → New lookback system compares multiple pivot layers, not just the last swing. This gives true structural divergence, not just noise.
✅ Dynamic Fill Zones:
🔴 Oversold
🟢 Overbought
🔵 Neutral
Built to filter false signals and highlight hidden edge.
🛡️ Why This Indicator Changes the Game
🔹 Built for divergence snipers — not lagging MACD watchers.
🔹 Perfect for traders who sync with:
• Elliott Waves
• Fibonacci Time/Price Clusters
• Harmonic Patterns
• Gann Angles or Squares
• Price Action & Trendlines
🔹 Lets you visually map:
• Converging divergences (multi-TF confirmation)
• High-volatility histograms in low-volatility price zones (entry sweet spots)
• Flash-momentum warnings at BB pressure zones
🎯 How to Use BK AK-47 Divergence
🔹 Breakout Confirmation → MACD breaches upper BB with bullish divergence = signal to ride momentum.
🔹 Mean Reversion Reversals → MACD breaks lower BB + bullish div = setup for sniper long.
🔹 Top/Bottom Detection → Bearish divergence + MACD failure at upper BB = early reversal signal.
🔹 TF Sync Strategy → Align current TF with higher or lower divergences for laser-confirmed entries.
🧠 Final Thoughts
This isn’t just a divergence tool. It’s a battlefield reconnaissance system — one that lets you see when, where, and why the next pivot is forming.
🔹 Built in honor of the AK-legacy — reliability, discipline, and firepower.
🔹 Designed to cut through noise, expose structure, and alert you to what really matters.
🔹 Crafted for those who trade with intent, vision, and respect for the craft.
🙏 And most importantly: All glory to Gd — the One who gives wisdom, clarity, and purpose.
Without Him, the markets are chaos. With Him, we move in structure, order, and divine timing.
—
⚡ Stay dangerous. Stay precise. Stay aligned.
🔥 BK AK-47 Divergence — Locked. Loaded. Laser-focused. 🔥
May the markets bend to your discipline.
Gd bless. 🙏
Heikin Ashi + MACD Momentum FilterThe Heikin Ashi + MACD Momentum Filter is designed for short-term and swing traders, combining the trend-smoothing capabilities of manually calculated Heikin Ashi candles with the momentum confirmation of the MACD histogram to generate reliable buy and sell signals. This indicator aligns trend direction with momentum shifts to minimize false signals, making it ideal for trading trending markets on timeframes like 5-minute to 1-hour charts.
How It Works
The indicator uses two technical components to produce signals:
Heikin Ashi for Trend Detection:
Heikin Ashi candles are manually calculated to smooth price action, with the close as the average of OHLC values and the open as the average of the previous Heikin Ashi open and close. These values are further smoothed over a default 5-period moving average. A bullish trend is confirmed when the smoothed Heikin Ashi close is above its open (plotted in green), and a bearish trend when the close is below the open (plotted in red). This smoothing reduces noise, helping traders stay in the direction of the prevailing trend.
MACD Histogram for Momentum Confirmation:
The MACD, calculated with standard settings (fast=12, slow=26, signal=9), produces a histogram. A buy signal requires the histogram to cross above a threshold (default: 0.0), indicating bullish momentum, while a sell signal requires a cross below, indicating bearish momentum. This ensures trades are taken when momentum supports the trend.
Signal Generation
Signals are generated using the previous bar’s values to prevent repainting:
Buy Signal: The MACD histogram crosses above the threshold, and the Heikin Ashi confirms a bullish trend. Displayed as a green upward triangle below the bar.
Sell Signal: The MACD histogram crosses below the threshold, and the Heikin Ashi confirms a bearish trend. Displayed as a red downward triangle above the bar.
MACD-V with Volatility Normalisation [DCD]MACD-V with Volatility Normalisation
This indicator is a modified version of the traditional MACD, designed to account for market volatility by normalizing the MACD line using the Average True Range (ATR). It provides a more adaptive approach to identifying momentum shifts and potential trend reversals. This indicator was developed by Alex Spiroglou in this paper:
Spiroglou, Alex, MACD-V: Volatility Normalised Momentum (May 3, 2022).
Features:
Volatility Normalization: The MACD line is adjusted using ATR to standardize its values across different market conditions.
Customizable Parameters: Users can adjust the MACD fast length, slow length, signal line smoothing, and ATR length to suit their trading style.
Histogram Visualization: The histogram highlights the difference between the MACD and signal lines, with customizable colors for positive and negative momentum.
Crossover Signals: Green and red dots indicate bullish and bearish crossovers between the MACD and signal lines.
Background Highlighting: The chart background changes to green when the MACD is above 0 and red when it is below 0, providing a clear visual cue for bullish and bearish conditions.
Horizontal Levels: Dotted horizontal lines are plotted at key levels for better visualization of MACD values.
How to Use:
Look for crossovers between the MACD and signal lines to identify potential buy or sell signals.
Use the histogram to gauge the strength of momentum.
Pay attention to the background color for quick identification of bullish (green) or bearish (red) conditions.
This indicator is ideal for traders who want a more dynamic MACD that adapts to market volatility. Customize the settings to align with your trading strategy and timeframe.
New Momentum H/LNew Momentum H/L shows when momentum, defined as the rate of price change over time, exceeds the highest or lowest values observed over a user-defined period. These events shows points where momentum reaches new extremes relative to that period, and the indicator plots a column to mark each occurrence.
Increase in momentum could indicate the start of a trend phase from a low volatile or balanced state. However in developed trends, extreme momentum could also mark potential climaxes which can lead to trend termination. This reflects the dual nature of the component.
This indicator is based on the MACD calculated as the difference between a 3-period and a 10-period simple moving average. New highs are indicated when this value exceeds all previous values within the lookback window; new lows when it drops below all previous values. The default lookback period is set to 40 bars, which corresponds with two months on a daily chart.
The indicator also computes a z-score of the MACD line over the past 100 bars. This standardization helps compare momentum across different periods and normalizes the values of current moves relative to recent history.
In practice, use the indicator to confirm presence of momentum at the start of a move from a balanced state (often following a volatility expansion), track how momentum develops inside of a trend structure and locate potential climactic events.
Momentum should in preference be interpreted from price movement. However, to measure and standardize provides structure and helps build more consistent models. This should be used in context of price structure and broader market conditions; as all other tools.
Price OI Division Price OI Division Indicator
Overview
The Price OI Division indicator (`P_OI_D`) is a custom TradingView script designed to analyze the relationship between price momentum and open interest (OI) momentum. It visualizes the divergence between these two metrics using a modified MACD (Moving Average Convergence Divergence) approach, normalized to percentage values. The indicator is plotted as a histogram and two lines (MACD and Signal), with color-coded signals for easier interpretation.
Key Features
- Normalized Price MACD : Compares short-term and long-term price momentum.
- OI-Adjusted MACD : Incorporates open interest data to reflect market positioning.
- Divergence Histogram : Highlights the difference between price and OI momentum.
- Signal Line : Smoothed EMA of the divergence for trend confirmation.
- Threshold Lines : Horizontal reference lines at ±10% and 0 for quick visual analysis.
Interpretation Guide
- Bullish Signal :
Histogram turns red (positive & increasing).
MACD (red line) crosses above Signal (blue line).
Divergence above +10% indicates extreme bullish conditions.
- Bearish Signal :
Histogram turns green (negative & increasing).
MACD (lime line) crosses below Signal (maroon line).
Divergence below -10% indicates extreme bearish conditions.
- Neutral/Reversal :
Histogram fading (teal/pink) suggests weakening momentum.
Crossings near the Zero Line may signal trend shifts.
Usage Notes
Asset Compatibility : Works best with futures/perpetual contracts where OI data is available.
Timeframe : Suitable for all timeframes, but align `fastLength`/`slowLength` with your strategy.
Data Limitations : Relies on exchange-specific OI symbols (e.g., `BTC:USDT.P_OI`). Verify data availability for your asset.
Confirmation : Pair with volume analysis or support/resistance levels for higher accuracy.
Disclaimer
This indicator is for educational purposes only. Trading decisions should not be based solely on this tool. Always validate signals with additional analysis and risk management.
Cluster + StochRSI convergence Buy & Short DotsDescription:
This script plots high-precision Buy and Short Signals based on a combination of a custom Cluster Algorithm and a Normalized Stochastic RSI filter.
Cluster Algo Logic:
Detects momentum flips using a normalised EMA stretched against Bollinger Bands.
A "Cluster Turn" is identified when the momentum flips from Red→Green under 30 threshold (Buy setup) or Green→Red above 70 threshold (Short setup), combined with prior trend confirmation (required Red or Green bars).
Stochastic RSI Filter:
A normalised StochRSI is used to confirm oversold (for Buys) and overbought (for Shorts) reversals.
Crossovers of the %K and %D lines are required under strict thresholds (below 20 for Buys, above 80 for Shorts).
Entry Dot System:
Light Dots (Green for Buys, Red for Shorts) are plotted when either the Cluster condition or StochRSI condition is first satisfied ("Get Ready" signals).
Dark Dots (Strong Green or Strong Red) are plotted when both conditions are completed within a user-defined number of bars ("Confirmed Entry" signals).
This dual confirmation reduces false signals and aligns entries with meaningful momentum shifts and overbought/oversold conditions.
Editable Parameters:
Cluster Algo Settings:
Bollinger Bands Length
Bollinger Bands Standard Deviation
Signal Line Length (EMA)
Cluster Trend Filters:
Required Red Bars Before Cluster Turn (Buy setups)
Required Green Bars Before Cluster Flip Red (Short setups)
Timing Flexibility:
Max Bars Between Cluster and StochRSI (how far apart the two events can occur)
Stochastic RSI Settings:
RSI Length
Stochastic Length
K Smoothing
D Smoothing
Notes:
Only confirmed dual conditions within the allowed bar window trigger final entry signals.
Overbought and Oversold levels (20/30/70/80) are plotted faintly for additional visual clarity.
The script does not repaint — all signals occur after the bar closes.
MACD Multi-Timeframe x4 (Custom Params)■About this indicator
・This indicator can display 4 MACD lines for different time frames. (Multi-time framework)
・The color of the MACD line changes when the MACD has a golden or dead cross.
All MACDs can be set individually for long time period, short time period, and signal smoothing.
All MACDs can show/hide MACD lines, signal lines, histograms, and select colors.
■Explanation of effective usage
By displaying MACDs in multiple time frames, you can time the push.
For example, let's say you have three MACDs: one weekly, one daily, and one hour.
With the weekly and daily MACDs continuing to golden cross, the timing for the hourly MACD to golden cross is considered a push opportunity.
An example chart is attached below for your reference.
The area circled vertically is a push-buying opportunity.
Yellow-green: Weekly Green: Daily Light blue: Hourly
-------------------------------------------------------------------------------------------------------------
■このインジケーターについて
・このインジケーターは別の時間軸の4本のMACDを表示させることが出来ます。(マルチタイムフレームワーク)
・MACDがゴールデンクロス・デッドクロスした場合にMACDラインの色が変化します。
・全てのMACDについて個別に長期の期間・短期の期間・シグナルの平滑化を設定できます。
・全てのMACDはMACDライン・シグナルライン・ヒストグラムの表示/非表示、色の選択ができます。
■有効な使い方の説明
マルチタイムフレームでMACDを表示することで、押し目のタイミングを計ることが出来ます。
例えば、3本のMACDを1週間・1日・1時間とします。
週足と日足のMACDがゴールデンクロスを継続した状態で、1時間足のMACDがゴールデンクロスしてくるタイミングは押し目買いのチャンスと考えられます。
以下に例題のチャートを付けますので、参考にしてください。
縦に囲った辺りが押し目買いのチャンスになります。
黄緑:週足 緑:日足 水色:1時間足
Swing Trade TarayıcıSwing Trade Scanner (v6) User Guide
1. Purpose:
This TradingView indicator (written in Pine Script v6) is designed to help identify swing trading opportunities. It calculates an overall trend strength and direction score by combining multiple technical analyses for up to 20 financial assets (stocks, cryptocurrencies, forex, etc.) that you specify. It presents the results in a customizable table, allowing you to quickly scan the market.
2. Analyses Used and Their Roles:
By default, the indicator uses the following 4 main technical analyses:
EMA Crossover (Default: 9/21): Used to capture short-term trend direction and potential momentum shifts. When the fast EMA (9) crosses above the slow EMA (21), it's considered a bullish signal; when it crosses below, it's a bearish signal. It's often one of the main entry/exit triggers.
RSI (Relative Strength Index - Default: 14): Measures the speed of price movements to identify overbought (OB) and oversold (OS) conditions. Reversals from the OB zone can signal potential downturns, while reversals from the OS zone can signal potential upturns. It also provides insight into the strength of the momentum.
MACD (Moving Average Convergence Divergence - Default: 12, 26, 9): A trend-following momentum indicator. The relationship between the MACD line and the signal line (crossovers) and the state of the histogram (position relative to the zero line) are used to confirm momentum shifts and trend strength.
ADX/DI (Average Directional Index - Default: 14, 14): Measures the strength (ADX) and direction (+DI/-DI lines) of a trend. Its main role is to filter signals from other indicators. A trend is considered to exist if the ADX is above a certain threshold (e.g., 25). +DI above -DI indicates an uptrend, and the reverse indicates a downtrend.
3. Scoring System:
The indicator calculates an individual score for each analysis and then combines these scores using weights you define to create a final Trend Score:
Individual Scores: Each analysis (EMA, RSI, MACD, ADX/DI) generates a decimal score between -1.0 (Strong Negative/Bearish) and +1.0 (Strong Positive/Bullish) based on its own rules. For example, RSI might score +1.0 if oversold, -1.0 if overbought, and 0.0 if neutral. MACD and ADX/DI scores can also take intermediate values reflecting both direction and strength (e.g., ±1.0, ±0.6, ±0.3, 0.0).
Weighting: In the settings, you can assign a weight (between 0.0 and 1.0) to each analysis, determining how much it influences the final score. For instance, you might give EMA crossover a higher weight and use RSI with a lower weight.
Total Score: The individual scores of the active analyses are multiplied by their assigned weights and summed up. This total is then divided by the sum of the weights of the active analyses to obtain a final, normalized Trend Score between -1.0 and +1.0. This score represents the combined view of all analyses.
4. Trend Determination:
The calculated final Trend Score is classified into an overall TREND status based on threshold values you set in the settings:
S.UP (Strong Up): Score > Strong Up Threshold (Default: 0.70)
UP: Up Threshold < Score <= Strong Up Threshold (Default: 0.35 < Score <= 0.70)
NEUTRAL: Down Threshold <= Score <= Up Threshold (Default: -0.35 <= Score <= 0.35)
DOWN: Strong Down Threshold <= Score < Down Threshold (Default: -0.70 <= Score < -0.35)
S.DOWN (Strong Down): Score < Strong Down Threshold (Default: -0.70)
This classification allows you to see at a glance which assets have strong trend potential.
5. Table Structure and Meanings:
The indicator displays the results in a table with the following columns:
TICKER: The symbol of the analyzed asset (abbreviated).
TREND: The overall trend status determined by the total score (S.UP, UP, NEUTRAL, DOWN, S.DOWN). The background color of this column also reflects this overall trend (Dark Green, Green, Gray, Red, Dark Red).
SCORE: The calculated weighted total score (between -1.00 and +1.00, with two decimal places). The background color of this column also reflects the overall trend.
EMA: Shows the result of only the EMA 9/21 analysis.
▲: EMA(9) > EMA(21) (Green Background)
▼: EMA(9) < EMA(21) (Red Background)
N: Neutral (Gray Background)
-: Analysis disabled or no data (Pale Gray Background)
RSI: Shows the result of only the RSI analysis.
OS: Oversold (RSI < 30) (Green Background)
M+: Mid Positive (30 <= RSI < 45) (Light Green/Lime Background)
N: Neutral (45 <= RSI <= 55) (Gray Background)
M-: Mid Negative (55 < RSI <= 70) (Orange Background)
OB: Overbought (RSI > 70) (Red Background)
-: Analysis disabled or no data (Pale Gray Background)
MACD: Shows the result of only the MACD analysis.
S+: Strong Positive (MACD > Signal AND Histogram > 0) (Green Background)
M+: Mid Positive (MACD > Signal BUT Histogram < 0) (Light Green/Lime Background)
N: Neutral (Other cases) (Gray Background)
M-: Mid Negative (MACD < Signal BUT Histogram > 0) (Orange Background)
S-: Strong Negative (MACD < Signal AND Histogram < 0) (Red Background)
-: Analysis disabled or no data (Pale Gray Background)
ADX/DI: Shows the result of only the ADX/DI analysis.
S+: Strong Uptrend (ADX > 40 AND +DI > -DI) (Green Background)
M+: Mid Uptrend (25 < ADX <= 40 AND +DI > -DI) (Light Green/Lime Background)
W: Weak Trend (ADX <= 25) (Gray Background)
M-: Mid Downtrend (25 < ADX <= 40 AND -DI > +DI) (Orange Background)
S-: Strong Downtrend (ADX > 40 AND -DI > +DI) (Red Background)
-: Analysis disabled or no data (Pale Gray Background)
6. Settings (Inputs):
You can customize the indicator's behavior using the following settings:
General Settings:
Analysis Timeframe: Select the timeframe for the scans (Leave blank to use the chart timeframe).
Auto Adjust Parameters and Weights: If checked, predefined parameters and weights based on the selected timeframe (1h, 4h, 1D, 1W) are used. If unchecked, or if an unsupported timeframe is selected, the manual settings below apply.
Strong/Normal Up/Down Thresholds: Adjust the score thresholds used to determine the TREND column.
Analysis Settings (Separate Group for Each Analysis):
Enable ... Analysis: Check to include the respective analysis in the score.
... Weight (Manual): If auto-adjust is off, set the weight of this analysis in the total score.
... Period/Level (Manual): If auto-adjust is off, adjust the parameters (period, level, etc.) of the respective indicator.
Symbols (1-10):
Checkbox: Check to include the respective symbol in the scan.
Text Box: Enter the symbol of the asset you want to analyze (e.g., "NASDAQ:AAPL", "BINANCE:BTCUSDT").
Table Settings:
Table Position: Choose where the table appears on the chart.
Cell Width: Adjust the width of the table cells.
Text Size: Select the general size of the text in the table (individual analysis columns are usually shown one size smaller).
7. How to Use:
Add the indicator to your TradingView chart.
Enter the indicator settings.
In the Symbols section, enter the symbols of the assets you want to analyze and check the boxes next to them.
In the General Settings section, select your desired Analysis Timeframe.
Decide whether the Auto Adjust Parameters and Weights option should be checked. If not, adjust the manual parameters and weights for each indicator in the Analysis Settings section according to your strategy.
Examine the table:
The TREND and SCORE columns give you a general overview. Focus on strong signals (S.UP, S.DOWN) or states that have just crossed thresholds (UP, DOWN).
The EMA, RSI, MACD, ADX/DI columns allow you to see in detail which analyses influenced the overall score. You can track confirming or conflicting signals here.
Combine these scan results with other rules of your swing trading strategy (support/resistance, patterns, risk management, etc.) to make trading decisions.
8. Important Notes:
This indicator does not constitute financial advice. It is merely a tool that combines technical analysis tools to help you scan the market.
The default parameters and weights in the indicator settings are for general use. For best results, it is strongly recommended that you optimize these settings by backtesting them on historical data according to your own strategy, the assets you trade, and market conditions.
No technical indicator or system generates 100% accurate signals. Always apply risk management principles and do not trade with money you cannot afford to lose.
I hope this guide helps you use the indicator effectively!
MACD DualScope※日本語説明もあります。
📌 MACD DualScope – Fusion of Higher & Lower Timeframes
MACD DualScope is a multi-timeframe visualization tool that combines the power of two MACD readings in one view.
The background color reflects the trend direction of the higher timeframe MACD, while the indicator window shows the MACD of the current chart timeframe.
✅ Key Features
Visual background showing higher timeframe MACD direction (Green = Bullish, Red = Bearish)
Full MACD (MACD line, Signal line, Histogram) display for the lower/current timeframe
Separate parameter settings for higher and lower timeframes
Customizable higher timeframe (e.g., 1H, 4H, D, etc.)
Adjustable background transparency
Perfect for traders who want to capture the broader trend while timing precise entries on lower timeframes.
----------------------------------------------------------------------------------
📌 MACD DualScope - 上位足 × 下位足の融合ビジョン
MACD DualScopeは、異なる時間軸のMACDを同時に視覚化するインジケーターです。
背景には上位足のMACDの方向性をカラーで表示し、インジケーターウィンドウには現在の足(下位足)のMACDを表示します。
✅ 主な機能
上位足のMACD方向を背景色で表示(上昇:緑 / 下降:赤)
下位足のMACD、シグナル、ヒストグラムをチャートで視覚化
上位・下位それぞれでMACDのパラメーターを個別設定可能
上位足の時間足を自由に選択可能(例:1H, 4H, Dなど)
背景の透明度もカスタマイズ可能
トレンドの大きな流れと短期の変化を同時に捉えたいトレーダーにおすすめのツールです!
Institutional MACD (Z-Score Edition) [VolumeVigilante]📈 Institutional MACD (Z-Score Edition) — Professional-Grade Momentum Signal
This is not your average MACD .
The Institutional MACD (Z-Score Edition) is a statistically enhanced momentum tool, purpose-built for serious traders and breakout hunters . By applying Z-Score normalization to the classic MACD structure, this indicator uncovers statistically significant momentum shifts , enabling cleaner reads on price extremes, trend continuation, and potential reversals.
💡 Why It Matters
The classic MACD is powerful — but raw momentum values can be noisy and relative , especially on volatile assets like BTC/USD . By transforming the MACD line, signal line, and histogram into Z-scores , we anchor these signals in statistical context . This makes the Institutional MACD:
✔️ Timeframe-agnostic and asset-normalized
✔️ Ideal for spotting true breakouts , not false flags
✔️ A reliable tool for detecting momentum divergence and exhaustion
🧪 Key Features
✅ Full Z-Score normalization (MACD, Signal, Histogram)
✅ Highlighted ±Z threshold bands for overbought/oversold zones
✅ Customizable histogram coloring for visual momentum shifts
✅ Built-in alerts for zero-crosses and Z-threshold breaks
✅ Clean overlay with optional display toggles
🔁 Strategy Tip: Mean Reversion Signals with Statistical Confidence
This indicator isn't just for spotting breakouts — it also shines as a mean reversion tool , thanks to its Z-Score normalization .
When the Z-Score histogram crosses beyond ±2, it marks a statistically significant deviation from the mean — often signaling that momentum is overstretched and the asset may be due for a pullback or reversal .
📌 How to use it:
Z > +2 → Price action is in overbought territory. Watch for exhaustion or short setups.
Z < -2 → Momentum is deeply oversold. Look for reversal confirmation or long opportunities.
These zones often precede snap-back moves , especially in range-bound or corrective markets .
🎯 Combine Z-Score extremes with:
Candlestick confirmation
Support/resistance zones
Volume or price divergence
Other mean reversion tools (e.g., RSI, Bollinger Bands)
Unlike the raw MACD, this version delivers statistical thresholds , not guesswork — helping traders make decisions rooted in probability, not emotion.
📢 Trade Smart. Trade Vigilantly.
Published by VolumeVigilante
RSI-MACD Momentum Fusion Indicator(RMFI)📈 RSI-MACD Momentum Fusion Indicator (RMFI)
The RMFI combines the strengths of two RSI variants with a dynamically adaptive MACD module into a powerful momentum oscillator ranging from 0 to 100. The goal is to unify converging momentum information from different perspectives into a clear, weighted overall signal.
🔧 Core Features
RSI 1: Classic Wilder RSI, sensitive to short-term momentum.
RSI 2: Modified RSI based on normalized price movement ranges (Range Momentum).
MACD (3 Modes):
Standardized (min/max-based)
Fully adaptive (Z-score normalization)
50% adaptive (hybrid weighting of both approaches)
Dynamic MACD mode selection (optional): Automatic switching of MACD normalization based on volatility levels (ATR-based).
Signal Line: Smoothed average of all components to visualize momentum trends and crossovers.
🎯 Visualization
Clear separation of overbought (>70) and oversold (<30) zones with color highlighting.
Different colors based on the dynamic MACD mode – visually indicates how strongly the market adapts to volatility.
⚙️ Recommended Use
Ideal for trend following, divergence confirmation (with external divergence logic), and momentum reversals.
Particularly effective in volatile markets, as the MACD component adaptively responds to instability.
© champtrades
RMH MidTermThis script combines technical indicators (RSI and MACD), the trend of the HYG ETF, and a long-term moving average to detect buying or selling opportunities in markets with a medium-term bias.
Buy when the RSI breaks out of oversold territory, the MACD crosses upward, the HYG shows relative strength, and the price is above the 200-day moving average.
Sell when the RSI enters overbought territory, the MACD crosses downward, the HYG shows weakness, and the price falls below the 200-day moving average.
It also marks global trend changes using the 200-day moving average as a reference.
Double MACD Overlay [NLR]This indicator plots two MACD signals directly on your price chart to help you spot trends and shifts in momentum more clearly:
🔹 Main MACD - The classic MACD with customizable Fast, Slow, and Signal lengths. Great for confirming broader trend direction.
🔹 Short MACD - A faster MACD with an option to smooth the input, helping you catch early signals or identify short-term momentum changes.
Each MACD is visualized as:
A line showing the moving average
A colored histogram showing the MACD minus the signal
A zero line for reference
Why use this?
By comparing a short-term MACD with a longer-term one, you get early signals without losing the big picture. Use it for confirmation, divergence spotting, or just cleaner trend visualization.
Best For:
✅ Trend-followers
✅ Momentum traders
✅ Anyone who wants more context from their MACD signals
Recommended Settings:
Here are some ideal settings to get the most out of this indicator:
On a 5-Minute Chart:
Compare your current MACD with the 15-minute MACD.
- MACD Multiplier: 3
On a 1-Minute Chart:
Spot short-term moves while comparing them to the 5-minute MACD.
- MACD Multiplier: 5
- Use Smoothed Source (Short MACD): ON (for a cleaner short MACD signal)
Happy trading! 💹
Mr_Pips817 RSI Divergence PROBuilt for professional traders who demand precision.
The TMA - RSI Divergence PRO indicator combines high-probability divergence detection with smart liquidity-based price action levels to identify turning points, trend reversals, and entry/exit zones.
✅ Detects RSI/Momentum/Smoothed divergence
✅ Marks Buy/Sell signals with graded confidence levels
✅ Includes Best / Great / Good / Quality signal types
✅ Fully customizable oscillator levels
✅ Adjustable timeframe alert filter
✅ Invite-only & source-protected
Use it on any market: FX, crypto, indices, stocks, commodities
Optimized for scalping, intraday, and swing trading strategies.
🧠 How It Works:
Select your oscillator (RSI, Momentum, or Smoothed).
When price forms a pivot high/low and diverges from the oscillator, the system flags the divergence.
When the oscillator crosses specific liquidity zones (customizable), it triggers a Buy/Sell label.
Each signal type is visually and logically ranked by quality.
Optional: Filter alerts by your desired chart timeframe for enhanced control.
🧪 Signal Tiers Explained:
Type Signal Meaning
Best Quality Sell "Sell" Optimal sell signal (buy-side liquidity sweep)
Great Quality ⇩⇩ / ⇧⇧ Strong momentum shift
Good Quality ⇩ / ⇧ Probable trend start
Quality • (dot) Early warning / low-grade signal
🚨 Alerts & Controls:
Toggle alerts on/off per signal type
Filter alerts by timeframe
Fine-tune divergence & signal thresholds for each market
📈 Suggested Settings:
Use RSI Divergence for FX and Crypto
Use Smoothed Divergence for Indexes or higher timeframes
Tune liquidity levels based on market volatility
Trend Strength MeterThe Trend Strength Meter (TSM) is a powerful and versatile indicator designed to help traders identify market trends, measure their strength, and detect potential reversals with ease. This indicator combines the power of moving averages, divergence detection, and a clean, customizable dashboard to provide actionable insights for traders of all levels.
How It Works
Trend Strength Calculation:
1. The TSM calculates the trend strength using the difference between two Exponential Moving Averages (EMAs): a fast EMA (default: 20) and a slow EMA (default: 50).
2. The difference is expressed as a percentage of the slow EMA, providing a clear measure of the trend's strength and direction.
Histogram Visualization:
1. A color-coded histogram visually represents the trend strength:
Green: Bullish trend
Red: Bearish trend
Gray: Neutral or no significant trend
2. A smoothed trend strength line (SMA of the trend strength) is also plotted for better clarity.
Divergence Detection:
1. The indicator detects bullish and bearish divergences using the RSI (Relative Strength Index) and price action.
2. Bullish Divergence: Price makes a lower low, but RSI makes a higher low, signaling potential upward momentum.
3. Bearish Divergence: Price makes a higher high, but RSI makes a lower high, signaling potential downward momentum.
=> Divergences are marked with arrows on the chart:
Green Arrow: Bullish divergence
Red Arrow: Bearish divergence
Dashboard:
1. A clean and informative dashboard displays key information:
Trend Strength Value: The current strength of the trend
Trend Direction: Bullish, Bearish, or Neutral
Last Signal: Buy, Sell, or None (based on divergence signals)
The dashboard is fully customizable and can be positioned anywhere on the chart (e.g., top-right, bottom-left, center, etc.).
Key Features
1. Trend Strength Measurement: Quickly identify the strength and direction of the trend.
2. Divergence Detection: Spot potential reversals before they occur with bullish and bearish divergence signals.
3. Customizable Dashboard: Move the dashboard to your preferred location on the chart for better visibility.
4. User-Friendly Design: Clean visuals and intuitive color coding make it easy to interpret market conditions.
5. Actionable Signals: Provides clear Buy/Sell signals based on divergence, helping traders make informed decisions.
How to Use
1. Trend Confirmation:
Use the histogram and trend strength value to confirm the current market trend.
Green bars indicate a bullish trend, while red bars indicate a bearish trend.
2. Divergence Signals:
Look for divergence arrows (green for bullish, red for bearish) to anticipate potential reversals.
Combine divergence signals with other technical analysis tools for higher accuracy.
3. Dashboard Insights:
Monitor the dashboard for real-time updates on trend strength, direction, and the latest signal.
Use the "Last Signal" (Buy/Sell) to validate your trading decisions.
4. Custom Settings:
Adjust the EMA lengths and divergence lookback period to suit your trading style and timeframe.
Position the dashboard anywhere on the chart for convenience.
Best Practices
1. Use the TSM in conjunction with other indicators or price action analysis for confirmation.
2. Test the indicator on different timeframes to find the one that works best for your strategy.
3. Always practice proper risk management when trading.
Disclaimer
This indicator is a tool to assist in technical analysis and should not be used as a standalone trading strategy. Past performance is not indicative of future results. Always conduct your own research and consult with a financial advisor before making trading decisions.
VVV DivergenciaThe **VVV Divergencia** indicator identifies bullish and bearish divergences on the chart by analyzing price action and fractal patterns. Here's a summary of its functions:
**Divergence Detection**: The indicator identifies regular and hidden divergences:
- **Bullish Divergence**: Occurs when the price forms a lower low while the oscillator makes a higher low, indicating potential upward momentum.
- **Bearish Divergence**: Occurs when the price forms a higher high while the oscillator makes a lower high, suggesting possible downward momentum.
- **Hidden Divergences**: These occur when the price does not align with the oscillator's movement, signaling potential continuation of the trend.
**Visual Indicators**: The script visually highlights these divergences on the chart:
- Bullish and bearish divergences are drawn as lines with different colors.
- The background color of the bars is changed based on the divergence signal, where green and orange indicate bullish patterns and red and aqua indicate bearish patterns.
**Customizable Parameters**: Users can adjust the source of the price data BASED ON ANY indicator.
This indicator is useful for traders looking to spot divergence patterns, which are often used to predict potential reversals or continuations in price trends.
A **VVV Divergencia** indikátor a divergenciák felismerésére szolgál a grafikonon.
**Divergenciák Felismerése**: Az indikátor a normál és rejtett divergenciákat is felismeri:
- **Bika Divergencia (Bullish Divergence)**: Akkor fordul elő, amikor az ár alacsonyabb mélypontot képez, miközben az oszcillátor magasabb mélypontot formál, ami emelkedésre utalhat.
- **Medve Divergencia (Bearish Divergence)**: Akkor jelenik meg, amikor az ár magasabb csúcsot ér el, miközben az oszcillátor alacsonyabb csúcsot mutat, ami csökkenésre utalhat.
- **Rejtett Divergenciák**: Ezek akkor fordulnak elő, amikor az ár nem igazodik az oszcillátor mozgásához, ami a trend folytatódására utalhat.
**Vizualizálás**: Az indikátor vizuálisan kiemeli a divergenciákat a grafikonon:
- A bullish és bearish divergenciák különböző színekkel vonalakként jelennek meg.
- A gyertyák háttérszíne is változik a divergenciák jelei alapján: a zöld és a türkiz bullish mintát, míg a piros és a narancssárga bearish mintát jelez.
**Testreszabható Paraméterek**: A felhasználók beállíthatják az árforrást ami bármilyen indikátorra beállítható.
Ez az indikátor hasznos lehet azoknak a tradereknek, akik a divergenciák alapján szeretnének előrejelzéseket készíteni, mivel ezek a minták gyakran előre jelzik az árfolyam fordulatait vagy a trendek folytatódását.
MACD Boundary PSA - CoffeeKillerMACD Boundary PSA - CoffeeKiller Indicator Guide
Welcome traders! This guide will walk you through the MACD Boundary PSA indicator, a powerful market analysis tool developed by CoffeeKiller that enhances the traditional MACD with advanced boundary detection and peak signaling features.
🔔 **Warning: This Indicator Has No Signal Line or MACD Line** 🔔 This indicator is my version of the MACD, that I use in conjunction with the Rev&Line indicator.
Core Concept: Enhanced MACD Analysis
The foundation of this indicator builds upon the classic Moving Average Convergence Divergence (MACD) indicator, adding boundary tracking and peak detection systems to provide clearer signals and market insights.
Histogram Bars: Market Momentum
- Positive Green Bars: Bullish momentum
- Negative Red Bars: Bearish momentum
- Color intensity varies based on momentum strength
- Special coloring for new high/low boundaries
Marker Lines: Dynamic Support/Resistance
- High Marker Line (Magenta): Tracks the highest point reached during a bullish phase
- Low Marker Line (Cyan): Tracks the lowest point reached during a bearish phase
- Acts as dynamic boundaries that help identify strength of current moves
Peak Detection System:
- Triangular markers identify significant local maxima and minima
- Background highlighting shows important momentum peaks
- Helps identify potential reversal points and momentum exhaustion
Core Components
1. MACD Calculation
- Customizable fast and slow moving averages
- Signal line smoothing options
- Flexible MA type selection (SMA or EMA)
- Custom source input options
2. Boundary Tracking System
- Automatic detection of highest values in bullish phases
- Automatic detection of lowest values in bearish phases
- Step-line visualization of boundaries
- Color-coded for easy identification
3. Peak Detection System
- Identification of local maxima and minima
- Background highlighting of significant peaks
- Triangle markers for peak visualization
- Zero-line cross detection for trend changes
4. Time Resolution Control
- Normal mode: calculations based on chart timeframe
- Custom resolution mode: calculations based on specified timeframe
Main Features
Time Resolution Settings
- Normal mode: calculations match your chart's timeframe
- Custom resolution mode: calculations based on specified timeframe
- Helps identify stronger signals from other timeframes
Visual Elements
- Color-coded histogram bars
- Dynamic marker lines for boundaries
- Peak triangles for significant turning points
- Background highlighting for peak identification
Signal Generation
- Zero-line crosses for trend change signals
- Boundary breaks for momentum strength
- Peak formation for potential reversals
- Color changes for momentum direction
Customization Options
- MA types and lengths
- Signal smoothing
- Color schemes
- Marker line visibility
- Peak background display options
Trading Applications
1. Trend Identification
- Histogram crossing above zero: bullish trend beginning
- Histogram crossing below zero: bearish trend beginning
- Histogram color: indicates momentum direction
- Consistent color intensity: trend strength
2. Reversal Detection
- Peak triangles after extended trend: potential exhaustion
- Background highlighting: significant reversal points
- Histogram approaching marker lines: potential trend change
- Color shifts from bright to muted: decreasing momentum
3. Momentum Analysis
- Histogram breaking above previous high boundary: accelerating bullish momentum
- Histogram breaking below previous low boundary: accelerating bearish momentum
- Special coloring (magenta/cyan): boundary breaks indicating strength
- Distance from zero line: overall momentum magnitude
4. Market Structure Assessment
- Consecutive higher peaks: strengthening bullish structure
- Consecutive lower troughs: strengthening bearish structure
- Peak comparisons: relative strength of momentum phases
- Boundary line steps: market structure levels
Optimization Guide
1. MACD Settings
- Fast Length: Shorter values (8-12) for responsiveness, longer values (20+) for smoother signals
- Slow Length: Shorter values (21-34) for more signals, longer values (72+) for major moves
- Default settings (22, 72, 9): balanced approach for most timeframes
- Consider using 8, 21, 5 for shorter timeframes and 34, 144, 5 for longer timeframes
2. MA Type Selection
- EMA: More responsive, follows price more closely
- SMA: Smoother, fewer false signals, potentially more lag
- Mix and match for oscillator and signal lines based on your preference
3. Time Resolution
- Match chart timeframe: for aligned analysis
- Use higher timeframe: for filtering signals
- Lower timeframe: for earlier entries but more noise
4. Color Customization
- Normal bullish/bearish colors: represent standard momentum
- High/low marker line colors: customize visibility
- Peak marker colors: adjust for your visual preference
- Consider chart background when selecting colors
Best Practices
1. Signal Confirmation
- Wait for zero-line crosses to confirm trend changes
- Look for peak formations to identify potential reversals
- Check for boundary breaks to confirm strong momentum
- Use custom timeframe option for higher timeframe confirmation
2. Timeframe Selection
- Lower timeframes: more signals, potential noise
- Higher timeframes: cleaner signals, less frequent
- Custom resolution: allows comparison across timeframes
- Consider using multiple timeframes for confirmation
3. Market Context
- Strong bullish phase: positive histogram breaking above marker line
- Strong bearish phase: negative histogram breaking below marker line
- Histogram approaching zero: potential trend change
- Peak formations: potential exhaustion points
4. Combining with Other Indicators
- Use with trend indicators for confirmation
- Pair with oscillators for overbought/oversold conditions
- Combine with volume analysis for validation
- Consider support/resistance levels with boundary lines
Advanced Trading Strategies
1. Boundary Break Strategy
- Enter long when histogram breaks above previous high marker line
- Enter short when histogram breaks below previous low marker line
- Use zero-line as initial stop-loss reference
- Take profits at formation of opposing peaks
2. Peak Trading Strategy
- Identify significant peaks with triangular markers
- Look for consecutive lower peaks in bullish phases for shorting opportunities
- Look for consecutive higher troughs in bearish phases for buying opportunities
- Use zero-line crosses as confirmation
3. Multi-Timeframe Strategy
- Use custom resolution for higher timeframe MACD trend
- Enter trades when both timeframes align
- Higher timeframe for trend direction
- Chart timeframe for precise entry
4. Histogram Color Strategy
- Enter long when histogram turns bright green (increasing momentum)
- Enter short when histogram turns bright red (increasing momentum)
- Exit when color intensity fades (decreasing momentum)
- Use marker lines as dynamic support/resistance
Practical Analysis Examples
Bullish Market Scenario
- Histogram crosses above zero line
- Green bars grow in height and intensity
- High marker line forms steps upward
- Peak triangles appear at local maxima
- Background highlights appear at significant momentum peaks
Bearish Market Scenario
- Histogram crosses below zero line
- Red bars grow in depth and intensity
- Low marker line forms steps downward
- Peak triangles appear at local minima
- Background highlights appear at significant momentum troughs
Consolidation Scenario
- Histogram oscillates around zero line
- Bar colors alternate frequently
- Marker lines remain relatively flat
- Few or no new peak highlights appear
- Histogram values remain small
Understanding Market Dynamics Through MACD Boundary PSA
At its core, this indicator provides a unique lens to visualize market momentum and boundaries:
1. Momentum Strength: The histogram height/depth shows the strength of current momentum, with color intensity providing additional context about acceleration or deceleration.
2. Dynamic Boundaries: The marker lines create a visual representation of the "high water marks" of momentum in both directions, helping to identify when markets are making new momentum extremes.
3. Exhaustion Signals: The peak detection system highlights moments where momentum has reached a local maximum or minimum, often precursors to reversals or consolidations.
4. Trend Confirmation: The histogram color and intensity provide instant feedback about the current trend direction and strength, with special colors highlighting particularly significant moves.
Remember:
- Combine signals from histogram, marker lines, and peak formations
- Use appropriate timeframe settings for your trading style
- Customize the indicator to match your visual preferences
- Consider market conditions and correlate with price action
This indicator works best when:
- Used as part of a comprehensive trading system
- Combined with proper risk management
- Applied with an understanding of current market conditions
- Signals are confirmed by price action and other indicators
**DISCLAIMER**: This indicator and its signals are intended solely for educational and informational purposes. They do not constitute financial advice. Trading involves significant risk of loss. Always conduct your own analysis and consult with financial professionals before making trading decisions.
Reversal + Confirm ZonesThis script is written in Pine Script (version 5) for TradingView and creates an indicator called **"Reversal + Confirm Zones"**. It overlays visual zones on a price chart to identify potential reversal points and confirmation signals for trading. The indicator combines **Bollinger Bands** and **RSI** to detect overbought/oversold conditions (reversal zones) and uses **EMA crosses** and **MACD zero-line crosses** to confirm bullish or bearish trends. Below is a detailed explanation:
---
### **1. Purpose**
- The script highlights:
- **Reversal Zones**: Areas where the price might reverse due to being overbought (green) or oversold (red).
- **Confirmation Zones**: Areas where a trend reversal is confirmed using EMA and MACD signals (green for bullish, red for bearish).
- It provides visual backgrounds and alerts to assist traders in spotting potential trade setups.
---
### **2. Components**
The script is divided into two main parts: **Reversal Logic** and **Confirmation Logic**.
---
### **3. Reversal Logic (Red & Green Zones)**
#### **Bollinger Bands**
- **Parameters**:
- Length: 20 periods.
- Source: Closing price (`close`).
- Multiplier: 2.0 (standard deviations).
- **Calculation**:
- `basis`: 20-period Simple Moving Average (SMA).
- `dev`: 2 times the standard deviation of the price over 20 periods.
- `upper`: `basis + dev` (upper band).
- `lower`: `basis - dev` (lower band).
- **Purpose**: Identifies when the price moves outside the normal range (beyond 2 standard deviations).
#### **Relative Strength Index (RSI)**
- **Parameters**:
- Length: 14 periods.
- Low Threshold: 30 (oversold).
- High Threshold: 70 (overbought).
- **Calculation**: `rsiValue = ta.rsi(close, rsiLength)`.
- **Purpose**: Measures momentum to confirm overbought or oversold conditions.
#### **Zone Conditions**
- **Red Zone (Oversold)**:
- Condition: `close < lower` (price below lower Bollinger Band) AND `rsiValue < rsiLowThreshold` (RSI < 30).
- Visual: Light red background (`color.new(color.red, 80)`).
- Alert: "Deep Oversold Signal triggered!".
- **Green Zone (Overbought)**:
- Condition: `close > upper` (price above upper Bollinger Band) AND `rsiValue > rsiHighThreshold` (RSI > 70).
- Visual: Light green background (`color.new(color.green, 80)`).
- Alert: "Deep Overbought Signal triggered!".
#### **Interpretation**
- Red Zone: Suggests the price is oversold and may reverse upward.
- Green Zone: Suggests the price is overbought and may reverse downward.
---
### **4. Confirmation Logic (EMA and MACD Crosses)**
#### **Exponential Moving Averages (EMAs)**
- **Parameters**:
- Short EMA Length: 9 periods (user adjustable).
- Long EMA Length: 21 periods (user adjustable).
- **Calculation**:
- `emaShort = ta.ema(close, emaShortLength)`.
- `emaLong = ta.ema(close, emaLongLength)`.
- **Conditions**:
- **Bullish EMA Cross**: `emaCrossBullish = ta.crossover(emaShort, emaLong)` (9 EMA crosses above 21 EMA).
- **Bearish EMA Cross**: `emaCrossBearish = ta.crossunder(emaShort, emaLong)` (9 EMA crosses below 21 EMA).
#### **MACD**
- **Parameters**:
- Fast Length: 12 periods (user adjustable).
- Slow Length: 26 periods (user adjustable).
- Signal Smoothing: 9 periods (user adjustable).
- **Calculation**:
- ` = ta.macd(close, macdFastLength, macdSlowLength, macdSignalSmoothing)`.
- Only the MACD line and signal line are used; the histogram is ignored (`_`).
- **Conditions**:
- **Bullish MACD Cross**: `macdCrossBullish = ta.crossover(macdLine, 0)` (MACD crosses above zero).
- **Bearish MACD Cross**: `macdCrossBearish = ta.crossunder(macdLine, 0)` (MACD crosses below zero).
#### **Combined Confirmation Conditions**
- **Bullish Confirmation**:
- Condition: `bullishConfirmation = emaCrossBullish and macdCrossBullish`.
- Visual: Very light green background (`color.new(color.green, 90)`).
- Meaning: A bullish trend is confirmed when the 9 EMA crosses above the 21 EMA AND the MACD crosses above zero.
- **Bearish Confirmation**:
- Condition: `bearishConfirmation = emaCrossBearish and macdCrossBearish`.
- Visual: Very light red background (`color.new(color.red, 90)`).
- Meaning: A bearish trend is confirmed when the 9 EMA crosses below the 21 EMA AND the MACD crosses below zero.
---
### **5. Visual Outputs**
- **Reversal Zones**:
- Red background for oversold conditions.
- Green background for overbought conditions.
- **Confirmation Zones**:
- Light green background for bullish confirmation.
- Light red background for bearish confirmation.
- Note: The script does not plot the Bollinger Bands, EMAs, or MACD lines—only the background zones are visualized.
---
### **6. Alerts**
- **Deep Oversold Alert**: Triggers when the red zone condition is met.
- **Deep Overbought Alert**: Triggers when the green zone condition is met.
- No alerts are set for the confirmation zones (EMA/MACD crosses).
---
### **7. How It Works**
1. **Reversal Detection**:
- The script uses Bollinger Bands and RSI to flag extreme price levels (red for oversold, green for overbought).
- These zones suggest potential reversals but are not confirmed yet.
2. **Trend Confirmation**:
- EMA crosses (9/21) and MACD zero-line crosses provide confirmation of a trend direction.
- Bullish confirmation (green) occurs when both indicators align upward.
- Bearish confirmation (red) occurs when both indicators align downward.
3. **Trading Strategy**:
- Look for a red zone (oversold) followed by a bullish confirmation for a potential long entry.
- Look for a green zone (overbought) followed by a bearish confirmation for a potential short entry.
---
### **8. How to Use**
1. Add the script to TradingView.
2. Adjust inputs (EMA lengths, MACD settings) if desired.
3. Monitor the chart:
- Red zones indicate oversold conditions—watch for a potential upward reversal.
- Green zones indicate overbought conditions—watch for a potential downward reversal.
- Light green/red backgrounds confirm the trend direction after a reversal zone.
4. Set up alerts for oversold/overbought conditions to catch reversal signals early.
---
### **9. Key Features**
- **Dual Purpose**: Combines reversal detection (Bollinger Bands + RSI) with trend confirmation (EMA + MACD).
- **Visual Simplicity**: Uses background colors instead of plotting lines, keeping the chart clean.
- **Customizable**: Allows users to tweak EMA and MACD periods.
- **Alerts**: Notifies users of extreme conditions for timely action.
---
### **10. Limitations**
- No plotted indicators (e.g., Bollinger Bands, EMAs, MACD) for visual reference—relies entirely on background shading.
- Confirmation signals (EMA/MACD) may lag behind reversal zones, potentially missing fast reversals.
- No alerts for confirmation zones, limiting real-time notification of trend confirmation.
This script is ideal for traders who want a straightforward way to spot potential reversals and confirm them with trend-following indicators, all overlaid on the price chart.
Moving Average Convergence DivergenceThis script is written in Pine Script (version 6) for TradingView and implements the **Moving Average Convergence Divergence (MACD)** indicator. The MACD is a popular momentum oscillator used to identify trend direction, strength, and potential reversals. This version includes customizable inputs, visual enhancements (like crossover markers), and alerts for key events. Below is a detailed explanation of the script:
---
### **1. Purpose**
- The script calculates and displays the MACD line, signal line, and histogram.
- It highlights key events such as MACD/signal line crossovers and zero-line crosses with shapes and colors.
- It provides alerts for changes in the histogram's direction (rising to falling or vice versa).
---
### **2. User Inputs**
- **Fast Length**: Period for the fast moving average (default: 12).
- **Slow Length**: Period for the slow moving average (default: 26).
- **Source**: Data input for calculation (default: closing price, `close`).
- **Signal Smoothing**: Period for the signal line (default: 9, range: 1–50).
- **Oscillator MA Type**: Type of moving average for MACD calculation (options: SMA or EMA, default: EMA).
- **Signal Line MA Type**: Type of moving average for the signal line (options: SMA or EMA, default: EMA).
---
### **3. MACD Calculation**
The MACD is calculated in three parts:
1. **MACD Line**: Difference between the fast and slow moving averages.
- Fast MA: Either SMA or EMA of the source over `fast_length`.
- Slow MA: Either SMA or EMA of the source over `slow_length`.
- Formula: `macd = fast_ma - slow_ma`.
2. **Signal Line**: A moving average (SMA or EMA) of the MACD line over `signal_length`.
- Formula: `signal = sma_signal == "SMA" ? ta.sma(macd, signal_length) : ta.ema(macd, signal_length)`.
3. **Histogram**: Difference between the MACD line and the signal line.
- Formula: `hist = macd - signal`.
---
### **4. Key Events Detection**
#### **MACD/Signal Line Crossovers**
- **Bullish Cross**: MACD crosses above the signal line (`ta.crossover(macd, signal)`).
- **Bearish Cross**: MACD crosses below the signal line (`ta.crossunder(macd, signal)`).
#### **Zero Line Crosses**
- **Cross Above Zero**: MACD crosses above 0 (`ta.crossover(macd, 0)`).
- **Cross Below Zero**: MACD crosses below 0 (`ta.crossunder(macd, 0)`).
---
### **5. Colors**
- **MACD Line**: Green (#089981) if MACD > signal (bullish), red (#f23645) if MACD < signal (bearish).
- **Signal Line**: White (`color.white`).
- **Histogram**:
- Positive (MACD > signal): Light green (#B2DFDB) if decreasing, darker green (#26A69A) if increasing.
- Negative (MACD < signal): Light red (#FFCDD2) if increasing in magnitude, darker red (#FF5252) if decreasing in magnitude.
- **Zero Line**: Gray with 50% transparency (`color.new(#787B86, 50)`).
---
### **6. Visual Outputs**
#### **Plotted Lines**
- **MACD Line**: Plotted with dynamic coloring based on its position relative to the signal line.
- **Signal Line**: Plotted in white.
- **Histogram**: Displayed as columns, with colors indicating direction and momentum.
- **Zero Line**: Horizontal line at 0 for reference.
#### **Shapes for Key Events**
- **Bullish Cross Below Zero**: Green circle on the MACD line when MACD crosses above the signal line while still below zero.
- **Bearish Cross Above Zero**: Red circle on the MACD line when MACD crosses below the signal line while still above zero.
- **Cross Above Zero**: Green upward label at the zero line when MACD crosses above 0.
- **Cross Below Zero**: Red downward label at the zero line when MACD crosses below 0.
---
### **7. Alerts**
- **Rising to Falling**: Triggers when the histogram switches from positive (or zero) to negative.
- Condition: `hist >= 0 and hist < 0`.
- Message: "MACD histogram switched from rising to falling".
- **Falling to Rising**: Triggers when the histogram switches from negative (or zero) to positive.
- Condition: `hist <= 0 and hist > 0`.
- Message: "MACD histogram switched from falling to rising".
---
### **8. How It Works**
1. **Trend Direction**:
- MACD above signal line (green) suggests bullish momentum.
- MACD below signal line (red) suggests bearish momentum.
2. **Momentum Strength**:
- Histogram height shows the strength of the momentum (larger bars = stronger momentum).
- Histogram color changes indicate whether momentum is increasing or decreasing.
3. **Reversal Signals**:
- Crossovers between MACD and signal lines often signal potential trend changes.
- Zero-line crosses indicate shifts between bullish (above 0) and bearish (below 0) territory.
---
### **9. How to Use**
1. Add the script to TradingView.
2. Adjust inputs (e.g., fast/slow lengths, MA types) to suit your trading style.
3. Monitor the chart:
- Green MACD and upward histogram bars suggest bullish conditions.
- Red MACD and downward histogram bars suggest bearish conditions.
- Watch for circles (crossovers) and labels (zero-line crosses) for trade signals.
4. Set up alerts to notify you of histogram direction changes.
---
### **10. Key Features**
- **Customization**: Flexible MA types and periods.
- **Visual Clarity**: Dynamic colors and shapes highlight key events.
- **Alerts**: Notifies users of momentum shifts via histogram changes.
- **Intuitive**: Combines all MACD components (line, signal, histogram) in one indicator.
This script is ideal for traders who rely on MACD for momentum analysis and want clear visual cues and alerts for decision-making.
Smart MACD Reversal Oscillator Pro [TradeDots]The TradeDots Smart MACD Reversal Oscillator Pro is an advanced technical analysis tool that combines traditional MACD functionality with multi-layered signal detection and divergence identification systems. This comprehensive oscillator helps traders identify potential market reversals, trend continuations, and extremes with greater precision than conventional indicators.
📝 HOW IT WORKS
Accumulation & Distribution Detection System
The indicator begins with a proprietary calculation that identifies potential accumulation and distribution phases:
Calculation: Processes EMA differentials with specific time constants to detect underlying accumulation/distribution pressure
Visualization: Green-filled areas indicate accumulation phases (bullish pressure building) while red-filled areas show distribution phases (bearish pressure building)
Significance: This system often identifies trend reversals before traditional indicators by detecting institutional buying/selling activity
Multi-Timeframe MACD Implementation
Unlike traditional MACD indicators that use a single timeframe, this oscillator incorporates multiple calculation methods:
1. Primary Oscillator: Uses a proprietary calculation that combines price extremes with smoothed averages:
Implements specialized moving average types (SMMA and ZLEMA)
Generates a histogram that changes color based on price position relative to these averages
Produces a signal line that identifies crossover opportunities
2. Secondary MACD: Traditional MACD implementation with customizable parameters:
User-selectable MA types (SMA/EMA) for both oscillator and signal line
Color-coded histogram for momentum visualization
Separate crossover detection system
Dynamic Band System
The indicator implements an innovative dynamic band system to identify overbought and oversold conditions:
Band Calculation: Analyzes historical oscillator values to establish statistically significant extremes
Adaptive Scaling: Automatically adjusts to different market volatility regimes using a customizable Y-axis scale factor
Signal Integration: Incorporates band levels into signal generation for higher-probability trades
Signal Generation System
Four distinct signal types are generated to identify potential trading opportunities:
Green Dots: Bullish crossover signals (primary oscillator crosses above signal line)
Red Dots: Bearish crossover signals (primary oscillator crosses below signal line)
Blue Dots: Secondary MACD bullish crossovers in oversold territory
Orange Dots: Secondary MACD bearish crossovers in overbought territory
Advanced Divergence Detection
The oscillator incorporates a sophisticated divergence detection system:
Regular Divergences: Identifies when price makes lower lows while the oscillator makes higher lows (bullish) or price makes higher highs while the oscillator makes lower highs (bearish)
Hidden Divergences: Optional detection of continuation patterns (currently disabled by default)
Visual Markers: Clear labels identifying divergence formations directly on the chart
Zero-Line Filter: Optional filtering to only detect divergences that don't cross the zero line
🛠️ HOW TO USE
Signal Interpretation
Momentum Direction
Histogram Color: Green shades indicate bullish momentum, red shades indicate bearish momentum
Oscillator Position: Above zero indicates bullish momentum, below zero indicates bearish momentum
Filled Background: Green fill shows accumulation phases, red fill shows distribution phases
Buy Signals (In Order of Strength)
Bullish Divergence + Green Dot: Highest probability reversal signal (price making lower lows while oscillator makes higher lows, followed by crossover)
Green Dot Below Short Average Line: Strong oversold reversal signal
Green Dot + Blue Dot Alignment: Multiple indicator confirmation
Green Dot During Green Fill Expansion: Trend continuation signal
Sell Signals (In Order of Strength)
Bearish Divergence + Red Dot: Highest probability reversal signal (price making higher highs while oscillator makes lower highs, followed by crossover)
Red Dot Above Long Average Line: Strong overbought reversal signal
Red Dot + Orange Dot Alignment: Multiple indicator confirmation
Red Dot During Red Fill Expansion: Trend continuation signal
Trading Strategies
Divergence Trading Strategy
Identify "Bullish" or "Bearish" divergence labels on the chart
Wait for confirming dot signal in the same direction
Enter when both divergence and dot signal align
Set stops based on recent swing points
Target the opposite band or previous significant level
Overbought/Oversold Reversal Strategy
Wait for the oscillator to reach extreme bands (Long or Short Average lines)
Look for crossover signals at these extreme levels:
Bullish Crossover (Oversold): Green dots when oscillator is below Short Average
Bearish Crossover (Overbought): Red dots when oscillator is above Long Average
Enter when price confirms the reversal
Set stops beyond the recent extreme
Target the opposite band or at least the zero line
Multi-Confirmation Strategy
For highest probability trades, look for:
Multiple signal types aligning (e.g., Green + Blue dots or Red + Orange dots)
Signals occurring at band extremes
Divergence patterns reinforcing the signal direction
Background fill color supporting the signal (green fill for buys, red fill for sells)
⚙️ CUSTOMIZATION OPTIONS
The indicator offers extensive customization to adapt to different markets and trading styles:
Y-axis scale factor: Controls the band range multiplier (default 2.5)
Parameter 1: Controls the smoothing period for main calculations (default 8)
Parameter 2: Controls the signal line calculation period (default 9)
Fast/Slow Length: Controls traditional MACD calculation periods (12/26)
Oscillator MA Type: Selection between SMA and EMA for main oscillator
Signal Line MA Type: Selection between SMA and EMA for signal line
Divergence Settings: Customizable lookback parameters and display options
Don't touch the zero line?: Toggle option for divergence filtering
❗️LIMITATIONS
Signal Lag: The system identifies reversals after they have begun, potentially missing the absolute bottom or top
False Signals: Can occur during periods of high volatility or during ranging markets
Divergence Validation: Not all divergences lead to reversals; confirmation is essential
Timeframe Sensitivity: The indicator works best on intermediate timeframes (15m to 4h) for most markets
Bar Closing Requirement: All signals are based on closed candles and may be subject to change until the candle closes
RISK DISCLAIMER
Trading involves substantial risk, and most traders may incur losses. All content, tools, scripts, articles, and education provided by TradeDots are for informational and educational purposes only. Past performance is not indicative of future results.
This oscillator should be used as part of a complete trading approach that includes proper risk management, consideration of the broader market context, and confirmation from price action patterns. No trading system can guarantee profits, and users should always exercise caution and use appropriate position sizing.
Ghosty's MACD ROCThis indicator takes the classic MACD (Moving Average Convergence Divergence) and gives it a fresh twist to help you spot trading opportunities faster and smoother. It uses a single MACD—set to a medium speed (24, 52, 18)—and focuses on how quickly the MACD is moving up or down, rather than waiting for it to cross its signal line.
Here’s how it works:
The purple line (MACD) and yellow line (signal) show you the trend’s strength, squished into a simple -1 to 1 range so they’re easy to read. When they merge and flatten, a change is brewing.
The blue line above (Rate of Change, or ROC) tracks the MACD’s speed. It’s smoothed out to cut through market noise, so you’re not distracted by tiny wiggles.
Green crosses pop up on the MACD line when its speed turns positive—think of it as a “go” signal for buying. Red crosses appear when the speed turns negative—a “stop” or sell signal.
It’s designed to catch moves early, before the trend fully kicks in, while keeping false signals in check. Perfect for traders who want a clear, no-fuss way to time their entries and exits. You can tweak the settings—like the MACD lengths or smoothing—to match your style or market.
enjoy -
👻