In backtest, I need to know if the previous trade made a profit or not.
I have tried
Account.GetAccountItem(AccountItemType.RealizedPro fitLoss
Account.GetAccountItem(AccountItemType.CashBalance
but both these return 0.
Perhaps there is a list of trades/orders I can get to somewhere?
Is there any documentation on the NinjaTrader namespace?
Even some auto generated doco that would allow me to search for keywords would be good.
Comment