Percent Line or Percent Levels
Namespace:
RightEdge.Common.ChartObjectsAssembly: Common (in Common.dll)
Version: 2008.1.0.0 (2008.1.0.0)
Syntax
| C# |
|---|
[SerializableAttribute] public class ChartPercentLine : ChartSplitObjectFont |
| Visual Basic (Declaration) |
|---|
<SerializableAttribute> _ Public Class ChartPercentLine _ Inherits ChartSplitObjectFont |
| Visual C++ |
|---|
[SerializableAttribute] public ref class ChartPercentLine : public ChartSplitObjectFont |
Remarks
These levels are created by drawing a trendline between two extreme points and then dividing the vertical distance by round percentage values of 25%, 50%, 75% and 100%.
Examples
Create Percent Lines programmatically (C#)
CopyC#
// Setup our X coordinates. DateTime leftPoint = DateTime.Now.AddDays(-21); DateTime rightPoint = DateTime.Now; // Create the percent line object. ChartPercentLine percentLine = new ChartPercentLine(new ChartPoint(leftPoint, 25.00), new ChartPoint(rightPoint, 20.00)); // Add this object to the chart. "symbol" would equal the current symbol object in the system. ChartObjects.Add(symbol, percentLine);
Inheritance Hierarchy
System..::.Object
RightEdge.Common.ChartObjects..::.ChartObjectBase
RightEdge.Common.ChartObjects..::.ChartSplitObjectBase
RightEdge.Common.ChartObjects..::.ChartSplitObjectFont
RightEdge.Common.ChartObjects..::.ChartPercentLine
RightEdge.Common.ChartObjects..::.ChartObjectBase
RightEdge.Common.ChartObjects..::.ChartSplitObjectBase
RightEdge.Common.ChartObjects..::.ChartSplitObjectFont
RightEdge.Common.ChartObjects..::.ChartPercentLine