Long positions are closed on the next bar. The exit condition is not met.
Rename
Confirmed. Renamed the topic title "Long positions are closed on the next bar. The exit condition is not met" to better describe the issue: "Blocks: Long positions get closed by Short exit condition" (and vice versa).
Let's think about this, because it appears to be [good] design. You're long but your rules are telling you to "Sell" (Short). Is it practical to have a Long and Short Position open for the same instrument?
Nonetheless, the doubt arises because it is indeed possible to have both types open in a C# strategy.
Nonetheless, the doubt arises because it is indeed possible to have both types open in a C# strategy.
Could you clarify? What happens here is that the short exit closes a long position (and vice versa) in a single position strategy.
Here's what I mean, note the mismatch of positionTag:
It's just a case of me not reading the full context again :)
This bug is fixed for B42.
Your Response
Post
Edit Post
Login is required