Thank you for the strategy - it indeed works on my end and is very similar to what I have. My issue as I've discovered was my interpretation of how OnExecutionUpdate() worked. I assumed it would catch the event of the strategy "adopting" my account position. I was wrong. It purely catches the event when the trade was originally placed, which brings me to where my issue was - my strategy was real-time only. Once I included historical data, it worked as you described. Thank you again.
So for the past week I've been attempting to make AdoptAccountPosition work for my needs (strategy recognizes its strategy-generated position upon re-enable), but now am wondering if there is another way to achieve the same result. If you don't mind me asking koganam, which starting behavior do you use? I'm beginning to research and test the others, but would value any inputs you may have.
Comment