Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Integrate TWS API with a Ninjatrader 7 Strategy
Collapse
X
-
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.
-
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 rocketman7, Today, 09:41 AM
|
4 responses
15 views
0 likes
|
Last Post
by rocketman7
Today, 02:56 PM
|
||
Started by selu72, Today, 02:01 PM
|
1 response
9 views
0 likes
|
Last Post Today, 02:17 PM | ||
Started by WHICKED, Today, 02:02 PM
|
2 responses
13 views
0 likes
|
Last Post
by WHICKED
Today, 02:15 PM
|
||
Started by f.saeidi, Today, 12:14 PM
|
8 responses
21 views
0 likes
|
Last Post
by f.saeidi
Today, 01:55 PM
|
||
Started by Mikey_, 03-23-2024, 05:59 PM
|
3 responses
56 views
0 likes
|
Last Post
by Sam2515
Today, 01:47 PM
|
Leave a comment: