Support Board
Date/Time: Fri, 07 Nov 2025 03:51:38 +0000
Post From: Sequence of evaluation of interdependent studies during chart load?
| [2025-10-04 19:28:19] |
| rajeshh - Posts: 50 |
|
Hello - I have a case where studies are used by other studies, so lets say study A is used by B which is used by C. All of them calculate values on a bar close. When an intra day chart is loaded the first time, how do the studies get evaluated? Does A get evaluated for all bars in the chart, then B for all bars, and then C, or does the evaluation happen A->B->C for each bar in the chart? I suspect its the former, because for one of the values calculated in study B, the value at a bar X in the chart can be different if called by C at close of bar X (without seeing any future bars), vs if it is being called by C after study B has seen all the bars (because that value could be reset based on future bars), and for reload of a chart, I see the value reset as if study B has seen all the bars, by the time C calls it for bar X. This is not a problem for me in real trading or replay, because C calls B for a bar X before future bars are printed. But it does show wrong results for historical data in the intra-day chart. Thanks |
