mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-18 05:08:11 +00:00
Added fucntion OrderCloseAll into mt5 api
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -99,6 +99,7 @@ namespace MtApi5
|
||||
SymbolInfoSessionTrade = 59,
|
||||
MarketBookAdd = 60,
|
||||
MarketBookRelease = 61,
|
||||
MarketBookGet = 62
|
||||
MarketBookGet = 62,
|
||||
OrderCloseAll = 63
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user