Login Page - Create Account

Support Board


Date/Time: Wed, 15 Oct 2025 04:38:42 +0000



Post From: Autoscreenshot script

[2025-09-19 09:30:57]
User565063 - Posts: 7
Hi,

attached is a C++ study for Sierra Chart using ACSIL that automates the process of opening charts for the symbols GC (Gold), ES (E-mini S&P 500), 6E (Euro FX), ZT (2-Year Treasury Note), and ZN (10-Year Treasury Note), setting each to a 10-second timeframe, and taking a screenshot for a specified day and time. When i compile the code using Build Custom studies DLL i receive the following message that I have been trying to fix:

The remote build is complete.
The build failed.
AutoChartScreenshot.cpp: In function 'void scsf_AutoChartScreenshot(SCStudyInterfaceRef)':
AutoChartScreenshot.cpp:50:45: error: 'IBPT_SECONDS_PER_BAR' was not declared in this scope; did you mean 'IBPT_MONTHS_PER_BAR'?
50 | chartParams.IntradayBarPeriodType = IBPT_SECONDS_PER_BAR;
| ^~~~~~~~~~~~~~~~~~~~
| IBPT_MONTHS_PER_BAR
AutoChartScreenshot.cpp:66:70: error: no match for call to '(SCDateTime) (int&, double)'
66 | sc.ScrollToDateTime(chartNumber, targetDateTime.GetAsDouble());
| ^
AutoChartScreenshot.cpp:85:13: error: 'SCT_PNG' was not declared in this scope; did you mean 'SC_NO'?
85 | SCT_PNG, // Image format
| ^~~~~~~
| SC_NO

Failed to generate the dll file.

-- End of Build -- 09:16:57

I was wondering if anyone can point me in the right direction.

Thank you very much
Giorgio
attachmentAutoChartScreenshot.cpp - Attached On 2025-09-19 09:29:58 UTC - Size: 3.7 KB - 43 views