mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-15 19:58:10 +00:00
Issue #16: implemented backtesting functionality into MtApi5
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user