Support Board
Date/Time: Fri, 29 Nov 2024 19:37:39 +0000
[Programming Help] - Force a new bar to be created even if there are no trade occuring?
View Count: 346
[2023-01-16 19:02:28] |
BenjFlame - Posts: 324 |
Hi, I have a 1-second chart, and I need ALL the bars to be created, so even if no event is triggering the creation of a new bar, I would need the bar created even if there is no trade occurring. Is there a way to cheat this? On an alternative software, I could code a function that would self-repeat every 1 second and does nothing but force a new bar to be created. Do you know a similar way to achieve this with ACSIL ? |
[2023-01-16 19:35:33] |
User431178 - Posts: 545 |
Chart Settings: Include Columns With No Data (Chart >> Chart Settings >> Bar Period >> Chart Bar Settings menu) If you are opening the chart via ACSIL (using sc.OpenChartOrGetChartReference()) then you can set the IncludeColumnsWithNoData member of s_ACSOpenChartParameters. |
[2023-01-16 19:38:02] |
BenjFlame - Posts: 324 |
I have this set already. But the chart will still update only on incoming data. I want it to update each second, even if there is no incoming data. I'm looking for a kind of cheat of a self-repeating function that could achieve this kind of thing. Date Time Of Last Edit: 2023-01-16 19:38:48
|
[2023-01-16 21:59:09] |
Sawtooth - Posts: 4122 |
Here's the documentation on ACSIL custom chart bars: ACSIL Interface - Custom Chart Bars All bar types create a new bar according to their parameters, except time-based bars. This is because all chart updates are based on incoming data, not time intervals. You are not the only one who would like a new time-based bar based on a time interval. |
[2023-01-16 22:17:33] |
User90125 - Posts: 715 |
+1
|
To post a message in this thread, you need to log in with your Sierra Chart account: