mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-05 15:07:49 +00:00
Updated test application for working with MtApi (MT5) version 1.0.10
This commit is contained in:
@@ -837,7 +837,7 @@ namespace TestApiClientUI
|
||||
}
|
||||
|
||||
//OrderSend
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
private async void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
var symbol = textBoxOrderSymbol.Text;
|
||||
|
||||
@@ -878,7 +878,7 @@ namespace TestApiClientUI
|
||||
break;
|
||||
}
|
||||
|
||||
var ticket = Execute(() => _apiClient.OrderSend(symbol, cmd, volume, price, slippage, stoploss, takeprofit, comment, magic, expiration, arrowColor));
|
||||
var ticket = await Execute(() => _apiClient.OrderSend(symbol, cmd, volume, price, slippage, stoploss, takeprofit, comment, magic, expiration, arrowColor));
|
||||
|
||||
AddToLog(string.Format("Sended order result: ticket = {0}", ticket));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user