Class that manages the list of chart objects.
Namespace:
RightEdge.CommonAssembly: Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)
Syntax
| C# |
|---|
[SerializableAttribute] public class ChartObjectManager : ISerializable |
| Visual Basic (Declaration) |
|---|
<SerializableAttribute> _ Public Class ChartObjectManager _ Implements ISerializable |
| Visual C++ |
|---|
[SerializableAttribute] public ref class ChartObjectManager : ISerializable |
Remarks
There is an instance of this class created with
every trading system. This instance is global
across all symbols. There is no need to create an instance of this.
Once a chart object is created,
it must be added to one or many charts identified
by their symbols.
Examples
Add a ChartLine object to the ChartObjectManager (C#)
CopyC#
// Setup our X coordinates. DateTime startDate = DateTime.Now; DateTime lastWeek = startDate.AddDays(-7); // Create the line object ChartLine line = new ChartLine(new ChartPoint(startDate, 20.00), new ChartPoint(lastWeek, 25.00), Color.RoyalBlue, 3); // Add this object to the chart. "symbol" would equal the current symbol object in the system. ChartObjects.Add(symbol, line);