Import Executions into NT7 - NinjaTrader | futures io social day trading
futures io futures trading


Import Executions into NT7
Updated: Views / Replies:754 / 6
Created: by Fadi Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Import Executions into NT7

  #1 (permalink)
Elite Member
Luxembourg
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB / Kinetick
Favorite Futures: ZN
 
Fadi's Avatar
 
Posts: 482 since Apr 2012
Thanks: 650 given, 625 received

Import Executions into NT7

Hi Guys
Do you think there is a practical way of importing a full database of executions into NT7 for displaying and feeding the performance tab reports and graphs?

I wish to import all my 2013 trades in NT7 as I did not connect it everyday to my broker's account, and was trading from outside NT7 on my any occasions...

I've found in the user's guide a very unpractical and manual way of inserting executions in the system; that works perhaps for adding a couple of trades, but can't do for 500+ trades unfortunately.

Can we force this through customized programming, or manual modifications of the underlying DB files?

Thanks
Fadi

Successful people will do what unsuccessful people won't or can't do!
Reply With Quote
 
  #2 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,367 since Jun 2009
Thanks: 3,574 given, 3,983 received

It might be possible in feeding the nt_execution table. But it's a bit tricky, as you'll need to find the instrument id, and so on.


Fadi View Post
Hi Guys
Do you think there is a practical way of importing a full database of executions into NT7 for displaying and feeding the performance tab reports and graphs?

I wish to import all my 2013 trades in NT7 as I did not connect it everyday to my broker's account, and was trading from outside NT7 on my any occasions...

I've found in the user's guide a very unpractical and manual way of inserting executions in the system; that works perhaps for adding a couple of trades, but can't do for 500+ trades unfortunately.

Can we force this through customized programming, or manual modifications of the underlying DB files?

Thanks
Fadi


Success requires no deodorant! (Sun Tzu)
Reply With Quote
 
  #3 (permalink)
Elite Member
Luxembourg
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB / Kinetick
Favorite Futures: ZN
 
Fadi's Avatar
 
Posts: 482 since Apr 2012
Thanks: 650 given, 625 received


Do you know where can I find the nt_execution table?

Successful people will do what unsuccessful people won't or can't do!
Reply With Quote
 
  #4 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,367 since Jun 2009
Thanks: 3,574 given, 3,983 received

It's in ninjatrader.sdf .

Success requires no deodorant! (Sun Tzu)
Reply With Quote
 
  #5 (permalink)
Elite Member
Luxembourg
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB / Kinetick
Favorite Futures: ZN
 
Fadi's Avatar
 
Posts: 482 since Apr 2012
Thanks: 650 given, 625 received

Thank you Sam
File located, but trying to open it with CompactView, and having some issues...
Are you editing this sdf file with Visual studio usually?

Successful people will do what unsuccessful people won't or can't do!
Reply With Quote
 
  #6 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,367 since Jun 2009
Thanks: 3,574 given, 3,983 received

See a skeleton, used for an external program wrote in C# with VS :

 
Code
                            
            string path Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\Ninjatrader 7\db";

            const 
string dbName "NinjaTrader.sdf";
            
SqlCeConnection c;
            
= new SqlCeConnection("DataSource=" path + @"\" + dbName + ";File Mode=Read Only;Temp Path=" + path);
            c.Open();

            string query = "
select a.marketposition,a.quantity,a.price,b.expiry,c.name,a.executiontime,d.name,a.pos,a.counterid" +
                " 
from nt_execution a,nt_instrument b,nt_masterinstrument c,nt_account d" +
                " 
where a.instrument=b.id and b.masterinstrument=c.id and a.account=d.id" +
                " 
order by a.executiontime";

            SqlCeCommand cmdGet = new SqlCeCommand(query, c);
            SqlCeDataReader reader;

            reader = cmdGet.ExecuteReader();

            while (reader.Read())
            {
                int m = (int)reader[0]; // L ou S
.... 
But like I wrote earlier, a bit tricky...

Success requires no deodorant! (Sun Tzu)
Reply With Quote
The following 2 users say Thank You to sam028 for this post:
 
  #7 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,507 since Sep 2013
Thanks: 1,710 given, 3,722 received
Forum Reputation: Legendary


Fadi View Post
Thank you Sam
File located, but trying to open it with CompactView, and having some issues...
Are you editing this sdf file with Visual studio usually?

Just in case if anybody else is bumping into the same problem : "Unable to open database : Internal Error : cannot open the shared memory region."... I'm writing it down here for the record... as other members may bump into this also, and find the answer helpful.

Took me 1/2 day to figure it out (thanks to MSF with their clear error message), as i don't have this on my other machine and only on this machine. I did a lot of things to nail the problem down. Uninstalling all the SQL xxx drivers and programs (i don't use it), only installing sql ce 3.5 (be sure to focus on the right version, or NT will crash after many orders) to find the the problem is exactly the same

The break-through came when i copied the "ninjatrader.sdf" file to my desktop, there it opens without any problem/error, conclusion, it's a rights issue (the error message doesn't tell you so)

The final solution is to run compactview as admin (right click, run as..)

I have this only on one of my machines...


Last edited by rleplae; January 14th, 2017 at 03:37 PM. Reason: typos
Reply With Quote
The following 2 users say Thank You to rleplae for this post:

Reply



futures io > > > > Import Executions into NT7

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tick data exported from Sierra to Import to NT7 GoldTrader740 NinjaTrader 5 November 15th, 2013 08:14 PM
import indicator buufstik MetaTrader 2 February 25th, 2012 04:35 PM
import xml to nt7 bobarian NinjaTrader 3 March 10th, 2011 06:20 AM
Why do executions appear to be diff related to bars after NT restart DabaDave Traders Hideout 2 June 15th, 2010 03:26 PM
Import/Export tom_c NinjaTrader 7 January 21st, 2010 02:58 PM


All times are GMT -4. The time now is 06:47 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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 2017-12-18 in 0.11 seconds with 20 queries on phoenix via your IP 54.221.93.187