← Script Marketplace
Open-source scriptindicator/v1

Chandelier Exit

by Kodexius·@kodexius·

Trail volatility-adjusted long and short exit levels from recent price extremes.

#chandelier-exit#trend#volatility
Chandelier Exit chart preview

Description

Chandelier Exit places a long stop below the recent highest high and a short stop above the recent lowest low, using a multiple of Average True Range. The lines adapt to both new extremes and changing volatility.

Open-source script. Everyone can inspect the source code, use the script on a chart, and save an editable copy.

Release notes

Version history · 1 published version

Version 1CurrentChart updatedChandelier Exit · Aug 31, 2026
Release notes

Initial classic indicator release.

View current source ↓
Source codempl-2.0View source

indicator("Chandelier Exit", { overlay: true });
const length = input.int("Length", 22, { min: 1, max: 500 });
const multiplier = input.float("ATR Multiplier", 3, { min: 0.1, max: 20, step: 0.1 });
const range = atr(length);
const longStop = highest(high, length).map((v, i) => v - multiplier * range[i]);
const shortStop = lowest(low, length).map((v, i) => v + multiplier * range[i]);
plot(longStop, { title: "Long Stop", color: "#26a69a", lineWidth: 2, type: "linebr" });
plot(shortStop, { title: "Short Stop", color: "#ef5350", lineWidth: 2, type: "linebr" });
  

Community discussion

0 comments

Loading…

No comments yet. Start the discussion.