Home | Trading Alchemy Manual | Alchemy Functions IndexAlchemyPercentTrlSt (Function)AlchemyPercentTrlSt is a multiple-output function to be used with strategies. It detects if the current position is either long or short and calculates a percent trailing stop from the entry point forward. The function returns the percent trailing stop value for the current position. The value for the position high in a long position and the position low in a short position is passed by reference back to the variable PosHi. AlchemyPercentTrlSt (StopPcnt,PosHi) Parameters
|
StopPcnt |
Specifies the percent trailing stop |
PosHi | The value for the position high in a long position and the position low in a short position is passed by reference back to this variable. |
ReturnsAlchemyPercentTrlSt returns the percent trailing stop value for the current position. The value for the position high in a long position and the position low in a short position is passed by reference back to the variable PosHi. Home | Trading Alchemy Manual | Alchemy Functions Index |