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.