OPEN-SOURCE SCRIPT
Mis à jour Unusual Moves Detector

# Unusual Moves Detector
A TradingView indicator that detects and alerts users to unusual price movements based on ATR (Average True Range) and volume analysis. This indicator is designed to identify price action that deviates significantly from normal market behavior.
## Features
### Core Detection Mechanisms
- **ATR-Based Volatility Detection**: Identifies price movements that exceed normal volatility levels
- **Volume Analysis**: Optional volume spike detection to confirm unusual moves
- **Signal Persistence Tracking**: Monitors how many signals occur within a lookback period
### Visual Indicators
- **Up/Down Arrows**: Green triangles for unusual upward moves, red triangles for downward moves
- **Signal Strength Labels**: Numbers showing how many signals occurred in the lookback period
- **Real-time Metrics Table**: Displays current ATR and volume ratios
### Customizable Parameters
1. **ATR Period** (default: 14)
- Length for Average True Range calculation
- Affects volatility measurement sensitivity
2. **Volume MA Period** (default: 20)
- Period for volume moving average
- Used in volume spike detection
3. **ATR Multiplier** (default: 2.0)
- How many times the ATR to trigger a signal
- Higher values = less sensitive to price moves
4. **Volume Multiplier** (default: 2.0)
- How many times the average volume to consider "high volume"
- Higher values = less sensitive to volume spikes
5. **Include Volume Analysis** (default: true)
- Toggle volume confirmation requirement
- When disabled, only price volatility matters
6. **Signal Lookback Period** (default: 5)
- How many bars to look back for signal counting
- Affects signal strength calculation
### Alert System
- **Upward Movement Alerts**: Triggers when unusual upward price action is detected
- **Downward Movement Alerts**: Triggers when unusual downward price action is detected
- **Customizable Alert Messages**: Can be configured in TradingView's alert system
### Information Display
Real-time metrics table shows:
- Current ATR value
- Volume ratio (current volume / average volume)
- Net signal count (up signals - down signals)
## Installation
1. Open TradingView's Pine Script Editor
2. Create a new indicator
3. Copy and paste the indicator code
4. Click "Add to Chart" to apply the indicator
## Usage Guide
### Basic Setup
1. Add the indicator to your chart
2. Adjust parameters based on your trading timeframe and style
3. Configure alerts if desired
### Parameter Tuning Tips
- **For More Signals**: Lower the ATR and Volume multipliers
- **For Fewer Signals**: Increase the multipliers
- **For Trend Following**: Increase the lookback period
- **For Quick Signals**: Decrease the lookback period
### Alert Setup
1. Click the indicator settings
2. Go to "Create Alert"
3. Choose either up or down move condition
4. Configure alert settings (sound, notification, etc.)
## Backtesting Compatibility
- Fully compatible with TradingView's backtesting engine
- All calculations use historical data only
- No forward-looking data or repainting
## Technical Details
- Written in Pine Script v6
- Optimized for real-time calculation
- Uses native TradingView functions for performance
- Compatible with all timeframes
## Performance Considerations
- Lightweight computation using built-in functions
- Efficient memory usage with variable optimization
- Real-time calculation with minimal lag
## Support and Contribution
Feel free to modify and improve the indicator according to your needs. The code is well-commented for easy understanding and modification.
## License
Free to use and modify for personal and commercial purposes.
## Disclaimer
This indicator is for informational purposes only. Always conduct your own analysis and consider multiple factors when making trading decisions.
A TradingView indicator that detects and alerts users to unusual price movements based on ATR (Average True Range) and volume analysis. This indicator is designed to identify price action that deviates significantly from normal market behavior.
## Features
### Core Detection Mechanisms
- **ATR-Based Volatility Detection**: Identifies price movements that exceed normal volatility levels
- **Volume Analysis**: Optional volume spike detection to confirm unusual moves
- **Signal Persistence Tracking**: Monitors how many signals occur within a lookback period
### Visual Indicators
- **Up/Down Arrows**: Green triangles for unusual upward moves, red triangles for downward moves
- **Signal Strength Labels**: Numbers showing how many signals occurred in the lookback period
- **Real-time Metrics Table**: Displays current ATR and volume ratios
### Customizable Parameters
1. **ATR Period** (default: 14)
- Length for Average True Range calculation
- Affects volatility measurement sensitivity
2. **Volume MA Period** (default: 20)
- Period for volume moving average
- Used in volume spike detection
3. **ATR Multiplier** (default: 2.0)
- How many times the ATR to trigger a signal
- Higher values = less sensitive to price moves
4. **Volume Multiplier** (default: 2.0)
- How many times the average volume to consider "high volume"
- Higher values = less sensitive to volume spikes
5. **Include Volume Analysis** (default: true)
- Toggle volume confirmation requirement
- When disabled, only price volatility matters
6. **Signal Lookback Period** (default: 5)
- How many bars to look back for signal counting
- Affects signal strength calculation
### Alert System
- **Upward Movement Alerts**: Triggers when unusual upward price action is detected
- **Downward Movement Alerts**: Triggers when unusual downward price action is detected
- **Customizable Alert Messages**: Can be configured in TradingView's alert system
### Information Display
Real-time metrics table shows:
- Current ATR value
- Volume ratio (current volume / average volume)
- Net signal count (up signals - down signals)
## Installation
1. Open TradingView's Pine Script Editor
2. Create a new indicator
3. Copy and paste the indicator code
4. Click "Add to Chart" to apply the indicator
## Usage Guide
### Basic Setup
1. Add the indicator to your chart
2. Adjust parameters based on your trading timeframe and style
3. Configure alerts if desired
### Parameter Tuning Tips
- **For More Signals**: Lower the ATR and Volume multipliers
- **For Fewer Signals**: Increase the multipliers
- **For Trend Following**: Increase the lookback period
- **For Quick Signals**: Decrease the lookback period
### Alert Setup
1. Click the indicator settings
2. Go to "Create Alert"
3. Choose either up or down move condition
4. Configure alert settings (sound, notification, etc.)
## Backtesting Compatibility
- Fully compatible with TradingView's backtesting engine
- All calculations use historical data only
- No forward-looking data or repainting
## Technical Details
- Written in Pine Script v6
- Optimized for real-time calculation
- Uses native TradingView functions for performance
- Compatible with all timeframes
## Performance Considerations
- Lightweight computation using built-in functions
- Efficient memory usage with variable optimization
- Real-time calculation with minimal lag
## Support and Contribution
Feel free to modify and improve the indicator according to your needs. The code is well-commented for easy understanding and modification.
## License
Free to use and modify for personal and commercial purposes.
## Disclaimer
This indicator is for informational purposes only. Always conduct your own analysis and consider multiple factors when making trading decisions.
Notes de version
# Unusual Moves DetectorA TradingView indicator that detects and alerts users to unusual price movements based on ATR (Average True Range) and volume analysis. This indicator is designed to identify price action that deviates significantly from normal market behavior.
## Features
### Core Detection Mechanisms
- **ATR-Based Volatility Detection**: Identifies price movements that exceed normal volatility levels
- **Volume Analysis**: Optional volume spike detection to confirm unusual moves
- **Signal Persistence Tracking**: Monitors how many signals occur within a lookback period
### Visual Indicators
- **Up/Down Arrows**: Green triangles for unusual upward moves, red triangles for downward moves
- **Signal Strength Labels**: Numbers showing how many signals occurred in the lookback period
- **Real-time Metrics Table**: Displays current ATR and volume ratios
### Customizable Parameters
1. **ATR Period** (default: 14)
- Length for Average True Range calculation
- Affects volatility measurement sensitivity
2. **Volume MA Period** (default: 20)
- Period for volume moving average
- Used in volume spike detection
3. **ATR Multiplier** (default: 2.0)
- How many times the ATR to trigger a signal
- Higher values = less sensitive to price moves
4. **Volume Multiplier** (default: 2.0)
- How many times the average volume to consider "high volume"
- Higher values = less sensitive to volume spikes
5. **Include Volume Analysis** (default: true)
- Toggle volume confirmation requirement
- When disabled, only price volatility matters
6. **Signal Lookback Period** (default: 5)
- How many bars to look back for signal counting
- Affects signal strength calculation
### Alert System
Three alert conditions available:
1. **Upward Movement Alerts**
- Triggers only for unusual upward price action
- Message includes upward movement indicator
2. **Downward Movement Alerts**
- Triggers only for unusual downward price action
- Message includes downward movement indicator
3. **Combined Movement Alerts** (NEW)
- Triggers for both upward and downward movements
- Comprehensive message including:
- Movement direction
- Current price
- Current ATR value
- Volume ratio
- Perfect for traders who want to monitor both directions with a single alert
### Alert Setup Guide
1. Click the indicator settings
2. Go to "Create Alert"
3. Choose your preferred alert condition:
- "Unusual Up Move Alert" for upward moves only
- "Unusual Down Move Alert" for downward moves only
- "Any Unusual Move Alert" for both directions with detailed information
4. Configure alert settings:
- Sound
- Notification method
- Frequency
- Expiration
### Information Display
Real-time metrics table shows:
- Current ATR value
- Volume ratio (current volume / average volume)
- Net signal count (up signals - down signals)
## Installation
1. Open TradingView's Pine Script Editor
2. Create a new indicator
3. Copy and paste the indicator code
4. Click "Add to Chart" to apply the indicator
## Usage Guide
### Basic Setup
1. Add the indicator to your chart
2. Adjust parameters based on your trading timeframe and style
3. Configure alerts if desired
### Parameter Tuning Tips
- **For More Signals**: Lower the ATR and Volume multipliers
- **For Fewer Signals**: Increase the multipliers
- **For Trend Following**: Increase the lookback period
- **For Quick Signals**: Decrease the lookback period
## Backtesting Compatibility
- Fully compatible with TradingView's backtesting engine
- All calculations use historical data only
- No forward-looking data or repainting
## Technical Details
- Written in Pine Script v6
- Optimized for real-time calculation
- Uses native TradingView functions for performance
- Compatible with all timeframes
## Performance Considerations
- Lightweight computation using built-in functions
- Efficient memory usage with variable optimization
- Real-time calculation with minimal lag
## Support and Contribution
Feel free to modify and improve the indicator according to your needs. The code is well-commented for easy understanding and modification.
## License
Free to use and modify for personal and commercial purposes.
## Disclaimer
This indicator is for informational purposes only. Always conduct your own analysis and consider multiple factors when making trading decisions.
Script open-source
Dans l'esprit de TradingView, le créateur de ce script l'a rendu open-source, afin que les traders puissent examiner et vérifier sa fonctionnalité. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit de TradingView, le créateur de ce script l'a rendu open-source, afin que les traders puissent examiner et vérifier sa fonctionnalité. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.