OPEN-SOURCE SCRIPT

All-in-One Script (KAMA + ATR + EMA/Bollinger)

This All-in-One Script (KAMA + ATR + EMA/Bollinger) is a comprehensive trading system that combines three different technical analysis tools in a single indicator:

1. KAMA (Kaufman Adaptive Moving Average):
- An advanced moving average that automatically adjusts to market volatility
- Moves quickly during trending periods and slowly in sideways markets
- Default period is set to 21
- Displayed with a blue line
- Adapts to both trending and ranging markets

2. ATR (Average True Range) Levels:
- Creates volatility-based support and resistance levels
- Uses daily (D) timeframe by default
- Utilizes 14-period ATR value
- Shows upper (green) and lower (red) ATR levels on the last bar
- Displays price values next to each level
- Helps identify potential price targets and stop levels

3. EMA (Exponential Moving Average) and Bollinger Bands:
- 9-period EMA displayed with thick orange line
- Optional Bollinger Bands based on this EMA
- Additional smoothing options available:
* SMA (Simple Moving Average)
* EMA (Exponential Moving Average)
* SMMA/RMA (Smoothed/Running Moving Average)
* WMA (Weighted Moving Average)
* VWMA (Volume Weighted Moving Average)

Customization Options:
- Each component (KAMA, ATR, EMA) can be toggled on/off independently
- Adjustable period values for all indicators
- Configurable Bollinger Band deviation multiplier (default 2.0)
- EMA offset value can be adjusted
- Various color and style settings

Use Cases:
1. Trend Following:
- Identify trend direction and strength
- Spot potential trend reversals
- Monitor momentum changes

2. Volatility Trading:
- Determine dynamic support/resistance levels
- Set appropriate stop-loss levels
- Gauge market volatility conditions

3. Price Action Analysis:
- Multiple timeframe analysis
- Trend confirmation
- Divergence identification

4. Risk Management:
- ATR-based position sizing
- Dynamic stop-loss placement
- Volatility-adjusted targets

Trading Applications:
- Suitable for both trend followers and swing traders
- Effective in various market conditions
- Helps in both entry and exit decisions
- Provides multiple confirmation signals
- Works across different timeframes

Technical Details:
- Built for TradingView platform
- Uses Pine Script version 6
- Optimized for real-time calculation
- Minimal performance impact
- Reliable data processing

This indicator is ideal for traders who want a comprehensive view of market conditions without overcrowding their charts with multiple indicators. It combines trend following, volatility measurement, and momentum analysis in one package.
ATRAverage True Range (ATR)Exponential Moving Average (EMA)Kaufman's Adaptive Moving Average (KAMA)

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal