NinjaScript > Language Reference > Drawing >
IFibonacciExtensions
Definition Represents an interface that exposes information regarding a Fibonacci Extensions IDrawObject.
Methods and Properties
Anchor1BarsAgo
An int value representing the number of bars ago of the 1st anchor point
Anchor1Time
A DateTime structure representing the time of the 1st anchor point
Anchor1Y
A double value representing the y value of the 1st anchor point
Anchor2BarsAgo
An int value representing the number of bars ago of the 2nd anchor point
Anchor2Time
A DateTime structure representing the time of the 2nd anchor point
Anchor2Y
A double value representing the y value of the 2nd anchor point
Anchor3BarsAgo
An int value representing the number of bars ago of the 3rd anchor point
Anchor3Time
A DateTime structure representing the time of the 3rd anchor point
Anchor3Y
A double value representing the y value of the 3rd anchor point
ExtendLeft
A bool value representing if the object will extend to the left
ExtendRight
A bool value representing if the object will extend to the right
ShowText
A bool value representing if text will be drawn along with the draw object
Examples
protected override void OnBarUpdate() {
// Draws a Fibonacci Extension IFibonacciExtensions fibExt = DrawFibonacciExtensions("tag1", true, 4, Low[4], 3, High[3], 1, Low[1]);
// Print the number of bars ago the starting point is located at
Print(fibExt.StartBarsAgo); }