Support Board
Date/Time: Sun, 24 Nov 2024 09:58:34 +0000
Post From: Compile Error with IBPT_FLEX_RENKO_INV
[2024-06-15 16:16:04] |
ertrader - Posts: 672 |
Hi Support... the following code returns an error despite being accurate to the documentation. It appears that the variable IBPT_FLEX_RENKO_INV (Inverse Renko) has not been set up within SierraChart. When changed to IBPT_FLEX_RENKO_IN_TICKS, it compiles correctly. Code: n_ACSIL::s_BarPeriod NewBarPeriod;
NewBarPeriod.ChartDataType = INTRADAY_DATA; NewBarPeriod.IntradayChartBarPeriodType = IBPT_FLEX_RENKO_INV ; NewBarPeriod.IntradayChartBarPeriodParameter1 = 1; NewBarPeriod.IntradayChartBarPeriodParameter2 = 1; NewBarPeriod.IntradayChartBarPeriodParameter3 = 11; NewBarPeriod.IntradayChartBarPeriodParameter4 = 6; sc.SetBarPeriodParameters(NewBarPeriod); Error: error: 'IBPT_FLEX_RENKO_INV' was not declared in this scope; did you mean 'IBPT_FLEX_RENKO_IN_TICKS'? Documentation: sc.SetBarPeriodParameters() Can you please take a look? Date Time Of Last Edit: 2024-06-15 18:39:16
|