charton API / @chart-on/ta / chandelierExit
Function: chandelierExit()
chandelierExit(
high,low,close,length,mult,useClose?,out?,state?):ChandelierExit
Defined in: stops.ts:131
Chandelier exit: a long stop mult atrs below the highest high of the last length bars and a short stop as far above the lowest low (the highest and lowest close with useClose), both over length bars. While the previous close stayed past a stop, that stop only tightens: the long stop never falls and the short stop never rises. The direction turns long on a close above the previous short stop and short on a close below the previous long stop, and starts long.
Lookback length - 1. A NaN input restarts it. Pass state to keep the ATR for chandelierExitAt.
Parameters
high
low
close
length
number
mult
number
useClose?
boolean = false