Home    |    Trading Alchemy Manual    |    Alchemy Functions Index

AlchemyVolatilityStp (Function)

The AlchemyVolatilityStp is a multiple-output function that provides the trailing stop value, trend direction and the highest high or lowest low of the Alchemy Automatic Volatility Stop indicator.

AlchemyVolatilityStp(Length, Factor, Trend, PosHi)

Parameters

 

Length

Specifies the trailing bars to consider in the volatility calculation.

Factor Specifies the volatility multiplication factor.
Trend A numeric reference that receives 1 if the trend is up  and -1 if the trend is down.

PosHi

A numeric reference that receives the highest high in an uptrend and the lowest low in a down trend.

 

Returns

The AlchemyVolatilityStp function returns the trailing stop value of the Alchemy Automatic Volatility Stop indicator.  The value for the trend direction is passed by reference back to the variable Trend.  The value for the highest high or lowest low is passed by reference back to the variable PosHi. 

Home    |    Trading Alchemy Manual    |    Alchemy Functions Index