PROTECTED SOURCE SCRIPT
MA20/60/120/200

Indicator Description: Custom MA Indicator with Offset Low PriceThis Pine Script v6 indicator is designed to provide traders with a customizable and visually intuitive tool for technical analysis. It combines four simple moving averages (MA20, MA60, MA120, MA200) with unique offset low price markers, crossover signals, and price labels, making it ideal for identifying trends and key historical price levels.Key Features:Customizable Moving Averages:Displays four SMAs (MA20, MA60, MA120, MA200) with user-defined periods, colors, and line thickness.
Default colors: MA20 (semi-transparent white #ffffffbc), MA60 (light pink #FDBCB4), MA120 (light blue #ADD8E6), MA200 (semi-transparent green #6CD271).
Offset Low Price Markers ("抵扣价"):Plots circles at the low price of specific historical bars (e.g., 20 bars ago for MA20, 60 bars ago for MA60, etc.).
Colors: MA20 (semi-transparent red #C12F2F), MA60/120/200 (yellow #FFC40C).
User-configurable circle size and colors for precise visualization.
Offset Low Price Labels:Displays the low prices of the corresponding historical bars (e.g., 20 bars ago for MA20) on the last confirmed candle.
Labels are color-coded to match the offset markers and positioned near the respective MA lines for clarity.
MA20/MA60 Crossover Signals:Highlights Golden Cross (MA20 crosses above MA60) with green upward triangles below the bar.
Highlights Death Cross (MA20 crosses below MA60) with red downward triangles above the bar.
Includes alert conditions for both Golden and Death Crosses, enabling customizable notifications.
Usage:Apply the indicator to your chart and adjust the MA periods, colors, and line thickness via the settings panel.
Monitor offset low price circles to identify historical support levels.
Use crossover signals and alerts to track potential trend changes.
Ensure sufficient historical data (at least 200 bars) for full functionality, especially for MA200.
Ideal For:Traders seeking a clean, customizable MA-based indicator.
Those analyzing historical low prices for support/resistance levels.
Users looking for reliable crossover signals with alert capabilities.
Note:Ensure your chart has enough historical bars to display all offset markers (e.g., 200 bars for MA200).
Labels may overlap if MA values are close; adjust positions in the code if needed.
For further customization, refer to the Pine Script v6 Reference Manual (tradingview.com/pine-script-reference/v6/).
Default colors: MA20 (semi-transparent white #ffffffbc), MA60 (light pink #FDBCB4), MA120 (light blue #ADD8E6), MA200 (semi-transparent green #6CD271).
Offset Low Price Markers ("抵扣价"):Plots circles at the low price of specific historical bars (e.g., 20 bars ago for MA20, 60 bars ago for MA60, etc.).
Colors: MA20 (semi-transparent red #C12F2F), MA60/120/200 (yellow #FFC40C).
User-configurable circle size and colors for precise visualization.
Offset Low Price Labels:Displays the low prices of the corresponding historical bars (e.g., 20 bars ago for MA20) on the last confirmed candle.
Labels are color-coded to match the offset markers and positioned near the respective MA lines for clarity.
MA20/MA60 Crossover Signals:Highlights Golden Cross (MA20 crosses above MA60) with green upward triangles below the bar.
Highlights Death Cross (MA20 crosses below MA60) with red downward triangles above the bar.
Includes alert conditions for both Golden and Death Crosses, enabling customizable notifications.
Usage:Apply the indicator to your chart and adjust the MA periods, colors, and line thickness via the settings panel.
Monitor offset low price circles to identify historical support levels.
Use crossover signals and alerts to track potential trend changes.
Ensure sufficient historical data (at least 200 bars) for full functionality, especially for MA200.
Ideal For:Traders seeking a clean, customizable MA-based indicator.
Those analyzing historical low prices for support/resistance levels.
Users looking for reliable crossover signals with alert capabilities.
Note:Ensure your chart has enough historical bars to display all offset markers (e.g., 200 bars for MA200).
Labels may overlap if MA values are close; adjust positions in the code if needed.
For further customization, refer to the Pine Script v6 Reference Manual (tradingview.com/pine-script-reference/v6/).
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
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 dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
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.