NinjaScript > Language Reference > Drawing >

DrawFibonacciTimeExtensions()

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Draws a fibonacci time extension.

 

Method Return Value

An IFibonacciTimeExtensions object that represents the draw object.

 

Syntax
DrawFibonacciTimeExtensions(string tag, int startBarsAgo, double startY, int endBarsAgo, double endY)

DrawFibonacciTimeExtensions(string tag, DateTime startTime, double startY, DateTime endTime, double endY)

 

Parameters

tag

A user defined unique id used to reference the draw object. For example, if you pass in a value of "myTag", each time this tag is used, the same draw object is modified. If unique tags are used each time, a new draw object will be created each time.

startBarsAgo

The starting bar (x axis co-ordinate) where the draw object will be drawn. For example, a value of 10 would paint the draw object 10 bars back.

startTime

The starting time where the draw object will be drawn.

startY

The starting y value co-ordinate where the draw object will be drawn

endBarsAgo

The end bar (x axis co-ordinate) where the draw object will terminate

endTime

The end time where the draw object will terminate

endY

The end y value co-ordinate where the draw object will terminate

 

 

Examples

// Draws a fibonacci time extension object
DrawFibonacciTimeExtensions("tag1", 10, Low[10], 0, High[0]);