Home    |    Trading Alchemy Manual    |    Alchemy Functions Index

AlchemyUniversalPiv (Function)

AlchemyUniversalPiv is a multiple-output function that provides a previous pivot's high/low price and its corresponding bar numbers.

AlchemyUniversalPiv (HighPrice,LowPrice,LeftStrength,RightStrength,MaxEqualBars,UnEqualBars,oHiPiv,oLeftHiBar,oRightHiBar,oPivHi,oLoPiv,oLeftLoBar,oRightLoBar,oPivLo)

Parameters

 

HighPrice

Specifies the price information to be considered for a pivot high.

LowPrice

Specifies the price information to be considered for a pivot low.

LeftStrength

The required number of bars on the left side of the pivot bar.

RightStrength

The required number of bars on the left side of the pivot bar.

MaxEqualBars

Specifies the maximum number of consecutive bars with equal highs that qualifies a pivot high and  the maximum number of consecutive bars with equal lows that qualifies a pivot low.

UnEqualBar

Specifies the maximum number of bars with lower highs in between 2 equal highs that qualifies as one pivot high and  the maximum number of bars with higher lows in between 2 equal lows that qualifies as one pivot low.

oHiPiv

Variable that receives a true value if a new pivot high has formed.

oLeftHiBar Variable that receives the bar number of the bar to the left of the last pivot high bar.

oRightHiBar

Variable that receives the bar number of the bar to the right of the last pivot high bar.

oPivHi Variable that receives the high price of the last pivot high.
oLoPiv Variable that receives a true value if a new pivot low has formed.
oLeftLoBar Variable that receives the bar number of the bar to the left of the last pivot low bar.
oRightLoBar Variable that receives the bar number of the bar to the right of the last pivot low bar.
oPivLo Variable that receives the low price of the last pivot low.

 

Returns

AlchemyUniversalPiv returns a fixed number of 1.

 

Home    |    Trading Alchemy Manual    |    Alchemy Functions Index