Support Board
Date/Time: Mon, 09 Feb 2026 15:51:17 +0000
Post From: ACSIL - Change chart bar period
| [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); } } |
