Issue #16: implemented backtesting functionality into MtApi5

This commit is contained in:
vdemydiuk
2016-10-07 17:08:16 +03:00
parent 0b3d686f05
commit d4ee2cfada
6 changed files with 221 additions and 143 deletions
+5 -6
View File
@@ -1403,11 +1403,6 @@ namespace MtApi
return response != null ? response.Rates : null;
}
private void BaBacktestingReady()
{
SendCommand<object>(MtCommandType.BacktestingReady, null);
}
#endregion
#region Checkup
@@ -1464,7 +1459,7 @@ namespace MtApi
IsBacktestingMode = IsTesting();
if (IsBacktestingMode)
{
BaBacktestingReady();
BacktestingReady();
}
}
@@ -1622,6 +1617,10 @@ namespace MtApi
OnLastTimeBar.FireEventAsync(this, new TimeBarArgs(timeBar));
}
private void BacktestingReady()
{
SendCommand<object>(MtCommandType.BacktestingReady, null);
}
#endregion
#region Events