+1 888 340 6572

4.2 Data Access: Difference between revisions

From MultiCharts
 
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