• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Integrate TWS API with a Ninjatrader 7 Strategy

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NinjaTrader_ChrisL
    replied
    Hello blunt,

    Thank you for the post.

    Using the TWS API through a NinjaScript is not supported. if the error message is giving you an error along the lines of

    "could not find xxx.dll" you must search your C drive for that dll and add it to the references list.

    NinjaTrader has already developed an API interface for TWS (That is the reason you can connect to it from the user interface). If you connected to your Interactive Brokers account through NinjaTrader you can use the supported NinjaScript methods to place orders to your Interactive Brokers account:

    https://ninjatrader.com/support/help...er_methods.htm - All NinjaScript order methods.
    https://ninjatrader.com/ConnectionGu...nnection-Guide - Interactive Brokers connection guide.

    Please let me know if I may be of any further assistance.

    Leave a comment:


  • blunt
    started a topic Integrate TWS API with a Ninjatrader 7 Strategy

    Integrate TWS API with a Ninjatrader 7 Strategy

    I am trying to connect to the Interactive Brokers TWS API locally on my machine, and I want to place an order from Ninjatrader 7 to the API.

    I need to add references to the API in Ninjatrader, otherwise I get "The type or namespace cannot be found" when I try to compile the strategy.

    Can anyone tell me which references I should be adding, and how / where to add them so I can reference classes from the API, and ultimately call methods from them?

    Thank you.

Latest Posts

Collapse

Topics Statistics Last Post
Started by b16_aln, Today, 12:47 AM
0 responses
2 views
0 likes
Last Post b16_aln
by b16_aln
 
Started by mbcmbc, Yesterday, 11:01 PM
0 responses
7 views
0 likes
Last Post mbcmbc
by mbcmbc
 
Started by morrnel, Yesterday, 09:39 PM
0 responses
2 views
0 likes
Last Post morrnel
by morrnel
 
Started by Thesuccesfulinvestor, Yesterday, 09:07 PM
0 responses
6 views
0 likes
Last Post Thesuccesfulinvestor  
Started by WestonMicah, Yesterday, 12:44 AM
1 response
19 views
0 likes
Last Post koganam
by koganam
 
Working...
X