Home    |    Trading Alchemy Manual    |    Alchemy Functions Index

AlchemyZigZagPntsOOEL (Function)

AlchemyZigZagPntsOOEL function returns the values for the Alchemy TrendVolumeZigZagPntsOOEL indicator.

AlchemyZigZagPntsOOEL (Price,RetracePnts,LineColor,LineWidth,LineStyle,oNum)

Parameters

 

Price(numericseries) Specifies the price to be used for determining the zig zag points swing lines.

RetracePnts(numeric)

Specifies the maximum retracement points in order for the swing to change directions.  A negative value uses the alternative trend calculation method that determines the trend by highest or lowest closes over a specified period, which also disables the Zig Zag Points swing lines.
LineColor(numeric) Specifies the color of the Zig Zag Points swing lines.  A negative value disables the Zig Zag Points swing lines.
LineWidth(numeric) Specifies the width of the Zig Zag Points swing lines.  A negative value disables the Zig Zag Points swing lines.
LineStyle(numeric) Specifies the style of the Zig Zag Points swing lines.  A negative value disables the Zig Zag Points swing lines.

TimeBarsBNorDT(numeric)

With a setting of 1, the bar number reference method is used for anchoring the trend line points on time based chart types and with a setting of 2, the date and time reference method is used for anchoring the trend line points on time based chart types.

oNum(numericarrayref)

A one dimensional numeric array reference that receives the following values:

1:

Swing status, whereas a value of -2 signifies a new low, a value of -2 signifies a new down swing, a value of 0 signifies no new swings being made, a value of 1 signifies a new up swing and a value of 2 signifies a new high.

11:

Swing start price.

12:

Swing start bar.

21:

Swing end price.

22:

Swing end bar.

 

Returns

The AlchemyZigZagPntsOOEL function returns 1 for an up trend and it returns -1 for a down trend.

Home    |    Trading Alchemy Manual    |    Alchemy Functions Index