AssetAdd() vs. modern asset list?

Posted By: AndrewAMD

AssetAdd() vs. modern asset list? - 02/12/24 15:27

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.
Posted By: jcl

Re: AssetAdd() vs. modern asset list? - 02/21/24 15:01

I believe the leverage behavior is the same as in the asset list. Negative margin cost should work, but leverage will also still work.
© 2024 lite-C Forums