Support Board
Date/Time: Mon, 22 Dec 2025 23:44:35 +0000
Post From: Sequence of evaluation of interdependent studies during chart load?
| [2025-10-10 15:54:23] |
| rajeshh - Posts: 50 |
|
@User431178, thanks for your response, and understanding of the problem. Wrt manual vs automatic looping, I dont see how that affects SC calling the study on a bar close, since the manual looping is happening inside the study, and we are talking about calling the study as a black box. FWIW, since the replay mode already works as desired, the initial chart load could have been implemented as a really fast replay. Wrt, a workaround for my study - yes, so happens my subgraph value is a function of 2 bars at any given time, so if I used an intermediate persistent 2 dimensional array to store my values, it would get around this problem. @ForgivingComputers, since you have built the studies, can I request you to compare the values shown below each bar when first added to a chart, and then replay the chart for a few bars, and see whether the values below the bar are the same for each bar or different for each bar. IOW, the values calculated for study B are not the same on initial chart load vs in replay mode for a given bar. The sample study is not trying to accomplish anything more than illustrate this side-effect. Since SC has already agreed with my understanding of the problem, we can lay this discussion to rest. The real resolution is in whether SC will decide to make the behavior consistent. |
