Bar Class

One entry of OHLCV data
[DataContract()] 
public class Bar : DataObject
This language is not supported or no code example is available.
[DataContract()] 
public ref class Bar : public DataObject^
This language is not supported or no code example is available.
public  
DataContract() 
class Bar 
extends DataObject
This language is not supported or no code example is available.
Name Description
Public property Average Gets average price of the bar, (Open + High + Low + Close) / 4
Public property Close Gets or sets the close.
Public property CloseDateTime Gets the close date time.
Public property DateTime Gets or sets the date time. (inherited from Event).
Public property Duration Gets the duration.
Public property Fields
Public property High Gets or sets the high.
Public property InstrumentId Gets or sets the instrument identifier.
Public property Item(int)
Public property Item(string) Gets or sets the Double with the specified name.
Public property Low Gets or sets the low.
Public property Median Gets median bar price, (High + Low) / 2.
Public property Open Gets or sets the open.
Public property OpenDateTime Gets the open date time.
Public property OpenInt Gets or sets the open int.
Public property ProviderId
Public property Range Gets the range.
Public property Size Gets or sets the size.
Public property Status
Public property Type Gets or sets the type.
Public property TypeId Gets the type identifier.
Public property Typical Gets typical bar price, (High + Low + Close) / 3.
Public property Volume Gets or sets the volume.
Public property Weighted Gets weighted bar price, (High + Low + 2 * Close) / 4.
Top
Methods
 
Name Description
Public method Static AddField(string, byte) Adds the field.
Public method Clone()
Public method ToJSON() Returns a JSON formatted String that represents this instance. (inherited from Event).
Public method ToString() Returns a String that represents this instance.
Top
Fields
 
Name Description
Internal protected (Protected Friend) field dateTime (inherited from Event).
Top
Remarks
 
Bar holds  
 
- Date (DateTime at the end of bar interval)  
- High price  
- Low price  
- Open price  
- Close price  
- Bar traded volume  
- Open interest

In this article

Definition