Fibonacci Line or Fibonacci Levels
Namespace:
RightEdge.Common.ChartObjectsAssembly: Common (in Common.dll)
Version: 2008.1.0.0 (2008.1.0.0)
Syntax
| C# |
|---|
[SerializableAttribute] public class ChartFibLine : ChartSplitObjectFont |
| Visual Basic (Declaration) |
|---|
<SerializableAttribute> _ Public Class ChartFibLine _ Inherits ChartSplitObjectFont |
| Visual C++ |
|---|
[SerializableAttribute] public ref class ChartFibLine : public ChartSplitObjectFont |
Remarks
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%.
Examples
Create Fibonacci Levels (Lines) programmatically (C#)
CopyC#
// 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
System..::.Object
RightEdge.Common.ChartObjects..::.ChartObjectBase
RightEdge.Common.ChartObjects..::.ChartSplitObjectBase
RightEdge.Common.ChartObjects..::.ChartSplitObjectFont
RightEdge.Common.ChartObjects..::.ChartFibLine
RightEdge.Common.ChartObjects..::.ChartObjectBase
RightEdge.Common.ChartObjects..::.ChartSplitObjectBase
RightEdge.Common.ChartObjects..::.ChartSplitObjectFont
RightEdge.Common.ChartObjects..::.ChartFibLine