OPEN-SOURCE SCRIPT
SMA Lines

📊 SMA Lines Indicator - Complete Trading System
Professional multi-feature indicator for Bursa Malaysia combining moving averages, breakout detection, smart money tracking, and visual market participant identification.

🎯 Core Components:
1. Four Simple Moving Averages
• 🟡 SMA 7 (Yellow) - Very short-term trend
• 🔴 SMA 20 (Red) - Short-term trend
• 🔵 SMA 50 (Blue) - Medium-term trend
• ⚫ SMA 200 (Black) - Long-term trend
2. Bollinger Bands
• 20-period, 2.0 std deviation
• Oversold/overbought detection
• Mean reversion opportunities
3. 10-Priority Candlestick Colors
1. 🔵 BLUE - All-Time High breakout (STRONGEST BUY)
2. ⚫ BLACK - All-Time Low breakdown (EXTREME WARNING)
3. 🟡 YELLOW - Open & Close < BB Lower (Extreme oversold)
4. 🟣 PURPLE - Close < BB Lower (Oversold)
5. 🔷 AQUA - 52-Week High breakout
6. 🟢 LIME - Bullish breakout (20-period)
7. 🟠 ORANGE - 52-Week Low breakdown
8. 🟪 FUCHSIA - Bearish breakdown
9. 🟩 GREEN - Normal bullish (Close > Open)
10. 🔴 RED - Normal bearish (Close < Open)
4. Animal Emoji Market Participants
Shows WHO controls the market (one emoji max per bar):
• 🐊 CROCODILE - Smart money/operators at major breakouts (52W/ATH + volume 2x+)
• 🐘 ELEPHANT - Big institutions (volume 4x+ & large candle 2x ATR)
• 🦈 SHARK - Liquidity hunters (volume 2.5x+ on breakouts)
• 🐂 BULL - Strong buyers (SMA alignment + rising 3 bars + volume + 1.2x ATR candle)
• 🐻 BEAR - Strong sellers (SMA reversed + falling 3 bars + volume + 1.2x ATR candle)
• 🐑 SHEEP - Weak retail (volume <0.5x, small candle, no conviction)
Priority System: Crocodile > Elephant > Shark > Bull > Bear > Sheep (no overlap)

📍 Detection Systems:
Three Breakout Levels:
• 20-Period - Short-term breakouts
• 52-Week (252 days) - Yearly resistance/support
• All-Time High/Low - Historical extremes
Volume Confirmation:
• All breakouts require 1.5x+ volume spike
• Filters false signals

⚙️ Key Settings:
• Moving Averages: Customizable periods
• Bollinger Bands: Length & std dev adjustable
• Breakout Period: Default 20 bars
• Volume Multiplier: Default 1.5x
• Toggle Controls: Enable/disable any feature

🎯 Best Trading Strategies:
1. ATH Blue Sky Breakout 🔵
• Entry: Blue candle with 🐊/🐘 emoji
• Target: Open (trail with stop)
• Position: 3-5% (highest conviction)
2. Smart Money Follow 🐊🦈🐘
• Entry: On emoji signal
• Exit: Volume normalizes
• Position: 3-4%
3. Oversold Bounce 🟡🟣
• Entry: Yellow/Purple in uptrend
• Target: BB Middle/Upper (2-3:1 RR)
• Position: 2-3%
4. Trend Following 🐂
• Entry: Bull emoji with SMA alignment
• Trail: SMA 7 or SMA 20
• Exit: Bear emoji appears

⚠️ Key Rules:
✅ Follow: Blue (ATH), Crocodile, Elephant, Bull in uptrend
❌ Avoid: Black (ATL), Sheep signals, counter-trend trades
⚡ Volume Required: All signals need volume confirmation
📊 Risk: 2-5% per trade maximum

💡 Unique Features:
• Non-overlapping emojis - Priority system ensures clean chart
• 10-level color hierarchy - Instant visual analysis
• Smart money detection - See institutional activity
• Real-time labels - Current SMA values displayed
• Professional design - Clean, no clutter

Target Market: Bursa Malaysia (LONG only)
Best Timeframes: Daily, 4H, 1H
Skill Level: Beginner to Advanced
Complete professional system combining technical analysis with behavioral market participant tracking for data-driven trading decisions! 🚀📈
Professional multi-feature indicator for Bursa Malaysia combining moving averages, breakout detection, smart money tracking, and visual market participant identification.

🎯 Core Components:
1. Four Simple Moving Averages
• 🟡 SMA 7 (Yellow) - Very short-term trend
• 🔴 SMA 20 (Red) - Short-term trend
• 🔵 SMA 50 (Blue) - Medium-term trend
• ⚫ SMA 200 (Black) - Long-term trend
2. Bollinger Bands
• 20-period, 2.0 std deviation
• Oversold/overbought detection
• Mean reversion opportunities
3. 10-Priority Candlestick Colors
1. 🔵 BLUE - All-Time High breakout (STRONGEST BUY)
2. ⚫ BLACK - All-Time Low breakdown (EXTREME WARNING)
3. 🟡 YELLOW - Open & Close < BB Lower (Extreme oversold)
4. 🟣 PURPLE - Close < BB Lower (Oversold)
5. 🔷 AQUA - 52-Week High breakout
6. 🟢 LIME - Bullish breakout (20-period)
7. 🟠 ORANGE - 52-Week Low breakdown
8. 🟪 FUCHSIA - Bearish breakdown
9. 🟩 GREEN - Normal bullish (Close > Open)
10. 🔴 RED - Normal bearish (Close < Open)
4. Animal Emoji Market Participants
Shows WHO controls the market (one emoji max per bar):
• 🐊 CROCODILE - Smart money/operators at major breakouts (52W/ATH + volume 2x+)
• 🐘 ELEPHANT - Big institutions (volume 4x+ & large candle 2x ATR)
• 🦈 SHARK - Liquidity hunters (volume 2.5x+ on breakouts)
• 🐂 BULL - Strong buyers (SMA alignment + rising 3 bars + volume + 1.2x ATR candle)
• 🐻 BEAR - Strong sellers (SMA reversed + falling 3 bars + volume + 1.2x ATR candle)
• 🐑 SHEEP - Weak retail (volume <0.5x, small candle, no conviction)
Priority System: Crocodile > Elephant > Shark > Bull > Bear > Sheep (no overlap)

📍 Detection Systems:
Three Breakout Levels:
• 20-Period - Short-term breakouts
• 52-Week (252 days) - Yearly resistance/support
• All-Time High/Low - Historical extremes
Volume Confirmation:
• All breakouts require 1.5x+ volume spike
• Filters false signals

⚙️ Key Settings:
• Moving Averages: Customizable periods
• Bollinger Bands: Length & std dev adjustable
• Breakout Period: Default 20 bars
• Volume Multiplier: Default 1.5x
• Toggle Controls: Enable/disable any feature

🎯 Best Trading Strategies:
1. ATH Blue Sky Breakout 🔵
• Entry: Blue candle with 🐊/🐘 emoji
• Target: Open (trail with stop)
• Position: 3-5% (highest conviction)
2. Smart Money Follow 🐊🦈🐘
• Entry: On emoji signal
• Exit: Volume normalizes
• Position: 3-4%
3. Oversold Bounce 🟡🟣
• Entry: Yellow/Purple in uptrend
• Target: BB Middle/Upper (2-3:1 RR)
• Position: 2-3%
4. Trend Following 🐂
• Entry: Bull emoji with SMA alignment
• Trail: SMA 7 or SMA 20
• Exit: Bear emoji appears

⚠️ Key Rules:
✅ Follow: Blue (ATH), Crocodile, Elephant, Bull in uptrend
❌ Avoid: Black (ATL), Sheep signals, counter-trend trades
⚡ Volume Required: All signals need volume confirmation
📊 Risk: 2-5% per trade maximum

💡 Unique Features:
• Non-overlapping emojis - Priority system ensures clean chart
• 10-level color hierarchy - Instant visual analysis
• Smart money detection - See institutional activity
• Real-time labels - Current SMA values displayed
• Professional design - Clean, no clutter

Target Market: Bursa Malaysia (LONG only)
Best Timeframes: Daily, 4H, 1H
Skill Level: Beginner to Advanced
Complete professional system combining technical analysis with behavioral market participant tracking for data-driven trading decisions! 🚀📈
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.