Overview

ATR with SuperTrend [Volensy] is a dual trend-following overlay that combines an ATR-based trailing stop system with a classic SuperTrend line. It’s designed to keep your chart directional, highlight trend flips, and provide alert-ready Buy/Sell signals with clean visuals (trend cloud, optional bar coloring, and optional glow effects).

How It Works

The indicator runs two independent engines:

  • ATR Trailing Stop: Calculates ATR(c) and multiplies it by the Key Value (a) to create a dynamic trailing stop that “steps” with price and flips when price crosses it.
  • SuperTrend: Calculates ATR(c) and multiplies it by the SuperTrend Multiplier (factor) to create a separate trend line that flips when price crosses it.

Both engines can optionally derive their signal source from Heikin Ashi close and can apply EMA smoothing to reduce noise (at the cost of added lag).

What You’ll See on the Chart

  • ATR Trailing Stop line colored by the current ATR trend state (bull/bear).
  • Trend cloud fill between the (hidden) source and the trailing stop (transparency adjustable).
  • SuperTrend line plotted as a separate blue line (toggleable).
  • Buy/Sell triangles for ATR trailing stop signals (toggleable).
  • Glow circles for both ATR signals and SuperTrend signals (toggleable).
  • Optional bar coloring using the current ATR trend color (toggleable).
  • Color presets (Classic/Aqua/Cosmic/Matrix/Neon/Custom) applied consistently across bull/bear elements.

Indicator Information

Version 1.2
Last Update 19 Feb 2026
Category Trend Following
Compatibility TradingView
Script Pine Script v5