Support Board
Date/Time: Wed, 29 Oct 2025 06:23:48 +0000
Post From: ACSIL control of chart bar period and days to load
| [2018-07-12 18:20:39] |
| dtl-saw - Posts: 79 |
|
Is there a way from ACSIL to control the number of days to load and the bar period of a chart? I've tried doing it with the code shown below using a custom button but nothing changes in the chart. None of the days to load or bar period parameters change in the chart. I know the button is working correctly from message logs. Also, I am currently using SC built in bar period buttons but want to add more functionality like number of days to load, etc. ACSIL study code snippet: n_ACSIL::s_BarPeriod NewBarPeriod; // assign current chart parameters sc.GetBarPeriodParameters(NewBarPeriod); // change the parameters i want to change NewBarPeriod.ChartDataType = INTRADAY_DATA; NewBarPeriod.IntradayChartBarPeriodType = IBPT_DAYS_MINS_SECS; NewBarPeriod.IntradayChartBarPeriodParameter1 = 1 * 60; // 1 minute * 60 sec/min // Set the new bar period parameters sc.SetBarPeriodParameters(NewBarPeriod); sc.DaysToLoadInChart = 10; |
