StrategyClosePosition(Int32) Method |
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: ArthaChitra.Model.SharpScriptAssembly: ArthaChitra.Core (in ArthaChitra.Core.dll) Version: 2.0.3.0
Syntax public IOrder ClosePosition(
int barsIndex
)
Parameters
- barsIndex Int32
- Bars index
Return Value
IOrderSee Also