Added command CloseOrderByCurrentPrice into mtapi 4

This commit is contained in:
vdemydiuk
2015-12-02 15:56:51 +02:00
parent f1a8d83c3b
commit 2d6a0f7b35
6 changed files with 52 additions and 13 deletions
+6
View File
@@ -178,6 +178,12 @@ namespace MtApi
return OrderCloseBy(ticket, opposite, Color.Empty);
}
public bool OrderCloseByCurrentPrice(int ticket, int slippage)
{
var commandParameters = new ArrayList { ticket, slippage };
return sendCommand<bool>(MtCommandType.OrderCloseByCurrentPrice, commandParameters);
}
public double OrderClosePrice()
{
return sendCommand<double>(MtCommandType.OrderClosePrice, null);