Support Board
Date/Time: Wed, 07 Jan 2026 01:14:34 +0000
[Programming Help] - Programmatically generate charts with specific study and series type
View Count: 85
| [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. |
| [2026-01-04 19:33:56] |
| ForgivingComputers.com - Posts: 1184 |
|
There does not appear a way to set the new chart to candlesticks in ACSIL. However, you can change the default for new charts to candlesticks here: Chart Settings: Save Days to Load, Intraday Bar Period, Graph Draw Type as Default (Chart >> Chart Settings >> Chart Data >> Chart Data menu) |
| [2026-01-04 19:59:56] |
| User179576 - Posts: 3 |
|
Thank you that helped. My last step would be to automatically add a study. For now I think the only solution might be to program the study into the code directly instead of using a pre-made study.
|
| [2026-01-04 22:33:10] |
| ForgivingComputers.com - Posts: 1184 |
|
My last step would be to automatically add a study.
ACSIL Interface Members - Functions: sc.AddStudyToChart() |
| [2026-01-05 07:26:22] |
| User179576 - Posts: 3 |
|
That works thank you!
|
To post a message in this thread, you need to log in with your Sierra Chart account:
