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 (AndrewAMD, VoroneTZ), 831 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
Maintenance margin requirements #469762
12/06/17 19:52
12/06/17 19:52
Joined: Dec 2017
Posts: 129
Halifax, NS
K
kujo Offline OP
Member
kujo  Offline OP
Member
K

Joined: Dec 2017
Posts: 129
Halifax, NS
Hello,
I'm trying to understand where I can define maintenance margin requirements. I found in the manual that it is controlled by MarginVal that is received from a broker. If your (Equity - MarginVal) <= 0 then margin call.
If broker doesn't provide MarginVal then MarginTotal is used. But how MarginTotal is calculated.

I have an example:
I want to use leverage = 1.5
Initial margin requirement = 50%
Maintenance margin requirement = 30%

How to provide Zorro with above-mentioned values?
Thank you!

Last edited by kujo; 12/06/17 23:44.
Re: Maintenance margin requirements [Re: kujo] #469773
12/07/17 16:10
12/07/17 16:10
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
All brokers provide MarginVal for live trading as to my knowledge. For the backtest, enter the greater of the two in the asset list, respectively the smaller leverage. Normally maintenance margin is equal or higher than the initial margin.

Re: Maintenance margin requirements [Re: jcl] #469779
12/08/17 16:08
12/08/17 16:08
Joined: Dec 2017
Posts: 129
Halifax, NS
K
kujo Offline OP
Member
kujo  Offline OP
Member
K

Joined: Dec 2017
Posts: 129
Halifax, NS
Originally Posted By: jcl
All brokers provide MarginVal for live trading as to my knowledge. For the backtest, enter the greater of the two in the asset list, respectively the smaller leverage. Normally maintenance margin is equal or higher than the initial margin.


Thanks, however, it's not totally clear for me yet.
Consider the situation for the Z9 system:
I have $5,000 in my account and borrow $5,000 from my broker to be able to buy $10,000 worth of securities. The initial and maintenance margin requirement is 30%. So, in this case a margin call will happen when value of the securities drop below $7,142.86.

What values should I enter in AssetsZ9.csv (or other config files) to simulate this situation in the backtest? I'd appreciate your help!

Re: Maintenance margin requirements [Re: kujo] #469780
12/08/17 16:12
12/08/17 16:12
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
3.333 under "Leverage".

Re: Maintenance margin requirements [Re: jcl] #469782
12/08/17 16:22
12/08/17 16:22
Joined: Dec 2017
Posts: 129
Halifax, NS
K
kujo Offline OP
Member
kujo  Offline OP
Member
K

Joined: Dec 2017
Posts: 129
Halifax, NS
But with 3.333 leverage I will borrow 11666 to buy securities worth of 16666. no?
However, I want to borrow only 5000.

Re: Maintenance margin requirements [Re: kujo] #469783
12/08/17 16:28
12/08/17 16:28
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Then you can obviously not buy 16666, but only 6666. What's the problem?

Re: Maintenance margin requirements [Re: jcl] #469785
12/08/17 16:31
12/08/17 16:31
Joined: Dec 2017
Posts: 129
Halifax, NS
K
kujo Offline OP
Member
kujo  Offline OP
Member
K

Joined: Dec 2017
Posts: 129
Halifax, NS
Originally Posted By: jcl
Then you can obviously not buy 16666, but only 6666. What's the problem?


I wonder how I can configure such a case in Z9 system?

Re: Maintenance margin requirements [Re: kujo] #469786
12/08/17 16:34
12/08/17 16:34
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
By setting the Capital slider to the capital you want to invest. In that case, 2000 for a volume of 6666.

Re: Maintenance margin requirements [Re: jcl] #469788
12/08/17 16:56
12/08/17 16:56
Joined: Dec 2017
Posts: 129
Halifax, NS
K
kujo Offline OP
Member
kujo  Offline OP
Member
K

Joined: Dec 2017
Posts: 129
Halifax, NS
Oh, got it now! Thanks!
I'll try this


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1