AndrewsPitchfork

View as Markdown

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

ParameterDescription
StartAnchorAn IDrawingTool’s ChartAnchor representing the starting point of the drawing object
EndAnchorAn IDrawingTool’s ChartAnchor representing the end point of the drawing object
ExtensionAnchorAn IDrawingTool’s ChartAnchor representing the extension point of the drawing object
PriceLevelsA collection of prices calculated by the drawing object
CalculationMethodThe AndrewsPitchforkCalculationMethod property determining which method is used to calculate the pitchfork. Possible values are: ModifiedSchiff, Schiff, StandardPitchfork
IsTextDisplayedA bool value determining if the draw object should display text on the chart.
RetracementLineStrokeA Stroke object used to draw the center retracement line of the object
AnchorLineStrokeA Stroke object used to draw the object

Example

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