NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 01-12-2010, 02:11 PM   #1
Largo
Junior Member
 
Join Date: Jan 2010
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default Can NT do that?

Hi everybody,

I'm looking for platform for automated trading futures instruments through Interactive Brokers.

Please confirm if NTallows:
1. Restoring strategy state after restarting platform: information about pending orders submitted before must be available as well as about filled orders.
2. Obtain yesterdaty close price for futures (ie. S&P 500 e-mini) from IB (settlement price, seen in TWS by adding "Close" column to the instrument list).
Largo is offline  
Reply With Quote
Old 01-12-2010, 02:20 PM   #2
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 90 times in 82 posts
Default

Largo,

1) NinjaTrader is capable of almost anything you can imagine through the use of custom-coded C# scripting. Unfortunately, out of the box, NinjaTrader doesn't "remember" the states of orders after a shutdown. Although it would be a long and complicated process, it is possible to code a database connector that can track and store fills, executions, and order status.

2) It is definitely possible to retrieve yesterday's close price. You could use the PriorDayOHLC() indicator and just read the close plot.
NinjaTrader_Austin is offline  
Reply With Quote
Old 01-12-2010, 03:31 PM   #3
Largo
Junior Member
 
Join Date: Jan 2010
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default

Thank you Austin.

ad.1 restoring strategy state is vital thing. How can I know if I today already submitted pending orders? can I read from IB list of pending orders? And can I recognize each one by, for example, order comment?

ad.2 I'm not sure if official settlement price is taken from OHLC - it's price from exchange (it's close?) but futures is traded 24/5 (S&P500 @ GLOBEX)
Largo is offline  
Reply With Quote
Old 01-12-2010, 05:29 PM   #4
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 90 times in 82 posts
Default

Largo, our yet-to-be-released NinjaTrader 7 will include account synchronization features designed to keep your account and strategies working together. Unfortunately the synchronization does not look at orders. Also, it can't recognize orders by order comments. Since NinjaScript is based off of Microsoft's C# language, it would be possible to have these features coded into a strategy, but it would be a complex process. So in short, NinjaTrader can do what you wish, but not out of the box and not without an in-depth project to code up a complete external order management system and database.

Regarding #2, it is possible to specify certain session templates that restrict the time so it would be possible to extract the 4:15pm close price through some manipulation.

Let us know if you have any other questions.
NinjaTrader_Austin is offline  
Reply With Quote
Old 01-23-2010, 12:32 PM   #5
BobTN
Member
 
Join Date: Feb 2008
Posts: 67
Thanks: 0
Thanked 0 times in 0 posts
Default

Search for the SessionPivots indicator in the forum. It calculates the actual close value for several different contracts.

I don't know if anyone has calculated the settlement price. I believe settlement is the volume weighted average price for the last minute of trading. Does anyone know how to calculate that value?
BobTN is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NT 7 Beta 2 & NT 6.5.1000.14 Error paulchow2k Version 7 Beta General Questions & Bug Reports 3 10-26-2009 07:05 AM
Sharing the NT internal database between NT instances on different PCs Jonas Installation and Licensing 4 12-05-2008 01:35 PM
building own continuous chart in NT (Data Storage and backfill in NT) Rocket130713 Automated Trading 3 08-25-2008 10:36 PM
Give NT Account warning on each NT restart Jim W. Suggestions And Feedback 2 02-22-2008 10:22 PM


All times are GMT -6. The time now is 03:43 AM.