You do great jpb! I've got good help on all of my inquiries and I have another one.
NT7 has a function to display trades and its results http://www.ninjatrader.com/support/h..._data_tabs.htm
I'd like my script can get it either. I mean not only script's trades but manualy too.
Earler you gave me the following code to get access to real account data
foreach (Account acct in Cbi.Globals.Accounts)
{
if (acct.Positions != null)
{
PositionCollection positions = acct.Positions;
foreach (Position pos in positions)
{
Print(pos.Account.Name + " " + pos.Instrument + " " + pos.MarketPosition + " " + pos.Quantity + " " + pos.AvgPrice);
}
}
I tried to use it together with Trades/ TradeCollection/ Performance methods but it doesn't work.
I'm beginner in coding and may not new or understand something.
Please, Help!
Thank you in advance.

Comment