OPEN-SOURCE SCRIPT
Telah dikemas kini MACD Liquidity Tracker System

MACD Liquidity Tracker System
๐น Enhanced MACD with candle coloring, entry markers, and customizable signal logic.
๐ง Features:
This tool combines a color-coded MACD histogram with signal-based candle colors and small shape markers (๐ผ๐ฝ) for clear market momentum and entry visualization.
๐ Visuals:
MACD Histogram (Sub-panel):
4 dynamic colors to show momentum direction:
๐น Bright Blue = MACD > 0 & rising (strong bullish)
๐น Dark Blue = MACD > 0 & falling (weakening bullish)
๐น Bright Magenta = MACD < 0 & falling (strong bearish)
๐น Dark Magenta = MACD < 0 & rising (weakening bearish)
Price Candles (Main Chart):
๐น Bright Blue = Active Long signal
๐น Bright Magenta = Active Short signal
Entry Markers:
๐ผ Blue triangle (below candle) = Start of Long
๐ฝ Magenta triangle (above candle) = Start of Short
โ๏ธ System Types (select in settings):
Normal:
๐น Long = MACD > 0
๐น Short = MACD < 0
Fast: (Based on histogram color)
๐น Long = Bright Blue OR Dark Magenta
๐น Short = Dark Blue OR Bright Magenta
Safe:
๐น Long = Only Bright Blue
๐น Short = All other colors
๐ Alerts:
Alerts trigger only on the first bar of a new Long/Short signal.
Easy to set up using TradingViewโs alert system.
๐ How to Use:
Add the indicator to your chart
Open settings and select a System Type
Adjust MACD parameters if needed
Use histogram color + candle color for momentum and signal confirmation
Set alerts for clean entries if desired
๐ก Ideal for traders seeking visual clarity and flexible MACD-based strategies.
๐น Enhanced MACD with candle coloring, entry markers, and customizable signal logic.
๐ง Features:
This tool combines a color-coded MACD histogram with signal-based candle colors and small shape markers (๐ผ๐ฝ) for clear market momentum and entry visualization.
๐ Visuals:
MACD Histogram (Sub-panel):
4 dynamic colors to show momentum direction:
๐น Bright Blue = MACD > 0 & rising (strong bullish)
๐น Dark Blue = MACD > 0 & falling (weakening bullish)
๐น Bright Magenta = MACD < 0 & falling (strong bearish)
๐น Dark Magenta = MACD < 0 & rising (weakening bearish)
Price Candles (Main Chart):
๐น Bright Blue = Active Long signal
๐น Bright Magenta = Active Short signal
Entry Markers:
๐ผ Blue triangle (below candle) = Start of Long
๐ฝ Magenta triangle (above candle) = Start of Short
โ๏ธ System Types (select in settings):
Normal:
๐น Long = MACD > 0
๐น Short = MACD < 0
Fast: (Based on histogram color)
๐น Long = Bright Blue OR Dark Magenta
๐น Short = Dark Blue OR Bright Magenta
Safe:
๐น Long = Only Bright Blue
๐น Short = All other colors
๐ Alerts:
Alerts trigger only on the first bar of a new Long/Short signal.
Easy to set up using TradingViewโs alert system.
๐ How to Use:
Add the indicator to your chart
Open settings and select a System Type
Adjust MACD parameters if needed
Use histogram color + candle color for momentum and signal confirmation
Set alerts for clean entries if desired
๐ก Ideal for traders seeking visual clarity and flexible MACD-based strategies.
Nota Keluaran
Advanced CodingNota Keluaran
Advanced Coding 2.0Nota Keluaran
System Type Use CasesNormal: Best for swing trading or capturing longer-term trends in stable markets.
Fast: Optimized for scalping or high-volatility markets like crypto or forex, leveraging early momentum shifts.
Safe: Ideal for risk-averse traders or choppy markets, prioritizing strong bullish signals.
Trading Tips
Combine with support/resistance levels to confirm signals.
Test system types on a demo account to match your market (e.g., "Fast" for crypto, "Safe" for stocks).
Ideal For
Styles: Scalping, day trading, or swing trading.
Markets: Effective in volatile markets (forex, crypto, indices) and stable markets (stocks) with appropriate system settings.
Strategies: Momentum trading, trend-following, or reversal setups, depending on the chosen system type.
Nota Keluaran
Added Trend-Based Alerts: New alerts for price above/below a 50-period MA, supporting multiple MA types (SMA, EMA, WMA, HMA, RMA, LSMA, DEMA, TEMA, VIDYA).MA Visualization: Plots the selected MA on the main chart for easy trend reference.
Preserved Core Logic: No changes to MACD calculations, signal logic (Fast, Normal, Safe), or existing alerts, ensuring compatibility with previous setups.
Use Case: Use trend alerts to filter MACD signals (e.g., only take Long signals when price is above the MA) or as standalone trend indicators.
System Type Use Cases (Unchanged):
Normal: Best for swing trading or capturing longer-term trends in stable markets.
Fast: Optimized for scalping or high-volatility markets like crypto or forex, leveraging early momentum shifts.
Safe: Ideal for risk-averse traders or choppy markets, prioritizing strong bullish signals.
Trading Tips:
Combine trend alerts with MACD signals for stronger confirmation (e.g., Long signals + price above MA for bullish trend trades).
Use alternative MA types (e.g., HMA or VIDYA) for faster trend detection in volatile markets.
Test system types and MA settings on a demo account to match your market (e.g., "Fast" with VIDYA for crypto scalping).
Pair with support/resistance levels for robust trade setups.
Ideal For:
Styles: Scalping, day trading, swing trading, or trend-following.
Markets: Effective in volatile markets (forex, crypto, indices) and stable markets (stocks) with appropriate system and MA settings.
Strategies: Momentum trading, trend-following, or reversal setups, now enhanced with trend-based filtering.
Verification Notes
Code Integrity: The update adds trend-based alerts without altering the original MACD logic, signals, or visuals, ensuring backward compatibility.
MA Support: All MA types (SMA, EMA, WMA, HMA, RMA, LSMA, DEMA, TEMA, VIDYA) are implemented as per the userโs provided logic, applied to price.
Alert Independence: Trend alerts (Above/Below MA) work independently of candle colors or MACD signals, addressing the userโs request for flexibility with black arrows.
Testing: Conceptually validated for correctness across MA types and system modes. Traders should test in TradingView with their preferred market/timeframe.
Nota Keluaran
Two new alerts have been added to the MACD Liquidity Tracker System script:Long Entry Signal Trigger: This alert triggers when a long entry signal (upward triangle with "Long" label) appears on the chart, based on the longEntryCondition.
Short Entry Signal Trigger: This alert triggers when a short entry signal (downward triangle with "Short" label) appears on the chart, based on the shortEntryCondition.
Nota Keluaran
Now, when "Show Signal Text" is enabled, new triangles appear with "Long" or "Short" text inside them. When disabled, only triangles show without text. Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.