Support Board
Date/Time: Mon, 16 Jun 2025 09:49:47 +0000
Post From: GetStudyArraysFromChartUsingID Empty Array
[2025-05-12 17:26:43] |
User431178 - Posts: 713 |
Study B is the only study on Chart 2. Study A is the second study on Chart 1. A & B are both custom studies If the studies are on different charts, calculation precedence is not the problem. When I apply Study B to Chart 2 and use Chart 2's chart number, the associated array being read in from Study A is empty. It doesn't update as the values change. I guess I misread this before. Why would you use chart 2's chart number if you want to read data from a study on chart 1, of course it will not work. The function requires the source chart number, the one you want to read from, not the chart you are calling the function from. However, when I apply Study B to Chart 1, change the chart number from Chart 2's chart number to Chart 1's chart number, Study B reads the array from Study A with no issues. Yes, because now the function has the correct argument passed in, the source chart number. Sorry for the confusion with precedence, I will try to read more carefully in future. |