NinjaScript > Language Reference > Drawing >
IAndrewsPitchfork
Definition Represents an interface that exposes information regarding an Andrews Pitchfork 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
CalculationMethod
Possible values: CalculationMethod.ModifiedSchiff
CalculationMethod.Schiff
CalculationMethod.StandardPitchfork
Pen
The Pen object used to draw the object
ShowText
A bool value representing if text will be drawn along with the draw object
Examples
protected override void OnBarUpdate() {
// Draws an Andrews Pitchfork IAndrewsPitchfork pitchfork = DrawAndrewsPitchfork("tag1", true, 4, Low[4], 3, High[3], 1, Low[1]);
// Print the number of bars ago the first anchor point is located at
Print(pitchfork.Anchor1BarsAgo); }