PDA

View Full Version : Result of previous trade in backtest


JonesWooHoo
10-15-2007, 07:46 AM
Hi,

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.

NinjaTrader_Ray
10-15-2007, 08:03 AM
This is currently not supported in NT6 however, it will be supported and extensively documented in NT 6.5. We should have beta out in less than two weeks.

JonesWooHoo
10-15-2007, 06:14 PM
Hi Ray,

It would be good to have more events
eg
OnPositionClosed
OnOrderFilled
OnTick
+ more

NinjaTrader_Dierk
10-16-2007, 12:44 AM
Please be patient. NT6.5 will support a good chunk of it.

KBJ
10-21-2007, 03:15 AM
Thank you. That is very good news. Maybe I can get rid of some of my unusual workarounds.:)