Search found 10 matches
- Thu Sep 28, 2017 7:33 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Determining if stock is shortable
- Replies: 2
- Views: 10408
Re: Determining if stock is shortable
OK, thank you I will give that a try.
- Thu Sep 28, 2017 3:22 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Determining if stock is shortable
- Replies: 2
- Views: 10408
Determining if stock is shortable
I am having trouble determining if a stock is shortable. At the moment, AAPL has shares to short, ZYNE does not, ITUS does not AND is short sale restricted (per IB documentation, apparently there is no access to short sale restriction status via the API). When I test the attached batch script, it re...
- Thu Sep 21, 2017 6:28 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Placing Adaptive Algorithmic orders
- Replies: 35
- Views: 47508
Re: Placing Adaptive Algorithmic orders
Thank you, the batch file is working for me, but I'm getting some errors when I try to place the order from the imported DLL in C#. int contractID = REGISTER_CONTRACT("FOLD","STK","USD","SMART","","","",0.0,"",0,0.0); int placeOrder = PLACE_ORDER(contractID, 0, "BUY", "LMT", 100, 15.00, 0.0, "DAY", ...
- Tue Sep 19, 2017 7:47 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Placing Adaptive Algorithmic orders
- Replies: 35
- Views: 47508
Re: Placing Adaptive Algorithmic orders
Thank you, I don't see the batch file attachment?
- Mon Sep 18, 2017 6:40 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Placing Adaptive Algorithmic orders
- Replies: 35
- Views: 47508
Re: Placing Adaptive Algorithmic orders
Sorry, when I said it was working over the weekend, the trades were appearing in TWS with a delay and an error message saying that only RTH is allowed for Algo orders (note that tif is set to "DAY"). However, I am still receiving the same delays and message during RTH. https://www.photoville.org/upl...
- Mon Sep 18, 2017 4:22 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Placing Adaptive Algorithmic orders
- Replies: 35
- Views: 47508
Re: Placing Adaptive Algorithmic orders
I may have spoken too soon on this topic. It does not appear to be working today. The batch tester returns valid values, but the order does not appear in TWS. https://www.photoville.org/uploads/2017-09-18_09h15m57s_1053x264_HPTzLbfsG.png Placing a simple limit order worked fine, but the Algo type di...
- Sat Sep 16, 2017 12:47 am
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Using TWSLink with NinjaTrader
- Replies: 2
- Views: 10320
Re: Using TWSLink with NinjaTrader
I haven't tested thoroughly, but it appears that importing the DLL will work with NinjaTrader. e.g. [DllImport("twslink2.dll")] public static extern int REGISTER_CONTRACT(string underlying, string sectype, string currency, string exchange, string primexchange, string expiry, string right, double str...
- Fri Sep 15, 2017 6:26 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Placing Adaptive Algorithmic orders
- Replies: 35
- Views: 47508
Re: Placing Adaptive Algorithmic orders
Thank you,
I can confirm this is working with SET_ORDER_VAL valued id 67 set to "Adaptive"
and valued id 68 set to "Normal" (or whatever desired priority)
I can confirm this is working with SET_ORDER_VAL valued id 67 set to "Adaptive"
and valued id 68 set to "Normal" (or whatever desired priority)
- Thu Sep 14, 2017 11:41 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Using TWSLink with NinjaTrader
- Replies: 2
- Views: 10320
Using TWSLink with NinjaTrader
I added TWSLink2.dll as a reference in the NinjaTrader code editor and it gave me the following error:
NinjaScript File Error Code Line Column
<None> Metadata file 'c:\Windows\SysWOW64\twslink2.dll' could not be opened -- 'An attempt was made to load a program with an incorrect format. ' CS0009 0 0
NinjaScript File Error Code Line Column
<None> Metadata file 'c:\Windows\SysWOW64\twslink2.dll' could not be opened -- 'An attempt was made to load a program with an incorrect format. ' CS0009 0 0
- Thu Sep 14, 2017 11:34 pm
- Forum: Twslink - universal Interactive Brokers API plugin
- Topic: Placing Adaptive Algorithmic orders
- Replies: 35
- Views: 47508
Placing Adaptive Algorithmic orders
Newbie, wondering how to place adaptive algo order type:
https://www.youtube.com/watch?v=IsrW76DJBF8
https://interactivebrokers.github.io/tw ... #gsc.tab=0
I am working with the batch testing tool. Thanks.
https://www.youtube.com/watch?v=IsrW76DJBF8
https://interactivebrokers.github.io/tw ... #gsc.tab=0
I am working with the batch testing tool. Thanks.