Gamestudio Links
Zorro Links
Newest Posts
New IB plugin
by jcl. 02/05/26 14:20
ZorroGPT
by TipmyPip. 02/05/26 11:14
MarginCost and Leverage
by jcl. 02/05/26 08:43
Zorro version 3.0 prerelease!
by jcl. 02/03/26 11:53
Lapsa's very own thread
by Lapsa. 01/30/26 19:44
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (AndrewAMD), 13,152 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
USER0328, Sfrdragon, mayarik, Castromangos, Quantum
19196 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: 41
Q
qin Offline OP
Newbie
qin  Offline OP
Newbie
Q

Joined: Jan 2023
Posts: 41
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,066
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,066
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