QuantStudio Financial Data Analysis and Trading Framework

D_Slow Class

%D Slow (D_Slow)

For a list of all members of this type, see D_Slow Members.

System.Object
   RQuant.Indicator.TTimeArray
      RQuant.Indicator.TDoubleArray
         RQuant.Indicator.TIndicator
            RQuant.Indicator.D_Slow

[Visual Basic]
Public Class D_Slow
    Inherits TIndicator
[C#]
public class D_Slow : TIndicator

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

%D Slow is a part of the Stochastic Oscillator. Stochastic Oscillator is a momentum indicator that measures the price of a currency or commodity relative to the high/low range over a set period of time. The indicator oscillates between 0 and 100, with readings below 20 considered oversold and readings above 80 considered overbought. A 14-period Stochastic Oscillator reading of 30 would indicate that the current price was 30% above the lowest low of the last 14 days and 70% below the highest high.

The Stochastic Oscillator can be used like any other oscillator by looking for overbought/oversold readings, positive/negative divergences and centerline crossovers.

Formula:

Example

TDataManager.cd("Demo");

TDailyArray Daily1 = TDataManager.GetStock("YHOO").DailyArray;

DateTime Date1 = DateTime.Parse("1999/02/08"); 
DateTime Date2 = DateTime.Parse("2000/12/29"); 

TDailyArray Daily = Daily1.Clone(Date1, Date2);

TCanvas Canvas = new TCanvas("Canvas","D_Slow DEMO",600,400);
    
Canvas.Divide(1,2);

D_Slow D_Slow = new D_Slow(Daily, 14, 10, 5);

Canvas.cd(1);
Daily.Draw("c");

Canvas.cd(2);
D_Slow.Draw(Color.Red);

Requirements

Namespace: RQuant.Indicator

Assembly: RQuant.Indicator (in RQuant.Indicator.dll)

See Also

D_Slow Members | RQuant.Indicator Namespace