Version 24.2 (latest)

Financial Overlays

The below image demonstrates using the Financial Overlays with the XamFinancialChart. There are two types of overlays the BollingerBands and PriceChannel.

financialchart wpf layers overlay.png
Property Name Type Description

FinancialOverlayTypeCollection

Gets or Sets the collection of types for the overlays.

BrushCollection

Gets or sets the palette of brushes to use for coloring the overlay.

BrushCollection

Gets or sets the palette of brushes to use for outlines on the overlay.

double

Gets or sets the thickness of the overlay.

The following demonstrates how to set the OverlayTypes through code:

In XAML:

<ig:XamFinancialChart ItemsSource="{Binding}"
    OverlayTypes="BollingerBands"
    OverlayBrushes="Red"
    OverlayOutlines="Green"
    OverlayThickness="2" />

In Visual Basic:

Dim chart as New XamFinancialChart()
chart.OverlayTypes = New FinancialOverlayTypeCollection()
chart.OverlayTypes.Add(Infragistics.Controls.Charts.FinancialOverlayType.BollingerBands)

chart.OverlayBrushes = New Infragistics.BrushCollection()
Dim brush As SolidColorBrush = New SolidColorBrush()
brush.Color = Colors.Red;
chart.OverlayBrushes.Add(brush)

chart.OverlayOutLines = new Infragistics.BrushCollection()
Dim brush2 As SolidColorBrush = New SolidColorBrush()
brush2.Color = Colors.Green
chart.OverlayOutLines.Add(brush2)

chart.OverlayThickness = 2

In C#:

var chart = new XamFinancialChart();
chart.OverlayTypes = new FinancialOverlayTypeCollection();
chart.OverlayTypes.Add(Infragistics.Controls.Charts.FinancialOverlayType.BollingerBands);

chart.OverlayBrushes = new Infragistics.BrushCollection();
SolidColorBrush brush = new SolidColorBrush();
brush.Color = Colors.Red;
chart.OverlayBrushes.Add(brush);

chart.OverlayOutLines = new Infragistics.BrushCollection();
SolidColorBrush brush2 = new SolidColorBrush();
brush2.Color = Colors.Green;
chart.OverlayOutLines.Add(brush2);

chart.OverlayThickness = 2;
Topic Purpose

This article explains the trendline layer of the chart.