Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/20/24 06:09
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (henrybane, flink, Edgar_Herrera), 748 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Z3 (& others?) with ETFs? #483354
05/23/21 18:25
05/23/21 18:25
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Hi. I seem to recall there was once a post about using ETFs in place of CFDs for Z3 (& maybe other strategies?), but I can't find it. I would appreciate thoughts on this:

- Link to the post(s)?
- Best CFD<->ETF equivalences?
- If the ETF is not leveraged, set leverage to 1 in the csv?
- Or, use a Leveraged ETF? With leverage in the csv still set to 1? Or to the ETF's leverage?
- Any other thoughts?

Thanks.

Re: Z3 (& others?) with ETFs? [Re: DdlV] #483387
05/27/21 08:38
05/27/21 08:38
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Z3 can theoretically also work with ETFs, but is more effective with CFDs. ETFs are better for long term trades, CFDs for short term trades. They have similar price curves, but a very different leverage and cost structure.

Re: Z3 (& others?) with ETFs? [Re: DdlV] #483394
05/27/21 12:23
05/27/21 12:23
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks @jcl.

I (think I) understand those similarities and differences in theory, but wanted to Test to see what actually bears out. The questions above were to be able to do that:

- Rather than re-inventing the wheel, is there somewhere a list of which ETFs best match which CFDs? (Preferably the Z3 CFDs laugh )

- It seems obvious if the ETF is not leveraged to set Leverage to 1 in the csv. But if the ETF is leveraged, that happens "within the ETF" rather than "at the Broker", so should Leverage also be kept at 1 in this case?

Thanks.

Re: Z3 (& others?) with ETFs? [Re: DdlV] #484216
09/22/21 02:04
09/22/21 02:04
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
@jcl,

I'm finally getting back to thinking/trying/Testing this again... But it seems Z3 is hard-coded to look for CFD-named files? F.i., if I change AssetsFix.csv so the Symbol for SPX500 is SPY, Z3 still looks for SPX500.t6, not SPY.t6. How can I fix this?

Thanks.

Re: Z3 (& others?) with ETFs? [Re: DdlV] #484256
09/26/21 15:42
09/26/21 15:42
Joined: Apr 2008
Posts: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
Austria
Rename SPY.t6 to SPX500.t6. And ETFs are normally leveraged 2:1 when your account is a margin account.

Re: Z3 (& others?) with ETFs? [Re: DdlV] #484265
09/28/21 06:03
09/28/21 06:03
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks @Petra.

Renaming History files: Will obviously work, but as a general practice would become a housekeeping nightmare! Do we really want to proliferate files whose data doesn't match their name? It would seem there has to be a better way. Shouldn't the History file be pulled based on the Symbol name, as when getting the data from the Broker?

Leverage: As always, a confusing topic. Are you talking about the Leverage the Broker may apply based on account size, type, whatever? Or are you talking about leveraged ETFs? If the former, and the latter is used, is then Leverage multiplied to 4x, 6x, whatever?

Thanks.

Re: Z3 (& others?) with ETFs? [Re: DdlV] #484434
10/25/21 22:38
10/25/21 22:38
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
@Petra, @jcl,

Would appreciate your thoughts on the above.

Thanks.

Re: Z3 (& others?) with ETFs? [Re: DdlV] #484440
10/26/21 01:19
10/26/21 01:19
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Originally Posted by DdlV
Shouldn't the History file be pulled based on the Symbol name, as when getting the data from the Broker?
Absolutely not! Symbols can and do have all kinds of illegal characters that are not compatible with your filesystem. (This is your broker's fault.) That's why Asset names have strict naming conventions.
Originally Posted by DdlV
Leverage: As always, a confusing topic. Are you talking about the Leverage the Broker may apply based on account size, type, whatever? Or are you talking about leveraged ETFs? If the former, and the latter is used, is then Leverage multiplied to 4x, 6x, whatever?
This was in reference to the standard (Regulation T) Margin account, where you get approximately 2:1 leverage for most stocks and ETFs. You get even more leverage for leveraged ETFs (or at least the security itself is constructed as such). You get less leverage when your broker decides to change the margin requirements for an individual symbol, as was the case with GameStop during the Diamond Hands incident. You can get even more leverage for most all products with a Portfolio Margin account, but you must have a ton of money in your account.

When in doubt, check your broker's margin requirements for any given symbol and account type.

Re: Z3 (& others?) with ETFs? [Re: DdlV] #484456
10/26/21 17:35
10/26/21 17:35
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks @AndrewAMD.

Symbols: *sigh* Stuck with the maintenance nightmare, then. Will probably use .ini History, overlay, & symbolic links to help...

Leverage: I was actually asking the Assets<x>.csv question. Is the Leverage field in Assets<x>.csv the leverage the broker provides for that instrument, irrespective of any leverage provided within the ETF? Using your example of a 2:1 account, is the Leverage field for a 3:1 ETF always 2, not 6?

Thanks.

Re: Z3 (& others?) with ETFs? [Re: DdlV] #484457
10/26/21 18:11
10/26/21 18:11
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Originally Posted by DdlV
Leverage: I was actually asking the Assets<x>.csv question. Is the Leverage field in Assets<x>.csv the leverage the broker provides for that instrument, irrespective of any leverage provided within the ETF? Using your example of a 2:1 account, is the Leverage field for a 3:1 ETF always 2, not 6?
I think the product itself is designed to mimic the target leverage (i.e. if the SP500 ticker goes up 10% in a day, the x2 ticker goes up 20%, and the x3 ticker goes up 30%). Your broker will determine your margin requirements beyond that. Especially for these weird products, you need to check the margin requirements.

Re: Z3 (& others?) with ETFs? [Re: DdlV] #484458
10/26/21 18:56
10/26/21 18:56
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks @AndrewAMD.

*sigh* So, not only no simple answer, but one must also pry information out of the broker, and trust it as well... frown

Thanks.

Re: Z3 (& others?) with ETFs? [Re: DdlV] #484476
10/28/21 15:36
10/28/21 15:36
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Yes. With IB, leveraged ETFs have special margin requirements that basically compensate their leverage. Some info here: https://ibkr.info/article/1124

Re: Z3 (& others?) with ETFs? [Re: DdlV] #484477
10/28/21 17:18
10/28/21 17:18
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks @jcl.

Clarification: It appears from IB's write-up that this/these is/are government/exchange rule/s. And so not IB's sole decision, but all brokers must follow, correct?

Thanks.

Re: Z3 (& others?) with ETFs? [Re: DdlV] #484478
10/28/21 17:53
10/28/21 17:53
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Yes. The brokerage also has the right to employ even stricter rules than the exchange rules.

Re: Z3 (& others?) with ETFs? [Re: DdlV] #484479
10/28/21 19:02
10/28/21 19:02
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks @AndrewAMD.

Let's assume for the sake of argument that I'm human. laugh Meaning 2 things: lazy, and (even when not lazy) make mistakes. Since Zorro is not set-and-forget, I regularly monitor. Within that framework, for trading stocks, ETFs, etc. is there a better choice amongst:

- Expend the (on-going) effort to research & set each & every Asset at the correct Margin, expect that Results will match Test, and risk mistakes
- Be lazy and pick a Margin value (1, 2, whatever) and just use it for all Assets, accepting that Results will not match Test, and possibly Trading with Capital less than CR for added safety

Thanks.

Re: Z3 (& others?) with ETFs? [Re: DdlV] #484480
10/28/21 19:17
10/28/21 19:17
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
I have a different lazy option: Set the leveraged ETFs to 1:1, and the ordinary ETFs and stocks to 2:1.

Re: Z3 (& others?) with ETFs? [Re: DdlV] #484481
10/28/21 22:10
10/28/21 22:10
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks @AndrewAMD.

Given that I'll sooner or later accumulate some # of mistakes, how bad will the risks and/or results be with leverageds at 2:1 and/or ordinaries at 1:1?

Thanks.

Page 1 of 2 1 2

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