Click or drag to resize

StrategyBaseEnterLong Method (Int32, String, Int32)

Enters a long position for the specified bars index with specified name and quantity Market order is submitted. If Connection does not supports market order then a limit order is submitted.

Namespace:  SharpCharts.Base.SharpScript
Assembly:  SharpCharts.Base (in SharpCharts.Base.dll) Version: 1.0.0.42 (1.0.0.42)
Syntax
C#
public IOrder EnterLong(
	int barsIndex,
	string name,
	int quantity
)

Parameters

barsIndex
Type: SystemInt32
Bars index
name
Type: SystemString
Name of the order
quantity
Type: SystemInt32
Order size

Return Value

Type: IOrder
See Also