Support Board
Date/Time: Wed, 27 Nov 2024 00:39:31 +0000
Post From: It would be great to have few ACSIL improvements in the Replay management space
[2023-10-12 04:44:09] |
j4ytr4der_ - Posts: 938 |
I was looking for exactly this today (with a couple minor modifications), and the code snippet from User864728 was helpful. However while the replay control panel pops up, the datetime is not set, skip empty values is not checked, and nothing else happens. Any input on why this would be? bool LoadingIsComplete = sc.IsChartDataLoadingCompleteForAllCharts(); if(LoadingIsComplete == true){ n_ACSIL::s_ChartReplayParameters ChartReplayParameters; ChartReplayParameters.ChartNumber = sc.ChartNumber; ChartReplayParameters.ReplaySpeed = 1; //or whatever speed is required (max 100000) ChartReplayParameters.StartDateTime = Input_One.GetDateTime(); ChartReplayParameters.SkipEmptyPeriods = 1; ChartReplayParameters.ReplayMode = n_ACSIL::ChartReplayModeEnum::REPLAY_MODE_CALCULATE_AT_EVERY_TICK; ChartReplayParameters.ClearExistingTradeSimulationDataForSymbolAndTradeAccount = 0; sc.StartChartReplayNew(ChartReplayParameters); } |