Gamestudio Links
Zorro Links
Newest Posts
No connection to MT4
by JeyKey II. 10/29/26 09:34
Zorro plugin for Hyperliquid.xyz
by opm. 10/28/26 13:50
Icon "OP"
by JeyKey II. 10/27/26 07:03
ZorroGPT
by TipmyPip. 10/26/26 08:09
Chat Room for Zorro Programmers
by Haitao_Ren. 10/25/26 03:14
Trading Journey
by Haitao_Ren. 10/25/26 03:14
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 15,708 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
MaliceTheMaker, Haitao_Ren, JimSimons, julienp, julienper
19248 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: 53
Q
qin Offline OP
Junior Member
qin  Offline OP
Junior Member
Q

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

Chief Engineer
jcl  Offline

Chief Engineer

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