NexusFi: Find Your Edge


Home Menu

 





All days executions


Discussion in NinjaTrader

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




 
Search this Thread

All days executions

  #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

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
45 thanks
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Bigger Wins or Fewer Losses?
24 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks




Last Updated on January 18, 2014


© 2024 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 - Privacy Policy - Downloads - Top
no new posts