AndrewsPitchfork

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common > Drawing > Draw.AndrewsPitchfork() >

AndrewsPitchfork

Previous page Return to chapter overview Next page

Definition

Represents an object that exposes information regarding an Andrews Pitchfork IDrawingTool.

 

The Standard Pitchfork creates a trend channel out of the 3 user defined extreme price anchor points by connecting the first 2 points to form the anchor, and the next 2 points to form the retracement handle. From the first point then a trendline is drawn through the 50% midpoint of the retracement handle, parallel lines originating at the other 2 points forming the channel, while multiple further price levels could be set to allow for finer analysis.

 

In contrast the Schiff Pitchfork variant is constructed then by shifting the first anchor of the Standard Pitchfork one-half the vertical distance between the first 2 anchor points.

 

As further alternation the Modified Schiff Pitchfork variant is found by moving the first anchor to the midpoint of the original pitchfork's anchor handle, the trend-line connecting our first 2 anchor points.

 

Methods and Properties

StartAnchor

An IDrawingTool's ChartAnchor representing the starting point of the drawing object

EndAnchor

An IDrawingTool's ChartAnchor representing the end point of the drawing object

ExtensionAnchor

An IDrawingTool's ChartAnchor representing the extension point of the drawing object

PriceLevels

A collection of prices calculated by the drawing object

CalculationMethod

The AndrewsPitchforkCalculationMethod property determining which method is used to calculate the pitchfork.  

 

Possible values are:

 

ModifiedSchiff

Schiff

StandardPitchfork

IsTextDisplayed

A bool value determining if the draw object should display text on the chart.

RetracementLineStroke

A Stroke object used to draw the center retracement line of the object

AnchorLineStroke

A Stroke object used to draw the object

 

 

Example

ns

// Instantiate an Andrews Pitchfork object
AndrewsPitchfork myFork = Draw.AndrewsPitchfork(this, "tag1", false, 7, Low[7], 5, High[5], 1, Low[1], false, "ForkTemplate");
 
// Print the tag used to draw the object
Print(myFork.Tag);