PROTECTED SOURCE SCRIPT
RBD + SMA/EMA/ORB + Buy/Sell Combo

What is SMA (Simple Moving Average)?
The Simple Moving Average (SMA) smooths out price data by calculating the average closing price over a specific number of periods.
It helps identify trend direction and potential reversals.
📊 SMA 21 and SMA 50 Explained:
SMA Description Use
SMA 21 Short-term moving average (last 21 candles) Shows short-term trend and momentum
SMA 50 Medium-term moving average (last 50 candles) Shows medium-term trend and key support/resistance levels
⚙️ How to Use Them Together:
Bullish Signal (Buy) 🟢
When SMA 21 crosses above SMA 50, it’s called a Golden Cross → trend turning up.
Indicates potential buy or long opportunity.
Bearish Signal (Sell) 🔴
When SMA 21 crosses below SMA 50, it’s called a Death Cross → trend turning down.
Indicates potential sell or short opportunity.
Trend Confirmation:
Price above both SMAs → uptrend.
Price below both SMAs → downtrend.
Support/Resistance:
During uptrends, SMA 21 often acts as dynamic support.
During downtrends, SMA 50 can act as resistance.
⏱ Example (for 10-min Nifty chart):
If SMA 21 > SMA 50 and price trades above both → look for buy on dips.
If SMA 21 < SMA 50 and price stays below → look for sell on rise setups.
The Simple Moving Average (SMA) smooths out price data by calculating the average closing price over a specific number of periods.
It helps identify trend direction and potential reversals.
📊 SMA 21 and SMA 50 Explained:
SMA Description Use
SMA 21 Short-term moving average (last 21 candles) Shows short-term trend and momentum
SMA 50 Medium-term moving average (last 50 candles) Shows medium-term trend and key support/resistance levels
⚙️ How to Use Them Together:
Bullish Signal (Buy) 🟢
When SMA 21 crosses above SMA 50, it’s called a Golden Cross → trend turning up.
Indicates potential buy or long opportunity.
Bearish Signal (Sell) 🔴
When SMA 21 crosses below SMA 50, it’s called a Death Cross → trend turning down.
Indicates potential sell or short opportunity.
Trend Confirmation:
Price above both SMAs → uptrend.
Price below both SMAs → downtrend.
Support/Resistance:
During uptrends, SMA 21 often acts as dynamic support.
During downtrends, SMA 50 can act as resistance.
⏱ Example (for 10-min Nifty chart):
If SMA 21 > SMA 50 and price trades above both → look for buy on dips.
If SMA 21 < SMA 50 and price stays below → look for sell on rise setups.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.