Click or drag to resize

StrategyBaseClosePosition Method (Int32)

Cancels all pending orders and closes exiting position. Market order is submitted to close the position. 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 ClosePosition(
	int barsIndex
)

Parameters

barsIndex
Type: SystemInt32
Bars index

Return Value

Type: IOrder
See Also