Envelope Lower (ENVL)
For a list of all members of this type, see ENVL Members.
System.Object
RQuant.Indicator.TTimeArray
RQuant.Indicator.TDoubleArray
RQuant.Indicator.TIndicator
RQuant.Indicator.ENVL
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
Envelopes represent bands that are plotted in a certain, identical relationship above and below the Moving Average. Envelopes are a very complex theme with many interpretation and trading rules. Basically, envelopes capture a significant part of price movements. Concrete trading signals are released if prices approach or move away form their envelope. Professional plots envelopes around a Moving Average in a constant percentage distance. Hence they are added to or subtracted from this average. Both envelope lines thus define the prevailing trading range.
The Moving Average Envelope study is a derivative of the Moving Average study. The price band has two lines that are equal percentage distance from the Simple Moving Average. The Moving Average line is not visible.
While several different trading rules are available, the most simple approach uses the price band as an entry and exit point. When price penetrates the upper price band, you initiate a long position or buy. If you have an existing short position, you close out shorts and go long. Conversely, when prices penetrate the lower price band, you close out long positions and go short.
This indicator is described in more details in the Steve Achelis' book "Technical Analysis from A to Z".
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","ENVL DEMO",600,400);
Canvas.Divide(1,2);
ENVL ENVL = new ENVL(Daily, 14, 20);
Canvas.cd(1);
Daily.Draw("c");
Canvas.cd(2);
ENVL.Draw(Color.Red);
Namespace: RQuant.Indicator
Assembly: RQuant.Indicator (in RQuant.Indicator.dll)
ENVL Members | RQuant.Indicator Namespace