Parent: Object
The BarData class represents a single bar of market data, including open, high, low, close, volume, bid, ask, symbol, timestamp, and source information.
The parameterless constructor creates a new BarData instance without initializing its values. The DateTime constructor assigns DateTime, initializes the OHLC values to Double.NaN, and initializes Volume to zero. The BarHistory constructor copies the most recent bar from the supplied BarHistory and also assigns its Symbol. If resetTimestamp is true and the BarHistory uses a minute scale, the timestamp is moved back by the bar interval and then forward 30 seconds. The BarHistory/index overload copies the bar at idx and assigns the BarHistory's Symbol. The final overload initializes the DateTime, OHLC, and Volume values directly from the supplied arguments.
The current ask price associated with the bar. The default value is Double.NaN.
The current bid price associated with the bar. The default value is Double.NaN.
The bar's closing price.
Contains the name of the data source associated with this BarData instance. The default value is an empty string.
The bar's date and time.
The bar's high price.
The bar's low price.
The bar's opening price.
The symbol represented by the BarData instance.
The bar's volume.
Creates and returns a BarData instance from the persisted string in s. The method restores Symbol, DateTime, Open, High, Low, Close, and Volume.
Returns a string containing the persisted BarData values. The persisted data includes Symbol, DateTime, Open, High, Low, Close, and Volume. Bid, Ask, and DataSource are not persisted.