BotclosePositionByComment Method
Closes the position with comment specified
Namespace: SharpTraderBotAssembly: SharpTraderBot (in SharpTraderBot.dll) Version: 1.0.0
public string closePositionByComment(
string comment,
double price = 0,
int slippage = 0,
OrderType oType = OrderType.MARKET
)
Public Function closePositionByComment (
comment As String,
Optional price As Double = 0,
Optional slippage As Integer = 0,
Optional oType As OrderType = OrderType.MARKET
) As String
public:
String^ closePositionByComment(
String^ comment,
double price = 0,
int slippage = 0,
OrderType oType = OrderType::MARKET
)
member closePositionByComment :
comment : string *
?price : float *
?slippage : int *
?oType : OrderType
(* Defaults:
let _price = defaultArg price 0
let _slippage = defaultArg slippage 0
let _oType = defaultArg oType OrderType.MARKET
*)
-> string
- comment String
- Comment of the position to be closed
- price Double (Optional)
- Price at which position shoul be closed
- slippage Int32 (Optional)
- Maximum slippage allowed
- oType OrderType (Optional)
- Type of the order used for closure
StringUnique client identificator for the order