ChandeKrollStopUp

Category: Indicators

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).

Syntax:

ChandeKrollStopUp[Pp, Qq, X]

Parameters:

  • Pp: Number of periods used to calculate the highest high and the ATR.
  • Qq: Number of periods over which the highest value of the first high stop is considered.
  • X: Multiplier applied to the ATR to calculate the first high stop.

Calculation:

The Chande Kroll Stop upper band is calculated in two steps:

  1. First High Stop: This is calculated as the highest high over the last Pp periods minus X times the ATR over the same period.
  2. Stop Short: This is the highest value of the First High Stop over the last Qq periods.

Example:


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.

Additional Information:

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.

Related Instructions:

Logo Logo
Loading...