Moscow/Russia
Posts: 2 since Sep 2013
Thanks Given: 0
Thanks Received: 0
|
Hello to all --
I used tye following code to get execution details
foreach (Account acct in Cbi.Globals.Accounts)
{
if (acct.Executions != null)
{
ExecutionCollection execution = acct.Executions;
foreach (Execution eX in execution)
{
Print("Account " + eX.Account + "Instrument " + eX.Instrument + "Time " + eX.Time + "Price " + eX.Price + "Quantity " + eX.Quantity + "mp " + eX.MarketPosition);
}
}
}
but it gives only the current day trades and does not previous day trades. The other thing is that if I close the terminal and open it again the code gives me the trades. It means that NT7 keeps trades somwere but the script has default settings to work with only the current day trades. NT7 support does not support this type of questions but they said me NT7 keeps all trades in Ninjatrader.sdf file. Also I noticed that NT7 has log file of current day. I think that the script gives data from that log file.
Do anybody know how to make script work with all tredes? What are methods which assigned the script to work with all trades?
Thank you in advance.
|