NinjaScript > Language Reference > Drawing >

IFibonacciRetracements

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Represents an interface that exposes information regarding a Fibonacci Retracements IDrawObject.

 

Methods and Properties

StartBarsAgo

An int value representing the number of bars ago of the starting point

StartTime

A DateTime structure representing the time of the starting point

StartY

A double value representing the y value of the starting point

EndBarsAgo

An int value representing the number of bars ago of the ending point

EndTime

A DateTime structure representing the time of the ending point

EndY

A double value representing the y value of the ending 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 Retracement
    IFibonacciRetracements fibRetracements = DrawFibonacciRetracements("tag1", true, 10, Low[10], 0, High[0]);

 

    // Print the number of bars ago the starting point is located at

    Print(fibRetracements.StartBarsAgo);
}