- ago
I am not able to get sell orders both Manual and Auto to Interactive Brokers nor Tradier. They do work in WL Dummy Broker tho. The Buy orders go thru to the brokers with no issues.
Can't figure out why. It is only the sell orders strange. Please advise. Thank you.
0
335
Solved
33 Replies

Reply

Bookmark

Sort
Glitch8
 ( 12.05% )
- ago
#1
Is your WL8 and extension versions all up to date?

What happens with the sells?
0
- ago
#2
I have V 79 current. I can see the sells go thru the Order Manager (They show for a second) but they don't get sent and shown in the Broker's platform sell orders. The Longs stay Long in other words.
The image below shows Longs keep bein sent and no Sells. The only one SLD you see I manually took in IB Workstation to test it.

0
Glitch8
 ( 12.05% )
- ago
#3
Turn off any of the Auto Remove check boxes in the Order Manager so we can see what is happening with your sells.
0
Cone8
 ( 23.52% )
- ago
#4
You're creating cash-balances; probably you'll find that the sells were rejected because there is no "Position".

In the Help, see Interactive Brokers > Forex for more information and a link on trading Forex using CFDs.
0
- ago
#5
It was working fine with IB before. As you can see in screenshot below the sell orders were being sent before Feb 15. Something got changed after Build 79. Maybe a setting?



0
Cone8
 ( 23.52% )
- ago
#6
See Glitch's Post #3.
There's more information available.
0
- ago
#7
@Cone, Maybe we can do an hour session via the Concierge Service so you can guide me how to set up Auto trading for various brokers namely IB and Tradier if that's ok with you.
0
Glitch8
 ( 12.05% )
- ago
#8
What about the suggestion in Post #3?
0
Cone8
 ( 23.52% )
- ago
#9
I just ran a test with currencies myself. The problem is like I mentioned - that EUR.USD is not a "Position" that shows up in the IB Accounts > Portfolio section, which is required for it to show up in WL Accounts for position match. I can't tell why it worked for you before, but from a little testing today, sometimes the position is reported, but usually it is not.

Instead if you buy Euros (EUR.USD for example), you're just buying cash in the Euro denomination by selling USD. Euros is not a position, it's just cash. Furthermore, if you tried to buy euros with JPY (EUR.JPY), this trade would fail if you don't have JPY to sell. IB does not allow negative cash balances.

You need to create contracts with CFDs to trade these currencies, or, as suggested in our Help guide, you can also use currency future contracts.
1
- ago
#10
I turned OFF Auto-Remove but not showing any historical orders I can see them when triggered by the strategy go thru the Order Manager for one second but then do not stay visible.

0
Glitch8
 ( 12.05% )
- ago
#11
Please UNCHECK the boxes marked in orange and try some Sells.

0
Cone8
 ( 23.52% )
- ago
#12
You're auto-removing completed and canceled orders by checking the boxes you circled.
Don't check any.
0
Cone8
 ( 23.52% )
- ago
#13
QUOTE:
I can't tell why it worked for you before
.. but here's an educated guess:

Probably you owned enough USD to buy EUR and then enough EUR to buy USD for the reverse trade. That will work as long as you don't "Block Exit Orders" for positions not owned.

If that preference is enabled, it depends on IB reporting EUR.USD as a position. For me, it's working - but I don't expect it to because it's cash that doesn't show up in account balances.

What I'm telling you is that we can't support cash trades as Positions. If you want to do it, use the Help guidance to trade CFDs.

CFDs will show as Positions here:
=

... and then in WealthLab Accounts -


Hmmm, but we're going to have to fix that CFD symbol. Probably I need to set it up in IBContracts.txt.
0
Best Answer
Cone8
 ( 23.52% )
- ago
#14
QUOTE:
we're going to have to fix that CFD symbol.
Looks like we'll need IB Provider 44 for that. Stay tuned.
0
- ago
#15
Looks like it is working with stocks with no issues.

0
- ago
#16
QUOTE:
You're auto-removing completed and canceled orders by checking the boxes you circled.
Don't check any.

Now they show and remain thanks. Although when I reopen WL they don't show anymore, can I keep historical orders ON?

0
- ago
#17
I am getting this error "Could not find a matching position to sell". I think that might be because I executed a manual order and thru the strategy positions off. Is there a way to combine strategy with manual orders in synch?
0
Cone8
 ( 23.52% )
- ago
#18
No.
0
- ago
#19
QUOTE:
No


Maybe if your strategy exit amount is based on current position size rather than a fixed amount?
0
Cone8
 ( 23.52% )
- ago
#20
Are you controlling the "exit amount" in the Strategy? If you assign Transaction.Quantity in the strategy, WealthLab won't interfere with your position sizing.

However, if you want to sync your strategy exit size to the size in the broker account, just check the Portfolio Sync options in Preferences > Trading for that purpose (and do not assign Transaction.Quantity).
0
- ago
#21
QUOTE:
Are you controlling the "exit amount" in the Strategy?


No. I am using blocks in this strategy, I suppose I could code it in. I wonder if there is a block for custom "entry/exit amount"?
0
Cone8
 ( 23.52% )
- ago
#22
Let's go back all the way to Post #11 and let WealthLab tell us what's happening to the orders.
Until then, we cannot help without more information. (Although I'm pretty sure the sells are failing for what I already said in Post #13. )
0
Cone8
 ( 23.52% )
- ago
#23
IB Provider 44 will fully support trading CFDs.

You can already trade CFD contracts with WealthLab, but the problem is that CFDs do not have data associated with them - then need to pull the BarHistory from actual Stock or Cash contract. Build 44 will do that job will do that job for you behind the scenes (where it's required). When it's available, make sure to see the Help to set up the contracts correctly in IBContracts.txt.
0
- ago
#24
Here is the Order Manager window showing Sell Errors. Also I am not sure why the amounts do not match the "Fixed Value" amounts I have set them all to 10000 as shown in image below.



0
- ago
#25
Which ones should I check OFF here?

0
Cone8
 ( 23.52% )
- ago
#26
Right, I don't expect success Forex Cash trading unless you have the Cash positions for both sides of the trade. If you Buy AUD.JPY you need to have JPY to sell to buy AUD because IB will not allow a negative cash balance.



To trade Forex without having the cash balances, you need to use CFDs. However, as the following IB article states, "All clients can trade our CFDs, except residents of the USA, Canada, and Hong Kong."
https://www.ibkrguides.com/kb/article-2707.htm

If you're a resident of one of those 3 countries, then you'll have to trade Cash Forex - making sure that you have balances in all the currencies you're trading.

0
- ago
#27
I've traded cash FX with Forex.com with no problems. I've never trader Fx cash with IB before. Is there another cash FX broker that WL8 has a connection?
0
- ago
#28


QUOTE:
I don't expect success Forex Cash trading unless you have the Cash positions for both sides of the trade.


Upon checking my IB demo account balance it looks like I have enough cash to cover those trades.

0
Cone8
 ( 23.52% )
- ago
#29
Where's your JPY? If you want to buy AUD/JPY, you have to sell JPY to buy AUD.
I'm not making the rules, you can direct your complaints to the broker.
0
- ago
#30
QUOTE:
If you want to buy AUD/JPY, you have to sell JPY to buy AUD


You mean sell USD.JPY before buying AUD/JPY or?
The symbols with USD work fine. Like EUR.USD USD.JPY etc.
0
Cone8
 ( 23.52% )
- ago
#31
The broker will tell you why it's failing in the order message that you have still not shown us. Look at my example in Post #26.
0
- ago
#32
I had no issues today. It went very smoothly Buys and Sells.
Thanks for your help I will keep you posted if anything goes on.

0
Cone8
 ( 23.52% )
- ago
#33
It will fail again when you have a large enough negative balance in one of the currencies.
You don't need to post about that.
0

Reply

Bookmark

Sort