%K Fast (K_Fast)
For a list of all members of this type, see K_Fast Members.
System.Object
RQuant.Indicator.TTimeArray
RQuant.Indicator.TDoubleArray
RQuant.Indicator.TIndicator
RQuant.Indicator.K_Fast
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
%K Fast 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:
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","K_Fast DEMO",600,400);
Canvas.Divide(1,2);
K_Fast K_Fast = new K_Fast(Daily, 14);
Canvas.cd(1);
Daily.Draw("c");
Canvas.cd(2);
K_Fast.Draw(Color.Red);
Namespace: RQuant.Indicator
Assembly: RQuant.Indicator (in RQuant.Indicator.dll)
K_Fast Members | RQuant.Indicator Namespace