CustomSymbol.Ask
property · CustomSymbol · cAlgo.API Since 5.3
DesktopCLICloud
Gets the current ask price for this symbol.
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 Ask {get;}
customSymbol.Ask: float
Returns double
Examples
var customSymbol = CustomSymbols.Add("MYEURUSD", Symbols.GetSymbol("EURUSD"));
customSymbol.UpdateQuote(1.08500, 1.08520);
Print("Custom symbol ask: {0}", customSymbol.Ask);
customSymbol = api.CustomSymbols.Add("MYEURUSD", api.Symbols.GetSymbol("EURUSD"))
customSymbol.UpdateQuote(1.08500, 1.08520)
api.Print(f"Custom symbol ask: {customSymbol.Ask}")