Divergence is a concept in financial markets that highlights inconsistencies between the price of an asset and a given indicator. This script focuses on identifying divergences using the Average True Range (ATR). Divergence occurs when there is a disparity between the direction of the price and the oscillator, providing valuable insights for traders anticipating potential trend reversals.
This script employs pivot points (with using High-Low values of the candles) to identify potential divergences between the oscillator (ATR) and price movements. Here's how each type of divergence is determined:
Key Features:
Regular Bullish Divergence:
Oscillator registers a higher low. Price records a lower low. Indicative of potential upward reversal.
Wait for Candle Close: Option to wait for candle closure before plotting signals. How to Interpret:
Regular divergences may indicate potential trend reversals, while hidden divergences suggest a continuation of the current trend. Traders can leverage these signals to make informed decisions in their trading strategies.
Feel free to customize the parameters based on your trading preferences. Happy Trading!