Click or drag to resize

StrategyBase.SetTarget Method (Int32, Double, CalculationMode, String)

Submits a limit order for the specified bars index. If a limit order with the same entry order name exists then changes that order if the price differs If called when the strategy is in Initialized state then all subsequent entry trades with the same entry name will automatically place a target order as defined by the method

Namespace:  SharpCharts.Base.SharpScript
Assembly:  SharpCharts.Base (in SharpCharts.Base.dll) Version: 1.0.0.42 (1.0.0.42)
Syntax
C#
protected IOrder[] SetTarget(
	int barsIndex,
	double price,
	CalculationMode calculationMode,
	string entryOrderName
)

Parameters

barsIndex
Type: System.Int32
Bar index
price
Type: System.Double
Value of the limit price as calculated from entry order fill price based on the Calculation Mode
calculationMode
Type: SharpCharts.Base.Order.CalculationMode
Calculation Mode
entryOrderName
Type: System.String
Entry order name

Return Value

Type:IOrder[]
See Also