Support Board
Date/Time: Mon, 25 Nov 2024 12:21:14 +0000
Post From: Chart loosing custom ASCIL colors when clicking on any study settings in Studies
[2024-03-09 18:27:23] |
User431178 - Posts: 541 |
It is possibly true (circular dependency), however if I set a flag at the end of the ASCIL code sc.FlagFullRecalculate = 1; to run at each iteration - then the graph/study will recalculate (at each candle - this is overkill) and it will regain colors/ outputs even if it looses them, so this somewhat proves the point the the recalculation function still works. Yes, this is true. - When you hit apply in the studies window, all the study arrays are cleared. - When you recalculate the chart, the study arrays are not cleared, meaning that the old data is there in the arrays when your study is calculated (this is the same reason it works during live updates - the data from the previous calculation is available). So the dependency problem still exists, but the recalculate fudges it so you get the desried output. defaults to hollow candles that are not part of the defaults (not in graphic settings and not in ASCIL code) That's not what's happening, they are being set to black fill beacuse the DataColor array is all zeros. The signal arrows that you add as chart drawings are automatically deleted when the chart is recalculated, they are then not redrawn as you don't get any signals (due to the dependency issue). FYI here is some information about the order of calculation - Chart Studies: How Calculation Order of Studies Is Determined Date Time Of Last Edit: 2024-03-09 18:27:53
|