UpdateBar()

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Bars Type >

UpdateBar()

Previous page Return to chapter overview Next page

Definition

Updates a data point in our Bars Type.

 

Syntax

UpdateBar(Bars bars, double high, double low, double close, DateTime time, long volumeAdded)

 

Parameters

bars

The Bars object of your bars type

high

A double value representing the high price

low

A double value representing the low price

close

A double value representing the close price

time

A DateTime value representing the time

volume

A long value representing the volume

 

 

Examples

ns


UpdateBar(bars, high, low, close, time, volume);