Here's what's going on. I'd like to restrict the strategy to only get into a certain number of positions at one time. Long positions decrease the cash value and short positions increase the cash value, but not by the cash value of the positions because of margins. It appears that the Sim101 account has 2x leverage and IB has 4x leverage, but the calculations don't work with multiple positions. I'm missing something, and that something might be really obvious.
I only need this calculation as a stopgap until NinjaTrader can provide a more holistic view of the portfolio from within a strategy.
Comment