Support Board
Date/Time: Sun, 22 Dec 2024 03:55:38 +0000
Post From: Problem with Auto Recalculation
[2015-02-23 22:40:13] |
Richard Novak - Posts: 24 |
Hello, I found the source code for the Renko study I'm using. I think the problem might be related to the resizing of the Renko bar data array. When you have new data updated within the same base bar, the program deletes all of the Renko array elements associated with the current base bar and then adds the elements for each brick again. My guess is that the resizing of the Renko array is triggering a recalculation. I don't see an explicit trigger of the recalculation, but I'm guessing that it may be done in the function call to sc.ResizeArrays. I suppose it could also be triggered when the new elements are added in the call to sc.AddElements. I did notice that there is a field in the sc structure called FlagFullRecalculation but it is not called from within the study. Maybe tomorrow I'll try setting that to zero after the resize and adding of elements to inhibit the full recalculation. My guess is that there is an event handler that is triggered in the background to deliver the recalculation events to each chart that references it, so that probably won't work. I'd really like to figure out how to disable these recalculations if possible. Any suggestions you may have would be greatly appreciated. Thanks, Richard |