From ee81cfe012614b691162cbe98e459e3c5655115f Mon Sep 17 00:00:00 2001 From: vdemydiuk Date: Sat, 4 May 2019 10:36:46 +0300 Subject: [PATCH] Issue #143: Added function TesterStop [MT5] --- MtApi5/Mt5CommandType.cs | 3 ++- MtApi5/MtApi5Client.cs | 8 +++++++ TestClients/MtApi5TestClient/MainWindow.xaml | 1 + TestClients/MtApi5TestClient/ViewModel.cs | 8 +++++++ mq5/MtApi5.ex5 | Bin 747536 -> 749660 bytes mq5/MtApi5.mq5 | 21 +++++++++++++++++++ 6 files changed, 40 insertions(+), 1 deletion(-) diff --git a/MtApi5/Mt5CommandType.cs b/MtApi5/Mt5CommandType.cs index 3ffd8dbc..7daef3e4 100755 --- a/MtApi5/Mt5CommandType.cs +++ b/MtApi5/Mt5CommandType.cs @@ -251,6 +251,7 @@ namespace MtApi5 GlobalVariablesTotal = 158, UnlockTicks = 159, - PositionCloseAll = 160 + PositionCloseAll = 160, + TesterStop = 161 } } diff --git a/MtApi5/MtApi5Client.cs b/MtApi5/MtApi5Client.cs index 9ec3e965..39723d67 100755 --- a/MtApi5/MtApi5Client.cs +++ b/MtApi5/MtApi5Client.cs @@ -2081,6 +2081,14 @@ namespace MtApi5 SendCommand(Mt5CommandType.Alert, commandParameters); } + /// + ///Gives program operation completion command when testing. + /// + public void TesterStop() + { + SendCommand(Mt5CommandType.TesterStop, null); + } + #endregion // Common Functions #region Object Functions diff --git a/TestClients/MtApi5TestClient/MainWindow.xaml b/TestClients/MtApi5TestClient/MainWindow.xaml index 996cd4ec..64baf401 100755 --- a/TestClients/MtApi5TestClient/MainWindow.xaml +++ b/TestClients/MtApi5TestClient/MainWindow.xaml @@ -582,6 +582,7 @@