All days executions - NinjaTrader Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming

All days executions
Started:January 18th, 2014 (11:45 AM) by alexbbfg Views / Replies:203 / 1
Last Reply:January 18th, 2014 (11:45 AM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

All days executions

Old January 18th, 2014, 11:45 AM   #1 (permalink)
Trading Apprentice
Futures Experience: Beginner
Platform: NinjaTrader, TradeStation
Favorite Futures: oil, gold
Posts: 2 since Sep 2013
Thanks: 0 given, 0 received

All days executions

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

Old January 18th, 2014, 11:45 AM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > All days executions

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Import Executions into NT7 Fadi NinjaTrader 5 December 8th, 2013 09:25 AM
Sam028 out for a few days Big Mike Off-Topic 13 October 25th, 2012 08:43 PM
Facebook's Early Days: 'I Was About to Just Can It' Quick Summary News and Current Events 0 May 11th, 2012 06:50 PM
simple rolling feature including only data days / skipping non data days SARdynamite NinjaTrader Programming 1 July 15th, 2010 12:22 PM
Why do executions appear to be diff related to bars after NT restart DabaDave Traders Hideout 2 June 15th, 2010 02:26 PM

All times are GMT -4. The time now is 02:55 AM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-28 in 0.07 seconds with 19 queries on phoenix via your IP