fred99998
 ( 21.82% )
- ago
Long positions are closed on the next bar. The exit condition is not met.



1
804
Solved
6 Replies

Reply

Bookmark

Sort
- ago
#1
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).
0
Cone8
 ( 6.24% )
- ago
#2
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.
0
- ago
#3
Could you clarify? What happens here is that the short exit closes a long position (and vice versa) in a single position strategy.
0
- ago
#4
Here's what I mean, note the mismatch of positionTag:
0
Cone8
 ( 6.24% )
- ago
#5
It's just a case of me not reading the full context again :)
0
- ago
#6
This bug is fixed for B42.
0
Best Answer

Reply

Bookmark

Sort