The ChandeKrollStopUp function calculates the upper band of the Chande Kroll Stop indicator, which is primarily used to set stop-loss levels for short positions in trading. This indicator provides a dynamic stop level based on the volatility of the security, represented by the Average True Range (ATR).
ChandeKrollStopUp[Pp, Qq, X]
The Chande Kroll Stop upper band is calculated in two steps:
i1 = ChandeKrollStopUp[10, 20, 3]
IF (Open < i1 AND Close > i1) THEN
BUY 1 share AT MARKET
ENDIF
In this example, a long position is initiated when the price crosses above the Chande Kroll Stop upper band. The parameters used are 10 periods for the ATR and highest high calculation, 20 periods for the maximum of the first high stop, and a multiplier of 3.
The Chande Kroll Stop is an indicator that helps traders manage their risk by providing a dynamic stop-loss level that adjusts with the security’s volatility. The upper band is particularly useful for traders looking to protect against downside risk in short positions. The true range, which is the maximum of today’s high minus today’s low, today’s high minus yesterday’s close, or today’s low minus yesterday’s close, is used to calculate the ATR, providing a measure of market volatility.