AddChartAndrewsPitchfork()

Description

This drawing object draws an Andrew’s Pitchfork.

Information concerning its usage:

Usage

AddChartAndrewsPitchfork(string name, bool autoScale, int start1BarsBack, double start1Y, int start2BarsBack, double start2Y, int start3BarsBack, double start3Y, Color color, DashStyle dashStyle, int width)
AddChartAndrewsPitchfork(string name, bool autoScale, DateTime start1Time, double start1Y, DateTime start2Time, double start2Y, DateTime start3Time, double start3Y, Color color, DashStyle dashStyle, int width)

Return Value

A drawing object of the type IAndrewsPitchfork (interface)

Parameter

name

A clearly identifiable name for the drawing object

autoScale

Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety

start1BarsBack

Number of bars ago for start point 1 (x-axis)

start1Time

Date/time for start point 1 (x-axis)

start1Y

y-value for start point 1

start2BarsBack

Number of bars ago for start point 2 (x-axis)

start2Time

Date/time for start point 2 (x-axis)

start2Y

y-value for start point 2

start3BarsBack

Number of bars ago for start point 3 (x-axis)

start3Time

Date/time for start point 3 (x-axis)

start3Y

y-value for start point 3

color

Color of the object

dashStyle

LevelLine styles:

DashStyle.Dash

DashStyle.DashDot

DashStyle.DashDotDot

DashStyle.Dot

DashStyle.Solid

You may have to integrate: using System.Drawing.Drawing2D;

width

LevelLine strength in points

Example

// Draw the Andrew’s Pitchfork (“MyAPF”)
AddChartAndrewsPitchfork("MyAPF-" + ProcessingBarIndex, true, 4, Low[4], 3, High[3], 1, Low[1], Color.Black, DashStyle.Solid, 2);

Last updated