Support Board
Date/Time: Sun, 13 Jul 2025 15:33:22 +0000
Post From: Referencing Studies Across Charts with Different Timeframes
[2024-08-07 19:54:24] |
Gradient - Posts: 154 |
Hi, I'm attempting to reference studies on one chart (i.e. Daily) on a different chart (i.e. 30 minute) within the same chartbook. I've implemented the sc.GetStudyArraysFromChartUsingID() method but found that these charts must have the same timeframes in order to reference the study. How can I reference the output of a study with a different timeframe than my main chart? These values don't need to be updated every bar, just sampled initially and persist in the main chart throughout the session. I tried a manually implementation of this by checking the current time and then referencing the other chart and storing the data point in a persistent variable, but this didn't work. Thanks |