Price Channel Lower (PCL).
For a list of all members of this type, see PCL Members.
System.Object
RQuant.Indicator.TTimeArray
RQuant.Indicator.TDoubleArray
RQuant.Indicator.TIndicator
RQuant.Indicator.PCL
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
Price Channel is one of the simplest and oldest trend-following models. It requires no calculations. The rules are: Buy when the weekly closing price moves up to a new 20-period high; sell and sell short when the weekly closing price moves down to a new 20-period low. In other words, when price moves out of its n-period range, go in the direction of this new trend.
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","PCL DEMO",600,400);
Canvas.Divide(1,2);
PCL PCL = new PCL(Daily, 14);
Canvas.cd(1);
Daily.Draw("c");
Canvas.cd(2);
PCL.Draw(Color.Red);
Namespace: RQuant.Indicator
Assembly: RQuant.Indicator (in RQuant.Indicator.dll)
PCL Members | RQuant.Indicator Namespace