Home    |    Trading Alchemy Manual    |    Alchemy Functions Index

AlchemyVolatilitySignal (Function)

AlchemyVolatilitySignal is a multiple-output function that provides the entry signals of the AlchemyVolatilityEntryExit strategies.

AlchemyVolatilitySignal (VolatilePrice,VolatileLength,VolatileAvgType,VolatileFact,UseCloseStop,StopPrice)

Parameters

 

VolatilePrice(numericseries) Specifies the price to be used for the volatility calculation such as truerange, for example

VolatileLength(numericsimple)

Specifies the trailing bars to consider in the volatility calculation.

VolatileFact(numericsimple) Specifies the volatility multiplication factor.
UseCloseStop (numeric) Specifies whether the trailing stop needs to be taken out by the close of a bar or by the high of a bar in a down trend and by the low of a bar in an up trend in order to change trend.  A value of 1 uses the close of a bar and a value of 0 uses the high/low of a bar.

StopPrice(numericref)

A numeric reference that receives the stop order price.

 

Returns

The AlchemyVolatilitySignal function returns 1 when the AlchemyVolatilityEntryExit strategies generate a buy stop order and it returns -1 when the AlchemyVolatilityEntryExit strategies generate a sell stop order.

Home    |    Trading Alchemy Manual    |    Alchemy Functions Index