OPEN-SOURCE SCRIPT
已更新 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.
版本注释
Advanced Coding版本注释
Advanced Coding 2.0版本注释
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.
版本注释
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.
版本注释
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.
版本注释
Now, when "Show Signal Text" is enabled, new triangles appear with "Long" or "Short" text inside them. When disabled, only triangles show without text. 开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。