Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 01:38:34 +0000



Post From: Skip/Cancel Downloading Data During Backtests

[2024-06-13 06:04:08]
gtaranti - Posts: 69
Hey User61168, this is EXACTLY what I was refering to !!

At the end of each replay you have this "DOWNLOAD".
I've deliberately programmaticaly disconnected from the data services but then this happens : View charts when not connected | Post: 384838

The strange thing is than when I have only a few days loaded, there is no extra download and the automated replays work.

As far as the automation method, it's really a standalone custom study using SC API and using some relevant inputs and respective persistent variables to increase/decrease with every run, in order to change the inputs of other studies on the same chart.

I want to have 4 offline SC instances which run these on 2 PCs.

The gist in the core is as follows :


n_ACSIL::s_ChartReplayParameters ReplayParameters;
ReplayParameters.ChartNumber = sc.ChartNumber;
ReplayParameters.ReplaySpeed = 200000;
ReplayParameters.StartDateTime = sc.BaseDateTimeIn[0];
ReplayParameters.SkipEmptyPeriods = 0;
ReplayParameters.ReplayMode = n_ACSIL::REPLAY_MODE_CALCULATE_AT_EVERY_TICK;
ReplayParameters.ClearExistingTradeSimulationDataForSymbolAndTradeAccount = 1;
ReplayParameters.ChartsToReplay = n_ACSIL::CHARTS_TO_REPLAY_ALL_CHARTS_IN_CHARTBOOK;
ReplayParameters.ProcessingStepInSeconds = 1;


sc.StartChartReplayNew(ReplayParameters);

By the way, I'm also utilising the new structure member ProcessingStepInSeconds that SC introduced after my request : Chart Reply - Processing steps in seconds | Post: 384053

I hope you found it useful.