Skip to content

STOCH_PERCENT_D — Stochastic %D Trading Series

The STOCH_PERCENT_D trading series represents the smoothed %D line of the Stochastic Oscillator.

It is built upon the Stochastic Oscillator %D indicator implementation from the indicators module.


Parameters

STOCH_PERCENT_D(
    ticker: str,
    length: int = 14,
    smoothing_length: int = 3
)
  • ticker (str): Asset ticker symbol.
  • length (int): Lookback period for the initial %K calculation. Default is 14.
  • smoothing_length (int): Smoothing period for %D calculation. Default is 3.

Description

  • %D is a smoothed version of %K.
  • Helps smooth out noise and identify crossover signals.

Example Usage

STOCH_PERCENT_D(
    ticker="AAPL",
    length=14,
    smoothing_length=3
)