Support Board
Date/Time: Tue, 17 Mar 2026 06:57:27 +0000
Post From: Adding support for persistent pointers to s_CustomChartBarInterface
| [2026-01-25 20:43:43] |
| curious16 - Posts: 36 |
|
Thank you for your proposal. This looks interesting, I'll give it a try. I'd still say it would be a good idea to have the GetPersistentPointer() function available in the interface. Normally when using pointers in a study, I do the memory deallocation in a if (sc.LastCallToFunction) { } block and check for availability of the data structure the pointer refers to (i.e. allocate memory and/or reset) in a if(sc.IsFullRecalculation) { } block. I am not sure with these custom chart bar functions what is called last. Do you know whether sc.LastCallToFunction() is called after all calls to the chart bar function (the function defined with sc.fp_ACSCustomChartBarFunction)? |
