There's just one more thing to check and I'll have my answer...
Ok, I have been able to get the two windows to match finally. It seems to be all related to the sessions of the instruments being traded. In addition to this, like I said I had two bars objects, the second one being the ^SP500 symbol. I was getting incorrect trade executions as long as I had that instrument factored in but when I turned it off both the chart and the strategy analyzer were reacting properly again, and I believe it has something to do with how the ^SP500 session is being treated in these two backtests.
NinjaTrader_Lance, I'm going to say that you got me to the bottom of this problem and solved it. Now if only I can go dissect that $14,500,000 fluke P&L result and make it happen on purpose
However, a mystery has arisen, which I will work with on my own from here on but if anyone can pitch in idea about it, I'll be grateful:
Interestingly, I have the strategy set to use that virtual account balance as mentioned before. It starts with a user-defined amount, default $10,000, and uses that to decide sharesize to purchase. I'm noticing that on the live chart window, every time I disconnect and reconnect from data feed, or reload the strategy, that initial $10,000 amount is being altered in the stratgey parameter window and I have to put it back to $10,000 each time I re-enable the strategy.. didn't expect that to happen.. wonder why. For example, if the 365 days of data loaded produce a loss, pressing refresh multiple times will diminish the strategy's buying power until it can't trade at all anymore over the same time period as it used to do.
*Edit: I bet I should just put the declaration of it being $10,000 in the initialize portion of my strategy and it will remain as it should upon each refresh.. let's see
*Edit 2: No, even hard setting the VirtualAccountSize variable I made to $10,000 in the Initialize method does not protect it from being gradually diminished upon multiple chart reloads.. how odd..
*Edit 3: The variable retains the diminished value even when I shut off ninjatrader 7 completely and restart it - now that was unexpected

Comment