OPEN-SOURCE SCRIPT

J - Trend Sniper v2

1 442
(2024)

A trend-following indicator that combines an ATR trailing stop with a smoothed price line to detect trend shifts and generate long/short signals.

  • Calculates a slow ATR trailing stop (main trend boundary) and a fast ATR trailing stop, then plots a midpoint "Fast Line" between the two
  • A smoothed signal line (a) tracks price using a volatility-weighted EMA — more reactive during high-volatility candles, smoother during low-volatility ones
  • Long signal fires when the signal line crosses above the ATR trailing stop; Short when it crosses below

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.