Skip to content

CustomSymbol.FuturesSettings

property · CustomSymbol · cAlgo.API Since 5.3

DesktopCLICloud

Gets / sets custom future contract settings.

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

CustomSymbolFuturesSettings FuturesSettings {get; set;}
customSymbol.FuturesSettings: CustomSymbolFuturesSettings

Returns CustomSymbolFuturesSettings

Examples

var customSymbol = CustomSymbols.Add("MYGOLD.Z25", Symbols.GetSymbol("XAUUSD"));
customSymbol.FuturesSettings = new CustomSymbolFuturesSettings(new DateTime(2025, 12, 19, 20, 0, 0), new DateTime(2025, 12, 22), 500);
Print("Last trade time: {0}", customSymbol.FuturesSettings.LastTradeTime);
from System import DateTime
customSymbol = api.CustomSymbols.Add("MYGOLD.Z25", api.Symbols.GetSymbol("XAUUSD"))
customSymbol.FuturesSettings = CustomSymbolFuturesSettings(DateTime(2025, 12, 19, 20, 0, 0), DateTime(2025, 12, 22), 500)
api.Print(f"Last trade time: {customSymbol.FuturesSettings.LastTradeTime}")