Home | Trading Alchemy Manual | Alchemy Functions IndexAlchemyTrender (Function)The AlchemyTrender is a multiple-output function that provides the trailing stop value, trend direction and the highest high or lowest low of the Alchemy Trend Catcher indicator. AlchemyTrender(Length, Factor, UseCloseTrail, UseCloseStop, Trend, PosHi) Parameters
|
Length |
Specifies the TrendCatcher look back period. |
Factor | Specifies the TrendCatcher sensitivity factor. |
UseCloseTrail | Specifies the price to set the trailing distance from. When set to true it uses the close. When set to false, it uses the high in an uptrend and the low in a downtrend. |
UseCloseStop | Specifies the price to use for changing the trend direction when the trailing stop is penetrated. When set to true it uses the close. When set to false, it uses the low in an uptrend and the high in a downtrend. |
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. |
ReturnsThe AlchemyTrender function returns the trailing stop value of the Alchemy Trend Catcher 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 |