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! 🚀📈
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.