-Stop/target handling for strategy "myscalp" set to "bystrategyposition" since currency based stop order was placed.
This makes no sense as no trades were taken before any of this. I have tried reseting the DB and even repairing it and restarting ninja and I always get the same error.
Not sure if I am doing something wrong or this is a legit bug.
I added a print line to OnBarUpdate with Position.MarketPosition. And to my surprise checking the output window, it shows that I am in a position, even though I have not started tick replay, except for scrolling to the appropriate time in day where I wanted to start.
-Alex

Comment