Gamestudio Links
Zorro Links
Newest Posts
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:48
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
1 registered members (1 invisible), 672 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 3 1 2 3
Margin Warning #443266
07/11/14 23:18
07/11/14 23: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
Hi jcl. Does Zorro have access to the account's margin status? Can it pop up a warning message if available account margin falls below a threshold value or %?

EDIT: A little more information: What spawned this question is Z5. Not Z5 per se, but Z5 carrying many old trades from old versions for a long time. The Z5 I'm running is over 50% margin committed via open trades still being handled by 1.20. 1.24 doesn't know of those trades and therefore (I assume) can't take them into account.

Even if 1.24 doesn't open new trades because there isn't enough margin, price moving in the wrong direction could still via all those 1.20 open trades significantly move equity to the point of margin call, correct?

Thanks.

Re: Margin Warning [Re: DdlV] #443360
07/14/14 14:18
07/14/14 14:18
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
You can do that already, like this:

if(Equity - MarginVal < 1000) printf("\nMargin dangerously low!");

For being safer, it makes sense to contact your broker and request to switch your account to higher leverage. FXCM accepts 1:200 on request when you don't live in the US.

Re: Margin Warning [Re: jcl] #443362
07/14/14 14:31
07/14/14 14:31
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.

Except, not on a Z system. frown Could this be implemented as a Z<n>.ini switch?

Thanks.

Re: Margin Warning [Re: DdlV] #443364
07/14/14 14:40
07/14/14 14:40
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Ok, I'll check if that can be done.

Re: Margin Warning [Re: jcl] #443436
07/16/14 13:53
07/16/14 13:53
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. One other question: Outside the US, FXCM offers 1:50, 1:100, and 1:200 via their MyFXCM maintenance portal. However, they also offer up to 1:400 by special request (no idea what their approval criteria is or how often this is granted). Do you have a position/recommendation re. 1:400?

Thanks.

Re: Margin Warning [Re: DdlV] #443477
07/17/14 08:07
07/17/14 08:07
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
If you can get 1:400, do it. Contrary to popular belief, higher leverage reduces the risk. Of course, if a margin call happens nevertheless, your account will be wiped more thorougly.

Normally you should always take the highest leverage that you can get.

Re: Margin Warning [Re: jcl] #443492
07/17/14 12:58
07/17/14 12:58
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
OK, I've requested 1:400. Assuming they approve the request, what steps do I take with Zorro? Do strategies need to be stopped & restarted? What else besides reTesting for new M/R settings?

Thanks.

Re: Margin Warning [Re: DdlV] #443493
07/17/14 13:36
07/17/14 13:36
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
No steps required. You can just continue.

Test with the new settings, when you put them in AssetsFix.dta, will reveal a smaller capital requirement. In most cases it's only a small difference, except probably for Z4 and Z5.

Re: Margin Warning [Re: jcl] #443755
07/23/14 22:34
07/23/14 22:34
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 jcl. I am informed by FXCM that they will not change an account to 1:400 if it has open trades. Therefore, I'm thinking of this plan (similar to upgrade):

1) Establish new account with 1:400
2) Install an additional Zorro with separate folders
3) Use the Download script to update Assets.dta
4) Copy Assets.dta to AssetFix.dta
5) Test to determine the new Margin setting for the original CR
6) Set Margin to 0 on the old account to just run the open trades to close
7) Trade the strategy on the new account setting Margin to the Tested value

Any problems with this plan?

EDIT: And how do I determine how much needs to remain in the old account to support the closing trades?

Thanks.

Re: Margin Warning [Re: DdlV] #443765
07/24/14 07:34
07/24/14 07:34
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Looks like a good plan. As to the remaining capital, the upper limit is the sum of all "Risk" amounts of the open trades, from the log file.

Page 1 of 3 1 2 3

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