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
+2 -1
View File
@@ -99,6 +99,7 @@ namespace MtApi5
SymbolInfoSessionTrade = 59,
MarketBookAdd = 60,
MarketBookRelease = 61,
MarketBookGet = 62
MarketBookGet = 62,
OrderCloseAll = 63
}
}
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.7.0")]
[assembly: AssemblyFileVersion("1.0.7.0")]
[assembly: AssemblyVersion("1.0.8.0")]
[assembly: AssemblyFileVersion("1.0.8.0")]