Issue #143: Added function TesterStop [MT5]

This commit is contained in:
vdemydiuk
2019-05-04 10:36:46 +03:00
parent 5f4ae3cd9e
commit ee81cfe012
6 changed files with 40 additions and 1 deletions
@@ -73,6 +73,7 @@ namespace MtApi5TestClient
public DelegateCommand ResetLastErrorCommand { get; private set; }
public DelegateCommand PrintCommand { get; private set; }
public DelegateCommand AlertCommand { get; private set; }
public DelegateCommand TesterStopCommand { get; private set; }
public DelegateCommand iCustomCommand { get; private set; }
@@ -382,6 +383,7 @@ namespace MtApi5TestClient
AlertCommand = new DelegateCommand(ExecuteAlert);
GetLastErrorCommand = new DelegateCommand(ExecuteGetLastError);
ResetLastErrorCommand = new DelegateCommand(ExecuteResetLastError);
TesterStopCommand = new DelegateCommand(ExecuteTesterStop);
iCustomCommand = new DelegateCommand(ExecuteICustom);
@@ -1169,6 +1171,12 @@ namespace MtApi5TestClient
AddLog("ResetLastError: executed.");
}
private void ExecuteTesterStop(object obj)
{
_mtApiClient.TesterStop();
AddLog("TesterStop: executed.");
}
private async void ExecuteICustom(object o)
{
const string symbol = "EURUSD";