Login Page - Create Account

Support Board


Date/Time: Sun, 15 Jun 2025 16:39:34 +0000



Post From: ACSIL: Issue Setting Volume By Price Study Start Date/Time (Mode 5) Programmatically

[2025-05-28 20:02:06]
TB7000 - Posts: 19
Hello Sierra Chart Support,

I'm attempting to programmatically setting the "Volume By Price" study's "Start Date" In:37 (Index 36) and "Start Time" In:39 (Index 38) with "Volume Graph Period Type" In:33 (Index 32) as 5 ("From Start Date-Time To End"). Changes to Mode 5 works as intended. However, for the starting date and time, the VbP study gets anchored to an incorrect date (often far in the future) and the time always defaults to 00:00:00.

Attempts using sc.SetChartStudyInputInt for Inputs 36 and 38 with various integer formats (SCDateTime::GetDate()/GetTime(), YYYYMMDD/HHMMSS) report success via ACSIL but are misinterpreted by the VbP study, which seems to expect a different format or approach.

What is the definitive ACSIL method and precise data format(s) required to reliably set both the start date and start time for the "Volume By Price" study's Inputs 36 (In:37) and 38 (In:39) (when its "Volume Graph Period Type" is 5), to achieve the correct result?

I'm completely out of Ideas and would highly appreciate any guidance, hint or suggestion.
Thanks in advance