Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/05/26 02:58
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
3 registered members (Quad, hast29, TipmyPip), 5,437 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
AssetAdd() vs. modern asset list? #488134
02/12/24 15:27
02/12/24 15:27
Joined: Feb 2017
Posts: 1,813
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

Joined: Feb 2017
Posts: 1,813
Chicago
The extended AssetAdd() function looks like this:

assetAdd (string Name, var Price, var Spread, var RollLong, var RollShort, var PipVal, var PipCost, var MarginCost, var Leverage, var LotAmount, var Commission, string Symbol)

Leverage is no longer used in asset lists, and I'm not sure if negative MarginCost is observed in the assetAdd call.

I think that either this needs to be better defined. Is it identical to the global variables (distinguished from the asset list entries)?

Or perhaps we can add another assetAdd overload that reflects the modern assetList line.

Last edited by AndrewAMD; 02/12/24 21:40.
Re: AssetAdd() vs. modern asset list? [Re: AndrewAMD] #488143
02/21/24 15:01
02/21/24 15:01
Joined: Jul 2000
Posts: 28,077
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,077
Frankfurt
I believe the leverage behavior is the same as in the asset list. Negative margin cost should work, but leverage will also still work.


Moderated by  aztec, Inestical, Matt_Coles, Tobias 

Gamestudio download | 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