API documentation, members, signatures, and C# examples.
Search the framework
Find classes, members, and documentation.
NamespaceWealthLab.Core
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.
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.
Need help with this API?
Ask the community or explore custom development services.