CustomBar.Volume
property · CustomBar · cAlgo.API Since 5.3
DesktopCLICloud
Gets volume of bar.
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
public long Volume {get;}
customBar.Volume: int
Returns long
Examples
var bar = new CustomBar(Server.Time, 1.1000, 1.1050, 1.0980, 1.1020, 1500);
Print("Bar volume: {0}", bar.Volume);
bar = CustomBar(api.Server.Time, 1.1000, 1.1050, 1.0980, 1.1020, 1500)
api.Print(f"Bar volume: {bar.Volume}")