- ago
I need some clarification on the CloseAtTrailingStop method. In WL6, there's a CoverAtTrailingStop method. Does the CloseAtTrailingStop method in WL8 work to Cover a Short position as well?

Also, when one is selling a Short position with TrailingStopType.PointC, does CloseAtTrailingStop automatically add (not subtract) the specified amount (see atr[idx] term below) from the bars.Close[idx] TimeSeries?

CODE:
CloseAtTrailingStop(LastOpenPosition, TrailingStopType.PointC, atr[idx], "trailing stop sell");
Same question again, but this time selling a Long position with TrailingStopType.PointC. Does CloseAtTrailingStop automatically subtract (not add) the specified amount from the bars.Close[idx] TimeSeries? Or do I need to add a negative sign to the amount for this case? The docs really don't say.

I assume the answer to all these questions is "yes", but I want to be sure.
1
134
Solved
1 Replies

Reply

Bookmark

Sort
- ago
#1
QUOTE:
Does the CloseAtTrailingStop method in WL8 work to Cover a Short position as well?

Yes, of course.

QUOTE:
Or do I need to add a negative sign to the amount for this case?

No need, this is handled automatically by WL.
2
Best Answer

Reply

Bookmark

Sort