Support Board
Date/Time: Fri, 28 Feb 2025 13:34:26 +0000
[Programming Help] - ACSIL - Change chart bar period
View Count: 599
[2021-08-13 13:28:57] |
User783475 - Posts: 12 |
Is there a function that i can use to change the bar period of my chart during the execution of a study? something similar to: SCSFExport scsf_MyStudy(SCStudyInterfaceRef sc){ /* stuff for my study */ n_ACSIL::s_BarPeriod BarPeriod; sc.GetBarPeriodParameters(BarPeriod); int SecondsPerBar = BarPeriod.IntradayChartBarPeriodParameter1; int MinutesPerBar = SecondsPerBar/60; if (MinutesPerBar <60) { change_bar_period(MinutesPerBar + 1); } } |
[2021-08-14 14:22:57] |
ForgivingComputers.com - Posts: 1015 |
You will want to use sc.SetBarPeriodParameters: ACSIL Interface Members - Functions: sc.SetBarPeriodParameters()
|
To post a message in this thread, you need to log in with your Sierra Chart account: