Fibonacci Line or Fibonacci Levels

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


public class ChartFibLine : ChartSplitObjectFont
Visual Basic
Public Class ChartFibLine
	Inherits ChartSplitObjectFont
Visual C++
public ref class ChartFibLine : public ChartSplitObjectFont
type ChartFibLine =  
        inherit ChartSplitObjectFont


Fibonacci was an Italian mathematician born in the 12th century. He is known to have discovered the "Fibonacci numbers," which are a sequence of numbers where each successive number is the sum of the two previous numbers.

e.g. 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, etc.

These levels are created by drawing a trendline between two extreme points and then dividing the vertical distance by the key Fibonacci ratios of 23.6%, 38.2%, 50%, 61.8% and 100%.


Create Fibonacci Levels (Lines) programmatically (C#)
 Copy imageCopy
// Setup our X coordinates.
DateTime leftPoint = DateTime.Now.AddDays(-21);
DateTime rightPoint = DateTime.Now;

// Create the fib line object.
ChartFibLine fibLine = new ChartFibLine(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, fibLine);

Inheritance Hierarchy

See Also