Bar.Open
property · Bar · cAlgo.API
DesktopCLICloud
Gets the open price.
Definition
public double Open {get;}
bar.Open: float
Returns double
Examples
var bar = Bars.LastBar;
Print("Price moved {0} pips since the bar opened at {1}", (bar.Close - bar.Open) / Symbol.PipSize, bar.Open);
bar = api.Bars.LastBar
api.Print(f"Price moved {(bar.Close - bar.Open) / api.Symbol.PipSize} pips since the bar opened at {bar.Open}")