SlowDCustomOrig (Function)

image\trumpet2.gif Disclaimer

The SlowDCustomOrig series function returns the Slow D value for the Stochastic oscillator based on user-defined price inputs.

Syntax

SlowDCustomOrig(PriceH, PriceL, PriceC, StochLength, SmoothingLength1, SmoothingLength2)

Returns (Double)

A numeric value containing the SlowDCustomOrig for the current bar.

Parameters

Name

Type

Description

PriceH

Numeric

Specifies which bar value (price, function, or formula) to use for the high in stochastic calculations.

PriceL

Numeric

Specifies which bar value (price, function, or formula) to use for the low in stochastic calculations.

PriceC

Numeric

Specifies which bar value (price, function, or formula) to use for the close in stochastic calculations.

StochLength

Numeric

Sets the number of bars to consider.

SmoothingLength1

Numeric

Sets the constant to use for smoothing the K line.

SmoothingLength2

Numeric

Sets the constant to use for smoothing the D line.

Remarks

This function differs from SlowDCustom by using the original smoothing method suggested by George Lane.

Please refer to the discussion under the Stochastic function.

Example

Assigns to Value1 the Stochastic SlowD for offset high and low prices over 14 bars.

Value1 = SlowDCustomOrig(High+1,Low-1,Close,14,3,3);

Reference

Takano, Mike. Stochastic Oscillator, Technical Analysis of Stocks and Commodities. April 1991.

Stein, John. The Traders’ Guide to Technical Indicators, Futures Magazine. August 1990.