Support Board
Date/Time: Tue, 26 Aug 2025 16:29:00 +0000
Post From: Request for a new ACSIL function
[2025-06-11 20:25:39] |
User719512 - Posts: 318 |
Have you looked at this from sierrachart.h? int GetBarHasClosedStatus(int BarIndex) { if (SetDefaults) return BHCS_SET_DEFAULTS; if (BarIndex != ArraySize - 1) return BHCS_BAR_HAS_CLOSED; else return BHCS_BAR_HAS_NOT_CLOSED; } The last bar on the chart will never be closed. Why? Because you don't know a bar is closed until a new one opens. Post #4 has all the info to get started on this and get the bars from the other chart, keep track of the ArraySize (last BarIndex you've processed) and when the index grows/etc. Date Time Of Last Edit: 2025-06-11 20:27:35
|