Gamestudio Links
Zorro Links
Newest Posts
SGT_FW
by Aku_Aku. 04/20/25 08:49
anyone currently using IB gateway??
by walt_Schwarz. 04/16/25 13:58
Zorro 2.66
by jcl. 03/31/25 09:58
Custom volume bars
by crazyhedgehog. 03/30/25 06:41
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 03/27/25 14:28
AUM Magazine
Latest Screens
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Zeal-X2
Who's Online Now
2 registered members (JudahXpress, Aku_Aku), 973 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
JudahXpress, SappySanjox532, DaleHenry, chitown2016, TinkXiu
19122 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,783
Chicago
AndrewAMD Offline OP
Serious User
AndrewAMD  Offline OP
Serious User

Joined: Feb 2017
Posts: 1,783
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,019
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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