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