PROTECTED SOURCE SCRIPT
SMA Strategy with Re-Entry Signal (v6 Style)

Uses 5 Simple Moving Averages: SMA 10, 20, 30, 60, and 250.
Uptrend Condition:
An uptrend is defined when the closing price is above the 30-day SMA (SMA30).
Re-entry Signal Condition:
A re-entry signal is triggered when, during an uptrend, the closing price crosses above the 20-day SMA (SMA20).
Background Color Logic:
Green: Indicates an active uptrend (potential holding zone).
Red: Indicates the price has fallen below SMA30 (uptrend may be broken, increased risk).
Signal Display:
Re-entry signals are marked with an “↑” symbol below the candlestick.
All 5 SMAs (SMA10, SMA20, SMA30, SMA60, SMA250) are plotted for visual reference.
Uptrend Condition:
An uptrend is defined when the closing price is above the 30-day SMA (SMA30).
Re-entry Signal Condition:
A re-entry signal is triggered when, during an uptrend, the closing price crosses above the 20-day SMA (SMA20).
Background Color Logic:
Green: Indicates an active uptrend (potential holding zone).
Red: Indicates the price has fallen below SMA30 (uptrend may be broken, increased risk).
Signal Display:
Re-entry signals are marked with an “↑” symbol below the candlestick.
All 5 SMAs (SMA10, SMA20, SMA30, SMA60, SMA250) are plotted for visual reference.
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.