Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 05:38:21 +0000



Post From: Every ACSIL triggered Chart Replay throws Windows error.

[2024-09-10 17:03:03]
skalaydzhiyski - Posts: 58
Hi guys, this is the root cause of this thread -CPU Exception when Study is triggered.

I have attached the simplest possible code that triggers a replay using acsil below. When ran it throws the error below:

#include "sierrachart.h"

SCDLLName("PhitechBacktest");

SCSFExport scsf_TriggerBacktest(SCStudyInterfaceRef sc)
{
SCInputRef i_enabled = sc.Input[2];

if (sc.SetDefaults)
{
sc.GraphName = "Trigger Backtest";
sc.StudyDescription = "Phi Technologies study for Sierra.";
sc.AutoLoop = 0;
sc.GraphRegion = 0;

i_enabled.Name = "Enabled";
i_enabled.SetYesNo(true);
return;
}

if (not i_enabled.GetYesNo())
return;

SCDateTime start;
start.SetDateTimeYMDHMS(2024,9,9,13,0,0);
sc.StartChartReplay(sc.ChartNumber, 30.0, start);
i_enabled.SetYesNo(false);
}

ERROR:
2024-09-10 17:56:53.502 | Loading DLL: C:\SierraChart\Data\acsil-basic-concepts.dll (acsil-basic-concepts.dll). Handle: 7ff8eb150000
2024-09-10 17:56:53.504 | Loading DLL: C:\SierraChart\Data\acsil-drawing.dll (acsil-drawing.dll). Handle: 7ff90ce60000
2024-09-10 17:56:53.524 | Loading DLL: C:\SierraChart\Data\phitech-backtest.dll (phitech-backtest.dll). Handle: 7ff909cb0000
2024-09-10 17:56:53.525 | Loading DLL: C:\SierraChart\Data\phitech-helpers.dll (phitech-helpers.dll). Handle: 7ff8e8df0000
2024-09-10 17:56:53.532 | Loading DLL: C:\SierraChart\Data\UserContributedStudies.dll (UserContributedStudies_64.dll). Handle: 7ff88c730000
2024-09-10 17:56:55.764 | Replay 30X: MES-202409-CME-USD[M] 5 Min | Reloading chart.
2024-09-10 17:56:56.409 | Replay 30X: MES-202409-CME-USD[M] 5 Min | Chart data loading complete.
2024-09-10 17:56:56.791 | Windows error code 0: The operation completed successfully.
2024-09-10 17:56:56.791 | Windows error code 122: The data area passed to a system call is too small. | Number times message added: 36
2024-09-10 17:56:56.799 | Windows error code 0: The operation completed successfully.
2024-09-10 17:56:56.799 | Windows error code 122: The data area passed to a system call is too small. | Number times message added: 36
2024-09-10 17:57:25.557 | Replay 30X: MES-202409-CME-USD[M] 5 Min | Back test processing: NumberOfTimesCalculateCalled (Cumulative) = 601

To be honest, this error is not impacting the functionality of my studies, i.e. functionally mu studies do exactly what i expect when running replays, but I just want to be certain this is not impacting sierra in some unknown way that would end up being detrimental to my backtests.

I am not sure if my spec has anything to do with this but here we go -> Windows 11 with Nvidia 16GB VRAM, 32 GB Ram 12 core i7 processor, SSD drive.

I'd really be interested to get to the bottom of this, so any pointers are welcome.

P.S.
It doesn't matter whether I use sc.StartChartReplay or sc.StartChartReplayNew...
Date Time Of Last Edit: 2024-09-10 17:08:47