How does CoverAtTrailingStop work?
Author: BostonFern123
Creation Date: 2/7/2010 4:54 AM
profile picture

BostonFern123

#1
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.
profile picture

Eugene

#2
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.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).