Reractored functions GetOrder and GetOrders in MQL part.

This commit is contained in:
DW
2016-05-12 17:42:13 +03:00
parent b8e6b1a973
commit ed5d6d9fb5
4 changed files with 126 additions and 76 deletions
+6 -2
View File
@@ -4,7 +4,7 @@ using System.Drawing;
using System.Windows.Forms;
using MtApi;
using System.Threading.Tasks;
using System.Collections;
using System.Linq;
namespace TestApiClientUI
{
@@ -885,7 +885,7 @@ namespace TestApiClientUI
var orders = await Execute(() => _apiClient.GetOrders(selectSource)); ;
if (orders != null)
if (orders != null && orders.Count() > 0)
{
foreach (var order in orders)
{
@@ -896,6 +896,10 @@ namespace TestApiClientUI
AddToLog(result);
}
}
else
{
AddToLog("GetOrders: 0 orders");
}
}
//OrderSendBuy