Chandelier LX (Strategy)
Input Information
Name | Type | Default | Description |
Price | Numeric | High | EasyLanguage price from which a number of average true ranges is subtracted to calculate the stop price. |
NumATRs | Numeric | 3 | Multiplier of the average true range, subtracted from the high “Price” (input) of the position to determine the stop value. |
ATRLength | Numeric | 22 | The number of bars to include in the calculation of the average true range. |
StopPriceCanDecrease | Numeric | 1 | A value of 0 will prevent the stop price from decreasing while in a trade. A value of 1 will allow the stop price to decrease. |
Usage
Long exit for use with any long position.
Description
This strategy generates a stop order (to exit a long position) at the highest value of the Price input since the entry of the trade minus NumATRs (Input) times the average true range over the last ATRLength (Input) bars. The stop value can be set to allow the stop price to loosen or not loosen while in a position (see input section). This strategy provides entry bar protection. The stop price for the entry bar is the value of the Price input minus NumATRs times the Average True Range.
Order Name: ChLX, ChLXQ
Related Strategy: Chandelier SX (Strategy)
Related Function(s): AvgTrueRange