|
The Point and Figure Chart Type sample displays a Point and
Figure Financial Chart in the Dundas Chart Samples Environment (under
Financial Charting → Price Change Financial Charts →
Point and Figure Chart). This demo lets you see a Point and Figure chart in action
and tweak the box size (which can be a floating point value, a percentage or "Default"),
and reversal amount.
The sample's Overview provides lots of information about when to use a
Point and Figure chart and how to identify trends using one.
The source code snippets demonstrate changing the chart's box size with
the BoxSize attribute, and the price up/down
colors (with the PriceUpColor attribute and
Color property, respectively). Removing the
BoxSize attribute will cause the chart to
calculate an appropriate default box size for your data. You can also
set the reversal amount with the ReversalAmount
attribute.
C#
using Dundas.Charting.WinControl;
…
chart1.Series["Default"].Type = SeriesChartType.PointAndFigure;
chart1.Series["Default"]["PriceUpColor"] = "Red";
chart1.Series["Default"].Color = Color.Blue;
chart1.Series["Default"].DeleteAttribute("ReversalAmount");
chart1.Series["Default"]["ReversalAmount"] = "1";
/
chart1.Series["Default"].DeleteAttribute("BoxSize");
chart1.Series["Default"]["BoxSize"] = "1";
chart1.Series["Default"]["ProportionalSymbols"] = "false";
VisualBasic.NET
Imports Dundas.Charting.WinControl
…
chart1.Series("Default").Type = SeriesChartType.PointAndFigure
chart1.Series("Default")("PriceUpColor") = "Red"
chart1.Series("Default").Color = Color.Blue
chart1.Series("Default").DeleteAttribute("ReversalAmount")
chart1.Series("Default")("ReversalAmount") = "1"
chart1.Series("Default").DeleteAttribute("BoxSize")
chart1.Series("Default")("BoxSize") = "1"
chart1.Series("Default")("ProportionalSymbols") = "false"
|