Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, aliswee), 835 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Many Partial Executions generate costs #470403
01/11/18 22:43
01/11/18 22:43
Joined: Jan 2018
Posts: 3
Germany NRW
J
Jesse_L Offline OP
Guest
Jesse_L  Offline OP
Guest
J

Joined: Jan 2018
Posts: 3
Germany NRW
Z12 and Z2 trading with IB generate a lot of partial Executions. Sometimes the system buy and sold same position in 1 second. So it generate sometimes up to 8 real trades per minute! That means 30$ fees in a minute. The same effective position change would be possible with only one trade. Sometimes position size in forex is only 1K.
This is one reason I lost 40% of capital in last 10 weeks with Z12 and Z2.

Is it possible to set parameters for minimum trade size (for example 20K in forex)?
Is it possible to limit real trades of same currency per hour?
How can I prevent trades in opposite direction (buy/sell) at same time/ same day?
(Unfortunately all trades are real, no phantom trades)


Last edited by Jesse_L; 01/11/18 22:54.
Re: Many Partial Executions generate costs [Re: Jesse_L] #470404
01/12/18 09:56
01/12/18 09:56
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
For preventing that different algos go short and long at the same time, you must use virtual hedging. Otherwise the algos don't know of each other. And IB is not suited for Z12 and Z2. You can see in the backtest that the high margin requirement of IB basically eliminishes all profits, even with no simultanous opposite positions. Z1/2/12 are designed for Forex/CFD brokers with high leverage.


Re: Many Partial Executions generate costs [Re: jcl] #470416
01/12/18 17:57
01/12/18 17:57
Joined: Jan 2018
Posts: 3
Germany NRW
J
Jesse_L Offline OP
Guest
Jesse_L  Offline OP
Guest
J

Joined: Jan 2018
Posts: 3
Germany NRW
It´s no problem between Z12 and Z2, this 2 systems have similar strategies and normaly trade in same direction.
Only trading Z12 alone generated following trades today morning:
action size basic price time fees$
SLD 8K EUR EUR.USD 1.21181 USD 09:47:22 4.03
BOT 3K EUR EUR.USD 1.21177 USD 09:47:21 4.03
BOT 13K EUR EUR.USD 1.21179 USD 09:47:21 4.03
BOT 3K EUR EUR.USD 1.21173 USD 09:47:19 4.03
SLD 15K USD USD.CAD 1.25290 CAD 05:20:21 4.03
SLD 3K USD USD.CAD 1.25291 CAD 05:20:16 4.03
SLD 27K USD USD.CAD 1.25291 CAD 05:20:16 4.03
SLD 4K USD USD.CAD 1.25291 CAD 05:20:15 4.03
BOT 10K GBP GBP.USD 1.35368 USD JAN 11 21:20:39 4.06
BOT 2K GBP GBP.USD 1.35368 USD JAN 11 21:20:38 4.06
SLD 2K GBP GBP.USD 1.35362 USD JAN 11 21:20:37 4.06
BOT 11K GBP GBP.USD 1.35368 USD JAN 11 21:20:30 4.06
BOT 12K GBP GBP.USD 1.35367 USD JAN 11 21:20:29 4.06
BOT 1K GBP GBP.USD 1.35368 USD JAN 11 21:20:21 4.06

It is visible that the algo open and close same position in some seconds and so only generate fees. The decision of position size seems to change in very short time, so the algo open one position after another. But it should open only one big position.
In my opinion the high IB margin leads not to problems. Capital in Zorro adjusted to IB cash works proper since some month. It caused no margin calls and should have no influence to algo performance (at least it should not be a reason for losses).

Re: Many Partial Executions generate costs [Re: Jesse_L] #470419
01/12/18 20:43
01/12/18 20:43
Joined: Jul 2016
Posts: 93
Düsseldorf, Germany
M
mhdus Offline
Junior Member
mhdus  Offline
Junior Member
M

Joined: Jul 2016
Posts: 93
Düsseldorf, Germany
Hi from NRW to NRW,
I'd like to add a bit to jcl's comments: please be aware that Z12 is a set of multiple algos, all running independently. So virtual hedging is the only option to limit opposite positions by different algos.
And as I have some experience with Z12 trading an IG (not IB) account (recently extremely profitable, by the way) I can safely state that executions as you are listing them here are not the normal Z12 behaviour. I guess it somehow relates to the fact that your orders are handled as "Odd Lot FX Transactions" (see https://ibkr.info/node/1459). The pattern looks as if the above are actually 3 Z12 trades only (and my Z12 on IG did very similar trades today: GBPUSD long, EURUSD long, USDCAD short) - somehow wildly split into pieces bei either IB, the API, or the Zorro IB Plugin. I'd further investigate into this direction (if you really want to trade Z12 with IB which is not recommended!).

Re: Many Partial Executions generate costs [Re: mhdus] #470420
01/12/18 21:00
01/12/18 21:00
Joined: Jul 2017
Posts: 783
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 783
Odd Lots cannot be the reason. Despite the warning, nearly any irregular amount below stated IB minimum will still be executed normally, most often without any worsening of price.

Re: Many Partial Executions generate costs [Re: Zheka] #470474
01/16/18 18:56
01/16/18 18:56
Joined: Jan 2018
Posts: 3
Germany NRW
J
Jesse_L Offline OP
Guest
Jesse_L  Offline OP
Guest
J

Joined: Jan 2018
Posts: 3
Germany NRW
Now I compared the trades by IB above with trade-logs in Zorro:
For example the 4 trades in EUR/USD (see above):
Name Type Asset Lots Open Close
CY Short EUR/USD 8 2018-01-12 08:47:00 2018-01-12 18:36:00
HP Short EUR/USD 3 2017-12-29 08:23:00 2018-01-12 08:47:00
HP Short EUR/USD 13 2018-01-03 00:20:00 2018-01-12 08:47:00
VO Short EUR/USD 3 2017-12-20 08:20:00 2018-01-12 08:47:00

All 4 positions are Short. Regarding time stamp 08:47 one was opened (8 Lots) and 3 were closed (3, 13, 3 Lots).
Also 8K are BOT and (3K+13K+3K) are SLD.
It seemes as if the 4 parted executions are initiated by Zorro, not by IB or API.
The trades follow different strategies (or what does CY, HP, VO mean?)
Every trade open and close in a single transaction at same time, resulting in repeated fees.
The question is, why Zorro not summarize all to one trade.
Do you have similar behaviour?


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1