Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/08/26 18:50
zorro with ccxt?
by opm. 03/03/26 03:17
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (clint000), 9,315 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
mldenoiser, the1, alx, ApprenticeInMuc, PatrickH90
19201 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
MarginCost and Leverage #489163
02/04/26 14:27
02/04/26 14:27
Joined: Jan 2023
Posts: 52
Q
qin Offline OP
Junior Member
qin  Offline OP
Junior Member
Q

Joined: Jan 2023
Posts: 52
If MarginCost is set to 0 and Leverage is set to 2 in Assets.csv, will the system calculate MarginCost using the following formula?
MarginCost = Asset price / Leverage * PipCost / PIP
If MarginCost is set to 100 and Leverage is set to 2, which one actually takes effect?

Re: MarginCost and Leverage [Re: qin] #489165
02/05/26 08:43
02/05/26 08:43
Joined: Jul 2000
Posts: 28,083
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,083
Frankfurt
Leverage is not contained anymore in asset lists. For leverage 2, set MarginCost = -50%.

In the script, MarginCost is then automatically calculated from the price.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1