Login Page - Create Account

Support Board


Date/Time: Wed, 22 Jan 2025 04:34:45 +0000



Post From: new version doesn't support setting sc.VolumePerBar

[2018-08-19 20:57:55]
Sierra Chart Engineering - Posts: 104368

n_ACSIL::s_BarPeriod NewBarPeriod;

//This is not really needed. It is okay to have though.
//It should be used just to see if you even need to change the settings in case they are already as they need to be.
sc.GetBarPeriodParameters(NewBarPeriod);

NewBarPeriod.ChartDataType = INTRADAY_DATA;
NewBarPeriod.IntradayChartBarPeriodType = IBPT_VOLUME_PER_BAR;
NewBarPeriod.IntradayChartBarPeriodParameter1 = 1200;
sc.SetBarPeriodParameters(NewBarPeriod);
We used this exact code on an Intraday chart with 1 minute per bar and it did reload and the bar period became a volume of 1200 per bar. No problem at all. We would not even expect a problem.


Make sure you are testing on the current version which is currently 1785. You can also use the prerelease.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2018-08-19 21:00:14