ChandeKrollStopDown

Category: Indicators

The ChandeKrollStopDown function calculates the upper band of the Chande Kroll Stop indicator, which is typically used to set stop-loss levels for long positions in trading. This indicator helps traders manage risk by providing a dynamic stop level based on the volatility of the security.

Syntax:

ChandeKrollStopDown[Pp, Qq, X]

Parameters:

  • Pp: Number of periods used to calculate the Average True Range (ATR). Default is 20.
  • Qq: Number of periods over which the lowest value of the first low stop is calculated. Default is 10.
  • X: Multiplier applied to the ATR to calculate the first low stop. Default is 3.

Calculation:

The Chande Kroll Stop is calculated in two steps:

  1. First Low Stop: This is calculated as the lowest low over the past Pp periods plus X times the ATR over the same period.
  2. Stop Long: This is the lowest value of the first low stop over the past Qq periods.

Example:


// Define the Chande Kroll Stop upper band for a long position
i1 = ChandeKrollStopDown[10, 20, 3]

// Example trading logic: Initiate a short position when the price crosses below the Chande Kroll Stop lower band
IF (Open > i1 AND Close < i1) THEN
    SELLSHORT 1 share AT MARKET
ENDIF

This example sets up a trading rule where a short position is initiated if the opening price is above the Chande Kroll Stop upper band and the closing price falls below it within the same trading period.

Additional Information:

The Chande Kroll Stop indicator is designed to adjust according to the security's volatility, making it a versatile tool for traders. It uses the concept of True Range, which is the greatest of the following:

  • The difference between today's high and low.
  • The difference between today's high and yesterday's close.
  • The difference between today's low and yesterday's close.

This approach ensures that the stop adjusts to reflect recent market conditions, providing a dynamic method to manage trading risk.

Related Instructions:

Logo Logo
Loading...