OPEN-SOURCE SCRIPT
SKeTCHeX - Enhanced 20SMA Cloud

// ║
// ║ Enhanced 20SMA Cloud with Trend Colors
// ║ Developer: SKeTCHeX Institutional Algorithmic Systems
// ║
// ║ DESCRIPTION:
// ║ Professional-grade moving average indicator featuring dynamic cloud
// ║ visualization with intelligent trend-based coloring. The SMA automatically
// ║ changes color based on price position (green when bullish, red when
// ║ bearish), while the surrounding cloud provides dynamic support/resistance
// ║ zones using either ATR volatility measurement or percentage-based width.
// ║
// ║ FEATURES:
// ║ • Real-time trend detection with color-coded SMA
// ║ • Dynamic cloud bands (ATR-based or percentage-based)
// ║ • Multiple price source options (Close, Open, High, Low, HL2, HLC3, OHLC4)
// ║ • Customizable shift for forward/backward projection
// ║ • Institutional-grade visual clarity for multi-timeframe analysis
// ║
// ║ USAGE:
// ║ Green SMA/Cloud = Bullish bias (price above SMA)
// ║ Red SMA/Cloud = Bearish bias (price below SMA)
// ║ Cloud bands act as dynamic support/resistance zones
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.