Open-source scriptindicator/v1
Chandelier Exit
Trail volatility-adjusted long and short exit levels from recent price extremes.
#chandelier-exit#trend#volatility
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
Source codempl-2.0View sourceHide 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
No comments yet. Start the discussion.