Support Board
Date/Time: Mon, 16 Jun 2025 09:35:15 +0000
Post From: GetStudyArraysFromChartUsingID Empty Array
[2025-05-12 22:46:56] |
Gradient - Posts: 143 |
The function should read the data from which ever chart the study is active on. For example if there is a custom study on Chart 1 and I want to read it on Chart 2, then I should pass in Chart 1's chart number into the sc.GetStudyArraysFromChartUsingID on Chart 2. This is what is being done but there is no data being received on Chart 2 from Chart 1. To test that the issue wasn't with the custom study, I placed the same custom study being used on Chart 2 on Chart 1 and then passed Chart 1's chart number into the study and it read the data fine. This proved that the issue wasn't the logic of study as all that was changed was the chart number being referenced. The custom study that uses sc.GetStudyArraysFromChartUsingID should work regardless of which chart number is being used. It's not limited to only being used on the Chart that contains the reference study. (i.e. Chart 1) If using with the source chart, you would just use sc.ChartNumber and there would be no need to have an sc.Input variable for setting the chart number. I created an sc.Input variable for the chart number because I don't want to read the study on the Source chart. I would like to read it on a different chart. Date Time Of Last Edit: 2025-05-12 22:49:15
|