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 public IOrder ClosePosition(
int barsIndex
)
Parameters
- barsIndex
- Type: SystemInt32
Bars index
Return Value
Type:
IOrderSee Also