Added fucntion OrderCloseAll into mt5 api

This commit is contained in:
Vyacheslav Demidyuk
2014-11-21 12:37:20 +02:00
parent fe4f0af9de
commit 772b27551c
7 changed files with 51 additions and 43 deletions
+9
View File
@@ -466,6 +466,15 @@ namespace MtApi5
return sendCommand<string>(Mt5CommandType.HistoryDealGetString, commandParameters);
}
///<summary>
///Close all open positions.
///</summary>
///<param name="ticket">OrderCloseAll</param>
public bool OrderCloseAll()
{
return sendCommand<bool>(Mt5CommandType.OrderCloseAll, null);
}
#endregion
#region Account Information functions