Percent Line or Percent Levels

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

Syntax

C#
[SerializableAttribute]
public class ChartPercentLine : ChartSplitObjectFont
Visual Basic
<SerializableAttribute>
Public Class ChartPercentLine
	Inherits ChartSplitObjectFont
Visual C++
[SerializableAttribute]
public ref class ChartPercentLine : public ChartSplitObjectFont
F#
[<SerializableAttribute>]
type ChartPercentLine =  
    class
        inherit ChartSplitObjectFont
    end

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

See Also