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.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.