Login Page - Create Account

Support Board


Date/Time: Thu, 08 Jan 2026 01:32:28 +0000



Post From: Programmatically generate charts with specific study and series type

[2026-01-04 17:31:46]
User179576 - Posts: 3
Hi,
I would like to automatically generate charts from a list of symbols with parameters that change and make them a specific type as well as add studies with ACSIL.
So far I have been able to generate them correctly. However I have not been able to change the bar type to candlestick. And I have not been able to add studies to them either.
Is there any way to do so?

s_ACSOpenChartParameters VolumeChartParams;
VolumeChartParams.PriorChartNumber = 0;
VolumeChartParams.ChartDataType = INTRADAY_DATA;
VolumeChartParams.Symbol = CurrentSymbol;
VolumeChartParams.DaysToLoad = 10;
VolumeChartParams.LoadWeekendData = 0;
VolumeChartParams.IntradayBarPeriodType = static_cast<IntradayBarPeriodTypeEnum>(1);
VolumeChartParams.IntradayBarPeriodLength = (int)CurrentEffectiveVolume;

int VolumeChartNumber = sc.OpenChartOrGetChartReference(VolumeChartParams);

if (VolumeChartNumber > 0)
{
VolumeChartNumbers.push_back(VolumeChartNumber);

LogMsg.Format("Created volume chart #%d for %s (Volume bars: %.0f)",
VolumeChartNumber, CurrentSymbol.GetChars(), CurrentEffectiveVolume);
sc.AddMessageToLog(LogMsg, 0);

sc.RecalculateChart(VolumeChartNumber);
}

Thank you.