OPEN-SOURCE SCRIPT

ZigZag Buy/Sell Arrows [NPR21]

202
ZigZag Buy/Sell Arrows - Pivot Points

Description:


Simple and effective ZigZag indicator that displays buy and sell arrows at major pivot points on your chart. Perfect for identifying potential trend reversals and swing trading opportunities.

Features:

  • Fluorescent green arrows for buy signals at pivot lows
  • Bright red arrows for sell signals at pivot highs
  • Clean, minimal design with no clutter
  • Built-in alert conditions for both buy and sell signals
  • No repainting - arrows appear at confirmed pivots


How to Use:

  1. Add the indicator to your chart
  2. Green up arrows appear below bars at pivot lows (potential buy zones)
  3. Red down arrows appear above bars at pivot highs (potential sell zones)
  4. Arrows are offset to show at the actual pivot point
  5. Set alerts by clicking the alarm icon on the indicator


Customization:

To reduce the number of arrows and show only major turns, edit the code:

  • Change ph = ta.pivothigh(5, 5) to ph = ta.pivothigh(10, 10) or higher
  • Change pl = ta.pivotlow(5, 5) to pl = ta.pivotlow(10, 10) or higher
  • Higher numbers = fewer arrows = only major pivots
  • Recommended: 3-5 for active trading, 10-15 for swing trading

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.