Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,187 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Withdrawing+reinvesting profit #451481
05/07/15 14:49
05/07/15 14:49
Joined: Sep 2007
Posts: 101
Luxembourg
K
krial057 Offline OP
Member
krial057  Offline OP
Member
K

Joined: Sep 2007
Posts: 101
Luxembourg
Hello,

I just started learning automatic trading and have a question regarding memory management. I understand how much money I can reinvest(by how much I can increase the margin). I also understand how much money I can withdraw. However I don't know how to do when I want to do both at the same time. In the Zorro manual stands the following:

Quote:

Balance on account: C+P-W
Must stay on account: C*f
Available to withdraw: C+P-W - C*f
Available to reinvest: C*f - W/f


The formulas work fine, except for the last one. I don't understand what the result means/ by how much I can increase the margin.

Example Scenario:
Capital: 3000
Total Profit: 350
Total Withdrawn: 0

Quote:

Balance on account: 3350
Must stay on account: 3170.173497
Available to withdraw: 179.8265032
Available to reinvest: 3170.173497


As far as I understand, I am now allowed to withdraw up to 179?
Suppose I only want to withdraw 100. By how much can I can increase the margin then? What does the amount under "Available to reinvest" has to do with it?

kind regards,

Alain

Last edited by krial057; 05/07/15 14:52.
Re: Withdrawing+reinvesting profit [Re: krial057] #451497
05/08/15 11:04
05/08/15 11:04
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
In your scenario, "Available to reinvest" is 3170 - 100/sqrt(1+350/3000) = 3075. So you increase your Margin from 3000 to 3075 required capital.

Re: Withdrawing+reinvesting profit [Re: jcl] #451499
05/08/15 11:32
05/08/15 11:32
Joined: Sep 2007
Posts: 101
Luxembourg
K
krial057 Offline OP
Member
krial057  Offline OP
Member
K

Joined: Sep 2007
Posts: 101
Luxembourg
Hmm, but my margin per trade was 50(default avg of Z-systems) not 3000?
3000 was my capital.
So should I increase my margin by 3075/3000 = 1.025
Old margin: 50 -> new margin: 51.25 ?

(Maybe you could add an example scenario for this in the manual too. You have a scenario for reinvesting and one for withdrawing, but none for both)

Last edited by krial057; 05/08/15 11:34.
Re: Withdrawing+reinvesting profit [Re: krial057] #451502
05/08/15 11:44
05/08/15 11:44
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Almost, but not quite: the relation between margin and capital is not completely linear. So the very precise method would be to move your Margin slider until the backtest shows $3075 required capital. But I think the factor 1.025 is normally good enough.

Re: Withdrawing+reinvesting profit [Re: jcl] #451506
05/08/15 12:17
05/08/15 12:17
Joined: Sep 2007
Posts: 101
Luxembourg
K
krial057 Offline OP
Member
krial057  Offline OP
Member
K

Joined: Sep 2007
Posts: 101
Luxembourg


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1