NexusFi: Find Your Edge


Home Menu

 





Outside code to access NinjaTrader data and orders


Discussion in NinjaTrader

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




 
Search this Thread

Outside code to access NinjaTrader data and orders

  #1 (permalink)
 
spinnybobo's Avatar
 spinnybobo 
Crete, IL/USA
 
Experience: Intermediate
Platform: NinjaTrader, Mt4
Broker: Tradestation/Tradestation, NinjaTrader, FXCM and Tallinex
Trading: ES, CL, EUR/USD, TF
Posts: 173 since Aug 2009
Thanks Given: 105
Thanks Received: 61

Hello

I was wondering if anybody knows if it is possible as well as "how to" use code outside of NinjaTrader platform to access NinjaTrader data as well as order information from your own NinjaTrader Brokerage account?

Sometimes I think about building an outside application other than Ninja and was just wondering if it is possible.

So to reiterate, provided somebody has a NinjaTrader Brokerage account and therefore has live data as well as order information like Account Value as well as execution orders like EnterLong and EnterShort, ExitLong, ExitShort.

Just wondering if it is possible to gain access to a library that can be executed by an outside language and outside application (outside of NinjaTrader) that can then do all of this.

thanks
Spencer

Follow me on Twitter Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #2 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863

There are several ways to achieve this :

1° there is the ATI interface you can talk to (either through socket or file)

2° you can call the functions in the client dll
https://ninjatrader.com/support/helpGuides/nt7/?dll_interface.htm

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
 
spinnybobo's Avatar
 spinnybobo 
Crete, IL/USA
 
Experience: Intermediate
Platform: NinjaTrader, Mt4
Broker: Tradestation/Tradestation, NinjaTrader, FXCM and Tallinex
Trading: ES, CL, EUR/USD, TF
Posts: 173 since Aug 2009
Thanks Given: 105
Thanks Received: 61



rleplae View Post
There are several ways to achieve this :

1° there is the ATI interface you can talk to (either through socket or file)

2° you can call the functions in the client dll
https://ninjatrader.com/support/helpGuides/nt7/?dll_interface.htm

Hey thanks

yeah I remembered seeing this page, but not being able to get it to work. Have you ever gotten it to work in any project?
So it seems like this was created mostly if people want to use it through Tradestation or another platform

Just wondering if I created an order entry interface GUI of my own in VS if I would need to have NinjaTrader running in the background and if not, then would I need to do some syncing of some sort in my program.

thanks
Spencer

Follow me on Twitter Started this thread Reply With Quote
  #4 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


spinnybobo View Post
Hey thanks

yeah I remembered seeing this page, but not being able to get it to work. Have you ever gotten it to work in any project?
So it seems like this was created mostly if people want to use it through Tradestation or another platform

Just wondering if I created an order entry interface GUI of my own in VS if I would need to have NinjaTrader running in the background and if not, then would I need to do some syncing of some sort in my program.

thanks
Spencer

I have a trading robot that generates orders and talks to NT using the ATI interface.
NT takes the order and sends it to the broker for execution.
I case of emergency i can change the order in NT chart trader

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 
spinnybobo's Avatar
 spinnybobo 
Crete, IL/USA
 
Experience: Intermediate
Platform: NinjaTrader, Mt4
Broker: Tradestation/Tradestation, NinjaTrader, FXCM and Tallinex
Trading: ES, CL, EUR/USD, TF
Posts: 173 since Aug 2009
Thanks Given: 105
Thanks Received: 61


rleplae View Post
I have a trading robot that generates orders and talks to NT using the ATI interface.
NT takes the order and sends it to the broker for execution.
I case of emergency i can change the order in NT chart trader

what language do you write the robot in? Are you willing to share?

Follow me on Twitter Started this thread Reply With Quote
  #6 (permalink)
 
Blash's Avatar
 Blash 
Chicago, IL
Legendary Market Chamois
 
Experience: None
Platform: NT8,NT7,TWS
Broker: InteractiveBrokers, S5T, IQFeed
Trading: The one I'm creating in the present....Index Futures mini/micro, ZF
Posts: 2,311 since Nov 2011
Thanks Given: 7,341
Thanks Received: 4,518


spinnybobo View Post
Hello

I was wondering if anybody knows if it is possible as well as "how to" use code outside of NinjaTrader platform to access NinjaTrader data as well as order information from your own NinjaTrader Brokerage account?

Sometimes I think about building an outside application other than Ninja and was just wondering if it is possible.

So to reiterate, provided somebody has a NinjaTrader Brokerage account and therefore has live data as well as order information like Account Value as well as execution orders like EnterLong and EnterShort, ExitLong, ExitShort.

Just wondering if it is possible to gain access to a library that can be executed by an outside language and outside application (outside of NinjaTrader) that can then do all of this.

thanks
Spencer

In NT7 there is this..... Automated Trading OIF Builder

Ron

...My calamity is My providence, outwardly it is fire and vengeance, but inwardly it is light and mercy...
The steed of this Valley is pain; and if there be no pain this journey will never end.
Buy Low And Sell High (read left to right or right to left....lol)
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #7 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


spinnybobo View Post
what language do you write the robot in? Are you willing to share?

It is written in c#
It is a private project that i can not share. (roughly 30.000 lines of code)

But if you encounter technical/infrastructure problems and post them, I might be able to answer and help you.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on July 22, 2016


© 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