Search found 92 matches

by sectorbets
Mon Apr 09, 2018 4:18 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Best way to confirm buying power before issuing order??
Replies: 18
Views: 68912

Re: Best way to confirm buying power before issuing order??

We are ready to dig into this again -- a few things we have learned: 1) We have no problem in margin accounts since we use very little leverage, and the 4X buying power always works. 2) The problem as described before is only in cash accounts where is we are short by even a penny, the trade is rejec...
by sectorbets
Fri Feb 09, 2018 2:34 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Best way to confirm buying power before issuing order??
Replies: 18
Views: 68912

Re: Best way to confirm buying power before issuing order??

You are correct !! By asking for BP, we got 4X the cash value since the accounts are pattern day trading accounts. BP won't serve our purposes, so I will look at some other value.

Thank you
Rick
by sectorbets
Fri Feb 09, 2018 1:10 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Best way to confirm buying power before issuing order??
Replies: 18
Views: 68912

Re: Best way to confirm buying power before issuing order??

As I expected, listing just a few accounts that we want to check for buying power doesn't work. Instead of just picking up the two accounts in our test, it looked at every account attached to the master list. This is the same way that using an account list worked in the past -- it always used the en...
by sectorbets
Thu Jan 25, 2018 8:35 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Best way to confirm buying power before issuing order??
Replies: 18
Views: 68912

Re: Best way to confirm buying power before issuing order??

1) We wait_for_filled closing the original position
2) We place a whatif order reversing the position
3) We wait_for_filled on the whatif order
4) Once we get filled, we place the order a second time with the whatif flag off

Is that what you are suggesting ??
by sectorbets
Thu Jan 25, 2018 8:14 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Best way to confirm buying power before issuing order??
Replies: 18
Views: 68912

Re: Best way to confirm buying power before issuing order??

I will try the comma delimited list, although I had issues trying that in the past with another function -- I don't recall which one since it was over a year ago -- I had the same situation of wanting to deal only with positions in our short list of accounts, and the function swept through all 50 ac...
by sectorbets
Thu Jan 25, 2018 7:43 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Best way to confirm buying power before issuing order??
Replies: 18
Views: 68912

Re: Best way to confirm buying power before issuing order??

I looked at get_acc_val previously, but didn't completely understand how it would work. Will it work with the master account as well as IB's algos ?? Would I just stick it in a while....begin loop until IB updates it ?? And to make it more complicated, there are about 50 sub accounts attached to the...
by sectorbets
Thu Jan 25, 2018 7:20 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Best way to confirm buying power before issuing order??
Replies: 18
Views: 68912

Best way to confirm buying power before issuing order??

I am having a problem when reversing positions. 1) Let's say I am long and want to reverse to a short using an inverse ETF 2) I sell the long position, and if I immediately place an order to buy the inverse ETF, the inverse ETF order is usually rejected due to insufficient buying power available 3) ...
by sectorbets
Fri Dec 29, 2017 5:21 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: New release of TWS causing problems ??
Replies: 11
Views: 14418

Re: New release of TWS causing problems ??

Yes, it works fine with just one process, but for some reason TS sometimes starts additional processes, and then the problem reappears -- I realize it isn't in your code, but was hoping you might have some idea about how to get TS to always start just one process -- compatibility mode is supposed to...
by sectorbets
Fri Dec 29, 2017 2:29 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: TWSLink now free software
Replies: 2
Views: 9080

Re: TWSLink now free software

Is there any difference in functionality ??

Thank you
Rick
by sectorbets
Fri Dec 29, 2017 1:40 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: New release of TWS causing problems ??
Replies: 11
Views: 14418

Re: New release of TWS causing problems ??

Well, I thought Compatibility mode turned off multiple cores, but the problem had returned, and I would have multiple Orchart processes running so multiple cores was obviously running. I tried switching back and forth between the various options, and for no particular reason, I right now have a sing...
by sectorbets
Fri Dec 29, 2017 1:13 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: New release of TWS causing problems ??
Replies: 11
Views: 14418

Re: New release of TWS causing problems ??

How do I switch off multiple cores -- the problem has returned after working OK for a couple of days.

Thank you
Rick
by sectorbets
Thu Dec 21, 2017 7:20 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: New release of TWS causing problems ??
Replies: 11
Views: 14418

Re: New release of TWS causing problems ??

The TS folks had me try a couple of things, and they believe that the problems I saw after installing the new release are due to the way they handle multiple cores -- it is apparently different from before. Running in compatability mode seems to solve the problem, but they can't guarantee that will ...
by sectorbets
Thu Dec 21, 2017 5:25 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: New release of TWS causing problems ??
Replies: 11
Views: 14418

Re: New release of TWS causing problems ??

I spoke to the TS folks and they suggested running in Compatability performance mode -- I was previously letting TS decide what mode -- and now everything is back to normal. All I had done was upgrade to TS 9.5 Update 22, so they must have changed their algorithm for deciding what mode they would us...
by sectorbets
Thu Dec 21, 2017 3:46 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: New release of TWS causing problems ??
Replies: 11
Views: 14418

Re: New release of TWS causing problems ??

I have done everything I can think of, and the problem persists 1) I rolled back TradeStation to previous release 2) I went back to an earlier IB release 3) I loaded the two TS windows at the same time 4) I loaded the TS windows one at a time And TWSLink only seems to recognize the last TS window lo...
by sectorbets
Thu Dec 21, 2017 3:00 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: New release of TWS causing problems ??
Replies: 11
Views: 14418

Re: New release of TWS causing problems ??

I rolled back to the previous version of TradeStation (Version 9.5 Update 21) and the problem persists.

So I looked a little closer, and it turns out that IB pushed out an update to TWS this morning as well, so I will see what I can find out about it -- any ideas would be appreciated.
by sectorbets
Thu Dec 21, 2017 1:10 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: New release of TWS causing problems ??
Replies: 11
Views: 14418

Re: New release of TS causing problems ??

The title is incorrect -- I meant to say TS, not TWS
by sectorbets
Thu Dec 21, 2017 1:08 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: New release of TWS causing problems ??
Replies: 11
Views: 14418

New release of TWS causing problems ??

TradeStation updated a new release over the weekend, and now when I load multiple TradeStation windows, only the symbols in the last window loaded are active. For example, if I load two windows, the first with SPY/SDS and the second with VXX/XIV, only the second set of symbols is in the log. Here is...
by sectorbets
Mon Nov 20, 2017 2:12 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Ignoring sub accounts during start up
Replies: 2
Views: 9055

Re: Ignoring sub accounts during start up

It is already set to summary, so I guess the easiest solution is to set up another master account just for TWSLink accounts.

Thank you
Rick
by sectorbets
Mon Nov 20, 2017 1:11 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Ignoring sub accounts during start up
Replies: 2
Views: 9055

Ignoring sub accounts during start up

We have about 50 sub accounts attached to an IB master account, but only a few are using TWSLink to receive orders from TradeStation signals. During start up, TWSLink is reading the open positions in all 50 accounts -- is there a way to ignore the accounts that won't be using TWSLink, or should we s...