NexusFi: Find Your Edge


Home Menu

 





All days executions


Discussion in NinjaTrader

Updated
    1. trending_up 1,364 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
alexbbfg
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.


Reply With Quote

 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks




Last Updated on January 18, 2014


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts