Support Board
Date/Time: Fri, 07 Nov 2025 03:47:42 +0000
Post From: Sequence of evaluation of interdependent studies during chart load?
| [2025-10-10 14:58:24] |
| ForgivingComputers.com - Posts: 1154 |
|
@rajeshh I understand the problem. I don't know what you are trying to accomplish with your code. I not only looked at it, I built the studies and added them to a chart. The first one is overcomplicated: for (int tbl = n ; tbl >= 0; tbl--) { Subgraph_a[tbl] = n; } Every time you add a bar, you renumber all previous bars to their index number, which is the same every time. This is very inefficient. You could replace the above with the following, resulting in the same result and each bar is touched only once. Subgraph_a[n] = n;
I don't know what you are trying to accomplish with B. It results in all zeros. The if statement does the same thing if true or false, it gets the array: if (sc.GetStudyArrayUsingID(Input_AArrayRef.GetStudyID(), 0, indexArray) > 0
&& indexArray.GetArraySize() > 0); It could be replaced with this: sc.GetStudyArrayUsingID(Input_AArrayRef.GetStudyID(), 0, indexArray)
I don't see how your code proves anything. |
