I've been learning Ninjascript and developing my strategy for a few months now. Its been a difficult but rewarding experience.
I'm moving into trying to develop my order management system for my strategy, so I have copied and adjusted all my order logic into one of the sample strategies so that I can get more data. As an aside, there will probably be another post from me pretty soon crying about my order management and how difficult it is. Ha.
But for now, the issue I am having, which i believe is hindering my testing is that my strategy toolbar shows that I am in a position (4L), however, I do not see any positions on my actual Chart (with Chart Trader Open). Earlier when I was in front of my screen I saw an order be placed and I watched as the orders were populated on the chart, so I know that it is a possibility. I have seen this behavior on my main strategy as well so it is obviously something I need to figure out.
Just to add: I have seen similar behavior when I re-activate this strategy, and it had recently entered a position before disabling, that it would then show that I was in a position, but then the strategy would be yellow. This would happen regardless of whether I put "return;" in State == State.Historical{} But this feels like a separate issue.
Would you kindly advise on the best way for me to figure out what is going on here?
[Edit] I am using the SampleMACrossOver strategy appended with my own order logic, in case you wanted to know.


Comment