OPEN-SOURCE SCRIPT
업데이트됨 Candle Repainter - Price Direction

# 🎯 Candle Repainter - Price Direction by Mustang Algo
## Overview
A powerful and versatile indicator that repaints candles in real-time based on price direction detection. This tool helps traders quickly identify market trends by coloring candles according to bullish, bearish, or neutral momentum.
## 🌟 Key Features
### 5 Detection Methods
Choose from multiple sophisticated algorithms to detect price direction:
1. **EMA Trend** - Compares price against Exponential Moving Average with momentum confirmation
2. **Price vs SMA** - Classic crossover method using Simple Moving Average
3. **Momentum** - Pure momentum-based detection for aggressive signals
4. **Higher High/Lower Low** - Structure-based analysis identifying swing points
5. **Supertrend** - Popular ATR-based trend following system
### Visual Features
- 🟢 **Green Candles** - Bullish trend detected
- 🔴 **Red Candles** - Bearish trend detected
- ⚪ **Gray Candles** - Neutral/indecisive market
- 🔺 **Triangle Signals** - Mark trend changes (optional)
- 📊 **Background Coloring** - Subtle background highlighting
- 📈 **Overlay Indicators** - Display the chosen MA/Supertrend line
### Smart Signal System
- **Default Mode**: Shows triangles ONLY on trend changes (cleaner charts)
- **All Candles Mode**: Display signals on every bullish/bearish candle
- Customizable signal visibility
- Real-time statistics table
## ⚙️ Customizable Parameters
### Method-Specific Settings
- **EMA Length** (default: 20) - For EMA Trend method
- **SMA Length** (default: 50) - For Price vs SMA method
- **Momentum Period** (default: 14) - For Momentum method
- **HH/LL Lookback** (default: 10) - For Higher High/Lower Low method
- **ATR Period** (default: 10) - For Supertrend method
- **ATR Multiplier** (default: 3.0) - For Supertrend method
### Visual Controls
- Toggle signal display on/off
- Choose between change signals or all candles
- Background highlighting control
## 📊 Real-Time Dashboard
A compact table displays:
- Current trend direction (Bullish/Bearish/Neutral)
- Active detection method
- Creator credit (Mustang Algo)
## 🔔 Built-in Alerts
Set up automated alerts for:
- Bullish trend changes
- Bearish trend changes
## 💡 How to Use
### For Day Traders
- Use **EMA Trend** with shorter periods (10-20)
- Enable "Show all candles" for continuous feedback
- Combine with volume for confirmation
### For Swing Traders
- Use **Supertrend** or **Price vs SMA** with longer periods (50-200)
- Keep default "changes only" mode for cleaner entries
- Perfect for multi-timeframe analysis
### For Scalpers
- Use **Momentum** method for fastest signals
- Lower timeframes (1m-5m)
- Combine with support/resistance levels
## 🎨 Best Practices
1. **Multiple Timeframes**: Confirm direction on higher timeframe
2. **Combine Methods**: Test different detection methods for your asset
3. **Risk Management**: Use stop-losses, don't rely solely on color changes
4. **Backtesting**: Test parameters on historical data before live trading
## ⚠️ Important Notes
- This is a **repainting indicator** - signals may change as new data arrives
- Best used for **trend confirmation**, not as standalone entry/exit signals
- Different methods work better on different market conditions
- Always combine with proper risk management
## 📈 Recommended Settings by Market
### Crypto (High Volatility)
- Method: Supertrend
- ATR Period: 10
- ATR Multiplier: 3.0
### Forex (Trending Markets)
- Method: EMA Trend or Price vs SMA
- Period: 20-50
### Stocks (Moderate Volatility)
- Method: Higher High/Lower Low
- Lookback: 10-15
## 🏆 Credits
**Created by Mustang Algo**
Version 1.0 - November 2025
## 📞 Support
For questions, suggestions, or bug reports, please contact Mustang Algo.
---
### Tags
`trend` `candles` `repainter` `moving-average` `supertrend` `momentum` `signals` `alerts` `multi-method` `daytrading` `swingtrading`
### Category
Trend Analysis
### License
This indicator is open source. Feel free to modify and adapt to your needs.
## Overview
A powerful and versatile indicator that repaints candles in real-time based on price direction detection. This tool helps traders quickly identify market trends by coloring candles according to bullish, bearish, or neutral momentum.
## 🌟 Key Features
### 5 Detection Methods
Choose from multiple sophisticated algorithms to detect price direction:
1. **EMA Trend** - Compares price against Exponential Moving Average with momentum confirmation
2. **Price vs SMA** - Classic crossover method using Simple Moving Average
3. **Momentum** - Pure momentum-based detection for aggressive signals
4. **Higher High/Lower Low** - Structure-based analysis identifying swing points
5. **Supertrend** - Popular ATR-based trend following system
### Visual Features
- 🟢 **Green Candles** - Bullish trend detected
- 🔴 **Red Candles** - Bearish trend detected
- ⚪ **Gray Candles** - Neutral/indecisive market
- 🔺 **Triangle Signals** - Mark trend changes (optional)
- 📊 **Background Coloring** - Subtle background highlighting
- 📈 **Overlay Indicators** - Display the chosen MA/Supertrend line
### Smart Signal System
- **Default Mode**: Shows triangles ONLY on trend changes (cleaner charts)
- **All Candles Mode**: Display signals on every bullish/bearish candle
- Customizable signal visibility
- Real-time statistics table
## ⚙️ Customizable Parameters
### Method-Specific Settings
- **EMA Length** (default: 20) - For EMA Trend method
- **SMA Length** (default: 50) - For Price vs SMA method
- **Momentum Period** (default: 14) - For Momentum method
- **HH/LL Lookback** (default: 10) - For Higher High/Lower Low method
- **ATR Period** (default: 10) - For Supertrend method
- **ATR Multiplier** (default: 3.0) - For Supertrend method
### Visual Controls
- Toggle signal display on/off
- Choose between change signals or all candles
- Background highlighting control
## 📊 Real-Time Dashboard
A compact table displays:
- Current trend direction (Bullish/Bearish/Neutral)
- Active detection method
- Creator credit (Mustang Algo)
## 🔔 Built-in Alerts
Set up automated alerts for:
- Bullish trend changes
- Bearish trend changes
## 💡 How to Use
### For Day Traders
- Use **EMA Trend** with shorter periods (10-20)
- Enable "Show all candles" for continuous feedback
- Combine with volume for confirmation
### For Swing Traders
- Use **Supertrend** or **Price vs SMA** with longer periods (50-200)
- Keep default "changes only" mode for cleaner entries
- Perfect for multi-timeframe analysis
### For Scalpers
- Use **Momentum** method for fastest signals
- Lower timeframes (1m-5m)
- Combine with support/resistance levels
## 🎨 Best Practices
1. **Multiple Timeframes**: Confirm direction on higher timeframe
2. **Combine Methods**: Test different detection methods for your asset
3. **Risk Management**: Use stop-losses, don't rely solely on color changes
4. **Backtesting**: Test parameters on historical data before live trading
## ⚠️ Important Notes
- This is a **repainting indicator** - signals may change as new data arrives
- Best used for **trend confirmation**, not as standalone entry/exit signals
- Different methods work better on different market conditions
- Always combine with proper risk management
## 📈 Recommended Settings by Market
### Crypto (High Volatility)
- Method: Supertrend
- ATR Period: 10
- ATR Multiplier: 3.0
### Forex (Trending Markets)
- Method: EMA Trend or Price vs SMA
- Period: 20-50
### Stocks (Moderate Volatility)
- Method: Higher High/Lower Low
- Lookback: 10-15
## 🏆 Credits
**Created by Mustang Algo**
Version 1.0 - November 2025
## 📞 Support
For questions, suggestions, or bug reports, please contact Mustang Algo.
---
### Tags
`trend` `candles` `repainter` `moving-average` `supertrend` `momentum` `signals` `alerts` `multi-method` `daytrading` `swingtrading`
### Category
Trend Analysis
### License
This indicator is open source. Feel free to modify and adapt to your needs.
릴리즈 노트
# 🎯 Candle Repainter - Price Direction by Mustang Algo## Overview
A powerful and versatile indicator that repaints candles in real-time based on price direction detection. This tool helps traders quickly identify market trends by coloring candles according to bullish, bearish, or neutral momentum.
## 🌟 Key Features
### 5 Detection Methods
Choose from multiple sophisticated algorithms to detect price direction:
1. **EMA Trend** - Compares price against Exponential Moving Average with momentum confirmation
2. **Price vs SMA** - Classic crossover method using Simple Moving Average
3. **Momentum** - Pure momentum-based detection for aggressive signals
4. **Higher High/Lower Low** - Structure-based analysis identifying swing points
5. **Supertrend** - Popular ATR-based trend following system
### Visual Features
- 🟢 **Green Candles** - Bullish trend detected
- 🔴 **Red Candles** - Bearish trend detected
- ⚪ **Gray Candles** - Neutral/indecisive market
- 🔺 **Triangle Signals** - Mark trend changes (optional)
- 📊 **Background Coloring** - Subtle background highlighting
- 📈 **Overlay Indicators** - Display the chosen MA/Supertrend line
### Smart Signal System
- **Default Mode**: Shows triangles ONLY on trend changes (cleaner charts)
- **All Candles Mode**: Display signals on every bullish/bearish candle
- Customizable signal visibility
- Real-time statistics table
## ⚙️ Customizable Parameters
### Method-Specific Settings
- **EMA Length** (default: 20) - For EMA Trend method
- **SMA Length** (default: 50) - For Price vs SMA method
- **Momentum Period** (default: 14) - For Momentum method
- **HH/LL Lookback** (default: 10) - For Higher High/Lower Low method
- **ATR Period** (default: 10) - For Supertrend method
- **ATR Multiplier** (default: 3.0) - For Supertrend method
### Visual Controls
- Toggle signal display on/off
- Choose between change signals or all candles
- Background highlighting control
## 📊 Real-Time Dashboard
A compact table displays:
- Current trend direction (Bullish/Bearish/Neutral)
- Active detection method
- Creator credit (Mustang Algo)
## 🔔 Built-in Alerts
Set up automated alerts for:
- Bullish trend changes
- Bearish trend changes
## 💡 How to Use
### For Day Traders
- Use **EMA Trend** with shorter periods (10-20)
- Enable "Show all candles" for continuous feedback
- Combine with volume for confirmation
### For Swing Traders
- Use **Supertrend** or **Price vs SMA** with longer periods (50-200)
- Keep default "changes only" mode for cleaner entries
- Perfect for multi-timeframe analysis
### For Scalpers
- Use **Momentum** method for fastest signals
- Lower timeframes (1m-5m)
- Combine with support/resistance levels
## 🎨 Best Practices
1. **Multiple Timeframes**: Confirm direction on higher timeframe
2. **Combine Methods**: Test different detection methods for your asset
3. **Risk Management**: Use stop-losses, don't rely solely on color changes
4. **Backtesting**: Test parameters on historical data before live trading
## ⚠️ Important Notes
- This is a **repainting indicator** - signals may change as new data arrives
- Best used for **trend confirmation**, not as standalone entry/exit signals
- Different methods work better on different market conditions
- Always combine with proper risk management
## 📈 Recommended Settings by Market
### Crypto (High Volatility)
- Method: Supertrend
- ATR Period: 10
- ATR Multiplier: 3.0
### Forex (Trending Markets)
- Method: EMA Trend or Price vs SMA
- Period: 20-50
### Stocks (Moderate Volatility)
- Method: Higher High/Lower Low
- Lookback: 10-15
## 🏆 Credits
**Created by Mustang Algo**
Version 1.0 - November 2025
## 📞 Support
For questions, suggestions, or bug reports, please contact Mustang Algo.
---
### Tags
`trend` `candles` `repainter` `moving-average` `supertrend` `momentum` `signals` `alerts` `multi-method` `daytrading` `swingtrading`
### Category
Trend Analysis
### License
This indicator is open source. Feel free to modify and adapt to your needs.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.