ATRZigMACD
- Indicateurs
- Igor Nagorniuk
- Version: 1.0
- Activations: 5
ATRZigMACD - Brief Indicator Description
1. Purpose and Concept
ATRZigMACD is an advanced oscillator that combines the classic MACD with an ATR-ZigZag algorithm for filtering false signals. The indicator identifies trend reversal points considering volatility, confirms trend strength, and generates clear trading signals.
2. Principle of Operation
Components:
-
MACD histogram (blue) – difference between fast and slow EMA
-
Signal line (yellow) – smoothing MA of the histogram
-
SELL arrows (green, upward) – sell signal
-
BUY arrows (red, downward) – buy signal
-
ATR levels (blue/orange) – dynamic volatility thresholds
Signal Logic:
BUY is formed when:
-
Price reaches the lower ATR threshold
-
MinPeriod bars have passed
-
A red downward arrow appears
SELL is formed when:
-
Price reaches the upper ATR threshold
-
MinPeriod bars have passed
-
A green upward arrow appears
3. Settings Parameters
ATRZIGZAG Parameters:
-
AtrMultiplier (3) – ATR multiplier for reversal thresholds
-
AtrPeriod (13) – ATR calculation period
-
MaxPeriod (34) – maximum bars between reversals
-
MinPeriod (5) – minimum bars between reversals
-
ShowATRLines (true) – display ATR levels
-
ShowDebug (false) – debug mode (turn off during testing!)
MACD Parameters:
-
fastPeriod (12) – fast EMA
-
slowPeriod (26) – slow EMA
-
signalPeriod (9) – signal line
4. Application and Strategies
Recommended Markets:
-
Forex (EURUSD, GBPUSD) – H4, Daily
-
Commodities (gold, oil) – H1, H4
-
Indices (S&P500) – Daily
-
Cryptocurrencies – H4 and above
Trading Strategies:
Conservative:
-
Wait for arrow + MACD crossing zero line
-
Confirm with trend lines
-
Stop-loss beyond ATR level
-
Take-profit 2× ATR
Aggressive:
-
Enter on arrow appearance
-
Stop-loss beyond nearest extreme
-
Trailing stop at 1× ATR profit
5. Advantages
-
Combination of methods – MACD + ATR for noise filtering
-
Adaptive levels – automatic adjustment to volatility
-
Clear signals – visual arrows on histogram
-
Flexibility – customizable for any instrument
-
Universality – works on all timeframes from H1
6. Limitations and Risks
Limitations:
-
Lag on fast timeframes
-
Parameter sensitivity – requires optimization
-
Possible arrow repainting when extremes update
-
Ineffectiveness in strong trends without additional filters
Risk Management:
-
Position size: 1–2% of deposit
-
Stop-loss: 1.5–2 × ATR from entry
-
Take-profit: 2–3 × risk
-
Maximum drawdown: 20%
7. Integration with Other Tools
Recommended additions:
-
EMA 50/200 – trend definition
-
RSI or Stochastic – overbought/oversold confirmation
-
Support/resistance levels – additional entry points
