I'm fairly new to WealthLabPro. Currently I'm working on back testing a strategy that involves using trailing stop. I found a function called CoverAtTrailingStop, but I can't figure out how it works.
Trailing stop, based on my understanding, is based on a given percentage or value. This function doesn't take such argument, instead, it only takes an argument where the trailing stop begins. Can somebody please clarify this?
Thank you.
Size:
Color:
SellAtTrailingStop (for long positions, or CoverAtTrailingStop for short, or ExitAtTrailingStop regardless of PositionType) can be programmed to implement any trailing stop: Chandelier, after a certain profit etc. For that, you pass it a value (double stopPrice). What you're probably looking for is called *AtAutoTrailingStop - see the QuickRef for an explanation and examples.
Size:
Color: