Skip to content

CustomSymbol.PnLConversionFeeRate

property · CustomSymbol · cAlgo.API Since 5.3

DesktopCLICloud

Gets / sets the symbol profit and loss conversion fee rate.

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 PnLConversionFeeRate {get; set;}
customSymbol.PnLConversionFeeRate: float

Returns double

Examples

var customSymbol = CustomSymbols.Add("MYEURUSD", Symbols.GetSymbol("EURUSD"));
customSymbol.PnLConversionFeeRate = 0.0005;
Print("PnL conversion fee rate: {0}", customSymbol.PnLConversionFeeRate);
customSymbol = api.CustomSymbols.Add("MYEURUSD", api.Symbols.GetSymbol("EURUSD"))
customSymbol.PnLConversionFeeRate = 0.0005
api.Print(f"PnL conversion fee rate: {customSymbol.PnLConversionFeeRate}")