OPEN-SOURCE SCRIPT
Updated STMD Indicator PRO

The STMD Indicator PRO is designed for traders looking to capture strong trends using moving average alignment and the powerful Elephant Bar pattern, popularized by Oliver Velez.
📋 How it works?
✔ Simple Moving Averages:
SMA 8 (Black)
SMA 13 (Purple)
SMA 20 (Blue)
SMA 200 (Red, optional filter)
✔ Signal conditions:
All SMAs aligned and trending in the same direction
Price near the short-term SMAs
A strong candle (Elephant Bar) with a big body and small opposite wick
Signal only on the first or second consecutive candle of the same color
✅ Features
✔ Background color showing trend bias
✔ Alerts ready: STMD Buy and STMD Sell
✔ Optional SMA 200 filter for higher timeframe confirmation
📌 Disclaimer: This script is for educational purposes only. Not financial advice.
📋 How it works?
✔ Simple Moving Averages:
SMA 8 (Black)
SMA 13 (Purple)
SMA 20 (Blue)
SMA 200 (Red, optional filter)
✔ Signal conditions:
All SMAs aligned and trending in the same direction
Price near the short-term SMAs
A strong candle (Elephant Bar) with a big body and small opposite wick
Signal only on the first or second consecutive candle of the same color
✅ Features
✔ Background color showing trend bias
✔ Alerts ready: STMD Buy and STMD Sell
✔ Optional SMA 200 filter for higher timeframe confirmation
📌 Disclaimer: This script is for educational purposes only. Not financial advice.
Release Notes
STMD Indicator PRO – Professional SetupThe STMD Indicator PRO is designed for traders looking to capture strong trends using moving average alignment and the powerful Elephant Bar pattern, popularized by Oliver Velez.
📋 How it works?
✔ Simple Moving Averages:
SMA 8 (Black)
SMA 13 (Purple)
SMA 20 (Blue)
SMA 200 (Red, optional filter)
✔ Signal conditions:
All SMAs aligned and trending in the same direction
Price near the short-term SMAs
A strong candle (Elephant Bar) with a big body and small opposite wick
Signal only on the first or second consecutive candle of the same color
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.