StockBeatStockBeat
Basics
  • Number Series
  • Boolean Series
  • Examples
  • Indicators
Alarms
Concepts
Basics
  • Number Series
  • Boolean Series
  • Examples
  • Indicators
Alarms
Concepts
  • Signals

    • Number Series
    • Boolean Series
    • Signal Examples
    • Indicators

      • Indicators
      • MFI (Money Flow Index)
      • ATR (Average True Range)
      • CCI (Commodity Channel Index)
      • CE (Chandelier Exit)
      • ER (Kaufman's Efficiency Ratio)
      • KC (Keltner Channel)
      • SMA (Simple Moving Average)
      • EMA (Exponential Moving Average)
      • MACD (Moving Average Convergence Divergence)
      • PPO (Percentage Price Oscillator)
      • RSI (Relative Strength Index)
      • FSO (Fast Stochastic Oscillator)
      • SSO (Slow Stochastic Oscillator)
      • BB (Bollinger Bands)
      • MAD (Mean Absolute Deviation)

CE (Chandelier Exit)

The CE (Chandelier Exit) is a volatility-based indicator that identifies exit points for trades. It is designed to keep traders in a trend and prevent an early exit as long as the trend extends. The exit is calculated using the Average True Range (ATR) to measure volatility. For a long position, the exit is placed below the price, and for a short position, it is placed above the price. The distance between the price and the exit is determined by the ATR.

Arguments

NameDescription
periodnumber of periods (integer greater than 0). Default is 22.
multiplierATR factor. Default is 3.
typeone of long or short

Useful Signal Expressions

1. Chandelier Exit for Long Position

Signal:

close().crosses_below(ce(22, 3, long))

Explanation: The closing price crosses below the Chandelier Exit for a long position, suggesting a potential exit point for the trade.

2. Chandelier Exit for Short Position

Signal:

close().crosses_above(ce(22, 3, short))

Explanation: The closing price crosses above the Chandelier Exit for a short position, suggesting a potential exit point for the trade.

Last Updated:: 2/12/26, 8:03 AM
Contributors: ErenKizilay
Prev
CCI (Commodity Channel Index)
Next
ER (Kaufman's Efficiency Ratio)