OPEN-SOURCE SCRIPT
Community MoneyLine

Overview
The Community MoneyLine is a advanced volatility-based trend-following indicator, refined for precision entries and exits. It is designed to capture macro market shifts while providing tools to mitigate the "sideways meat grinder." This version features built-in smoothing and optional filters to help traders avoid false signals during low-volatility periods.
How it Works
The core engine uses a modified trailing-stop mechanism that generates a unique "Staircase Support/Resistance."
In an Uptrend (Bullish): The green support line only moves UP with the price, locking in profits. It will never move down until the trend officially flips.
In a Downtrend (Bearish): The red resistance line only moves DOWN, tracking the descent. It will never move up until momentum shifts back.
The indicator is designed to wait for a decisive price action (such as a low touching the line in a bullish trend) before triggering a "Flip."
Key Features
"Clean Break" Signals: To maintain visual clarity, the script features a gap between trend shifts. This removes confusing vertical connecting lines and highlights the exact moment a pivot occurs.
Heikin Ashi Price Smoothing: The script internally utilizes Heikin Ashi candle calculations for its trailing-stop logic. This significantly reduces whipsaws caused by single-candle wicks or "fake" price spikes, ensuring you stick with the dominant trend longer.
Pinpointed Labeling: "Bullish" and "Bearish" labels are pinned precisely to the MoneyLine itself rather than floating above the candles, ensuring constant visibility and a clean chart.
Momentum Filter (Noise Reduction): Features an EMA-based filter that requires price confirmation relative to a medium-term moving average before a trend flip is confirmed. This is designed specifically for range-bound or "choppy" market phases.
Settings Explained (Current Defaults)
ATR Sensitivity (Current: 7): Controls the lookback period for the Average True Range. A value of 7 provides a balance between rapid reaction and stability.
Trend Depth (Current: 3.5): This is the multiplier for the ATR. A 3.5 depth pushes the line further from the price action, capturing larger macro moves while avoiding premature stop-outs during normal volatility.
Use Heikin Ashi Smoothing: Use HA candles internally to smooth the trailing stop calculation.
Label Offset (Current: 0.6): Customizes the vertical gap between the signal text and the MoneyLine (higher values push the labels further away).
Enable Momentum Filter: If enabled, the system requires an additional confirmation before flipping to Bullish (must be > EMA) or Bearish (must be < EMA). Enable this to filter range chop.
The Community MoneyLine is a advanced volatility-based trend-following indicator, refined for precision entries and exits. It is designed to capture macro market shifts while providing tools to mitigate the "sideways meat grinder." This version features built-in smoothing and optional filters to help traders avoid false signals during low-volatility periods.
How it Works
The core engine uses a modified trailing-stop mechanism that generates a unique "Staircase Support/Resistance."
In an Uptrend (Bullish): The green support line only moves UP with the price, locking in profits. It will never move down until the trend officially flips.
In a Downtrend (Bearish): The red resistance line only moves DOWN, tracking the descent. It will never move up until momentum shifts back.
The indicator is designed to wait for a decisive price action (such as a low touching the line in a bullish trend) before triggering a "Flip."
Key Features
"Clean Break" Signals: To maintain visual clarity, the script features a gap between trend shifts. This removes confusing vertical connecting lines and highlights the exact moment a pivot occurs.
Heikin Ashi Price Smoothing: The script internally utilizes Heikin Ashi candle calculations for its trailing-stop logic. This significantly reduces whipsaws caused by single-candle wicks or "fake" price spikes, ensuring you stick with the dominant trend longer.
Pinpointed Labeling: "Bullish" and "Bearish" labels are pinned precisely to the MoneyLine itself rather than floating above the candles, ensuring constant visibility and a clean chart.
Momentum Filter (Noise Reduction): Features an EMA-based filter that requires price confirmation relative to a medium-term moving average before a trend flip is confirmed. This is designed specifically for range-bound or "choppy" market phases.
Settings Explained (Current Defaults)
ATR Sensitivity (Current: 7): Controls the lookback period for the Average True Range. A value of 7 provides a balance between rapid reaction and stability.
Trend Depth (Current: 3.5): This is the multiplier for the ATR. A 3.5 depth pushes the line further from the price action, capturing larger macro moves while avoiding premature stop-outs during normal volatility.
Use Heikin Ashi Smoothing: Use HA candles internally to smooth the trailing stop calculation.
Label Offset (Current: 0.6): Customizes the vertical gap between the signal text and the MoneyLine (higher values push the labels further away).
Enable Momentum Filter: If enabled, the system requires an additional confirmation before flipping to Bullish (must be > EMA) or Bearish (must be < EMA). Enable this to filter range chop.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.