Fills the specified color between two indicators.

Namespace: RightEdge.Common
Assembly: Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)

Syntax

C#
public void FillIndicatorRegion(
	string linkedSeriesName,
	Color fillColor
)
Visual Basic
Public Sub FillIndicatorRegion ( 
	linkedSeriesName As String,
	fillColor As Color
)
Visual C++
public:
void FillIndicatorRegion(
	String^ linkedSeriesName, 
	Color fillColor
)
F#
member FillIndicatorRegion : 
        linkedSeriesName : string * 
        fillColor : Color -> unit 

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#)
 Copy imageCopy
   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.

See Also