Support Board
Date/Time: Sun, 29 Jun 2025 01:06:50 +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); } } |