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.4.0
Syntaxpublic IOrder ClosePosition(
int barsIndex
)
Parameters
- barsIndex Int32
- Bars index
Return Value
IOrder
See Also