OPEN-SOURCE SCRIPT
ZigZag Buy/Sell Arrows [NPR21]

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:
How to Use:
Customization:
To reduce the number of arrows and show only major turns, edit the code:
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:
- Add the indicator to your chart
- Green up arrows appear below bars at pivot lows (potential buy zones)
- Red down arrows appear above bars at pivot highs (potential sell zones)
- Arrows are offset to show at the actual pivot point
- 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
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.