CustomSymbol.AdministrativeCharge
property · CustomSymbol · cAlgo.API Since 5.3
DesktopCLICloud
Gets symbol administrative charge. Administrative fee will be charged instead of SWAP if account is marked as SWAP free. Only applicable for SWAP free trading accounts.
Environment behaviour
CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.
Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.
Definition
double AdministrativeCharge {get; set;}
customSymbol.AdministrativeCharge: float
Returns double
Examples
var customSymbol = CustomSymbols.Add("MYEURUSD", Symbols.GetSymbol("EURUSD"));
customSymbol.AdministrativeCharge = 5;
Print("Administrative charge: {0}", customSymbol.AdministrativeCharge);
customSymbol = api.CustomSymbols.Add("MYEURUSD", api.Symbols.GetSymbol("EURUSD"))
customSymbol.AdministrativeCharge = 5
api.Print(f"Administrative charge: {customSymbol.AdministrativeCharge}")