Click or drag to resize

StrategyBase.SetStop Method (Int32, Double, String)

Submits a new stop order for the specified bars index. If stop order with the same entry order name exits, then changes the order if the stop price differs This method will be ignored if set when the Strategy is in Initialized state

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

Parameters

barsIndex
Type: System.Int32
Bars index
stopPrice
Type: System.Double
Stop price
entryOrderName
Type: System.String
Entry order name

Return Value

Type:IOrder[]
See Also