SmartQuant Algo Trading Framework

Bar Constructor (DateTime, DateTime, Int32, BarType, Int64, Double, Double, Double, Double, Int64, Int64)

Initializes a new instance of the Bar class.

Namespace:  SmartQuant
Assembly:  SmartQuant (in SmartQuant.dll)

Syntax


public Bar(
	DateTime openDateTime,
	DateTime closeDateTime,
	int instrumentId,
	BarType type,
	long size,
	double open,
	double high,
	double low,
	double close,
	long volume,
	long openInt
)
Public Sub New ( _
	openDateTime As DateTime, _
	closeDateTime As DateTime, _
	instrumentId As Integer, _
	type As BarType, _
	size As Long, _
	open As Double, _
	high As Double, _
	low As Double, _
	close As Double, _
	volume As Long, _
	openInt As Long _
)
public:
Bar(
	DateTime^ openDateTime, 
	DateTime^ closeDateTime, 
	int^ instrumentId, 
	BarType^ type, 
	long long^ size, 
	double^ open, 
	double^ high, 
	double^ low, 
	double^ close, 
	long long^ volume, 
	long long^ openInt
)

Parameters

openDateTime
Type: DateTime
The open date time.
closeDateTime
Type: DateTime
The close date time.
instrumentId
Type: Int32
The instrument identifier.
type
Type: SmartQuant..::..BarType
The type.
size
Type: Int64
The size.
open
Type: Double
The open.
high
Type: Double
The high.
low
Type: Double
The low.
close
Type: Double
The close.
volume
Type: Int64
The volume.
openInt
Type: Int64
The open int.