BotclosePositionByComment Method

Closes the position with comment specified

Definition

Namespace: SharpTraderBot
Assembly: SharpTraderBot (in SharpTraderBot.dll) Version: 1.0.0
C#
public string closePositionByComment(
	string comment,
	double price = 0,
	int slippage = 0,
	OrderType oType = OrderType.MARKET
)

Parameters

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

Return Value

String
Unique client identificator for the order

See Also