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?
I assume the answer to all these questions is "yes", but I want to be sure.
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: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.
CloseAtTrailingStop(LastOpenPosition, TrailingStopType.PointC, atr[idx], "trailing stop sell");
I assume the answer to all these questions is "yes", but I want to be sure.
Rename
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.
Your Response
Post
Edit Post
Login is required