OPEN-SOURCE SCRIPT
MACDiver from axis V1.4

Indicator that identifies bullish and bearish divergences between price action and the MACD oscillator. It uses pivot highs/lows in both price and MACD series to detect potential reversal signals. When price makes higher highs (or lower lows) while MACD makes lower highs (or higher lows), the indicator marks these divergences with lines and labels on the chart, providing potential trading signals.
MACDiver Indicator Usage Guide
Purpose: Detects bullish and bearish divergences between price action and the MACD oscillator, with projected target price levels.
Key Features:
Divergence Detection: Finds mismatches between price and MACD movements
Target Projection: Calculates and displays estimated reversal price levels
Visual Signals: Shows lines, labels, and target markers on the chart
Main Settings:
pivotLR: Sensitivity for pivot detection (default: 5). Lower = more sensitive, higher = fewer false signals
searchBack: How many bars back to search for matching pivots (default: 120). Adjust based on your timeframe
showTarget: Enable/disable target price projections
showTargetLines: Enable/disable dashed projection lines
How to Use:
Identify Divergences:
Bullish: Price makes lower lows while MACD makes higher lows (green "Bull Div" label)
Bearish: Price makes higher highs while MACD makes lower highs (red "Bear Div" label)
Check Target Levels:
Green/red target label shows projected price level for bullish/bearish divergences
Dashed line extends from the divergence point to the target
Trade Entry:
Use divergence confirmation as potential entry signal
Target level as take-profit reference
Adjust Settings:
Higher pivotLR for fewer signals, lower for more sensitivity
Adjust searchBack based on typical trend lengths on your timeframe
Key Variables:
pivotLR: Number of bars to the left/right to confirm pivot highs/lows
searchBack: Maximum number of bars to look back when searching for previous matching pivots
MACDiver Indicator Usage Guide
Purpose: Detects bullish and bearish divergences between price action and the MACD oscillator, with projected target price levels.
Key Features:
Divergence Detection: Finds mismatches between price and MACD movements
Target Projection: Calculates and displays estimated reversal price levels
Visual Signals: Shows lines, labels, and target markers on the chart
Main Settings:
pivotLR: Sensitivity for pivot detection (default: 5). Lower = more sensitive, higher = fewer false signals
searchBack: How many bars back to search for matching pivots (default: 120). Adjust based on your timeframe
showTarget: Enable/disable target price projections
showTargetLines: Enable/disable dashed projection lines
How to Use:
Identify Divergences:
Bullish: Price makes lower lows while MACD makes higher lows (green "Bull Div" label)
Bearish: Price makes higher highs while MACD makes lower highs (red "Bear Div" label)
Check Target Levels:
Green/red target label shows projected price level for bullish/bearish divergences
Dashed line extends from the divergence point to the target
Trade Entry:
Use divergence confirmation as potential entry signal
Target level as take-profit reference
Adjust Settings:
Higher pivotLR for fewer signals, lower for more sensitivity
Adjust searchBack based on typical trend lengths on your timeframe
Key Variables:
pivotLR: Number of bars to the left/right to confirm pivot highs/lows
searchBack: Maximum number of bars to look back when searching for previous matching pivots
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.