Fills the specified color between two indicators.
Namespace:
RightEdge.CommonAssembly: Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)
Syntax
| C# |
|---|
public void FillIndicatorRegion( string linkedSeriesName, Color fillColor ) |
| Visual Basic (Declaration) |
|---|
Public Sub FillIndicatorRegion ( _ linkedSeriesName As String, _ fillColor As Color _ ) |
| Visual C++ |
|---|
public: void FillIndicatorRegion( String^ linkedSeriesName, Color fillColor ) |
Parameters
- linkedSeriesName
- Type: System..::.String
Series name to link with.
- fillColor
- Type: System.Drawing..::.Color
Color to fill the region with.
Remarks
Use this function to shade an area between two indicators. For
example, it is easier to visualize the area between two Bollinger
Bands (upper and lower) or any other set of indicators that
are always parallel to one another.
Examples
Shade an upper and lower band (C#)
CopyC#
Indicators["WIDNERL"].CreateIndicator(new WidnerLowerBand(50)); Indicators["WIDNERL"].SeriesColor = Color.Red; Indicators["WIDNERL"].AddToCharts(); Indicators["WIDNERU"].CreateIndicator(new WidnerUpperBand(50)); Indicators["WIDNERU"].SeriesColor = Color.Red; Indicators["WIDNERU"].AddToCharts(); // Link the upper Widner band to the lower Widner band. Indicators["WIDNERU"].FillIndicatorRegion("WIDNERL", Color.Gray); // This can easily be done the same way with Bollinger bands.