4.2 Data Access: Difference between revisions
From MultiCharts
→Instrument Data
Line 31: | Line 31: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
double curClose = Bars.CloseValue;</syntaxhighlight> - get current close price | double curClose = Bars.CloseValue;</syntaxhighlight> - get current close price | ||
<syntaxhighlight> | |||
double prevBarOpen = BarsOfData(2).Open[1];</syntaxhighlight> - get open price of previous bar from second data stream | double prevBarOpen = BarsOfData(2).Open[1];</syntaxhighlight> - get open price of previous bar from second data stream | ||