Support Board
Date/Time: Sat, 01 Mar 2025 12:59:43 +0000
sc.ApplyStudyCollection Doesn't Seem to Work
View Count: 720
[2021-09-30 12:53:50] |
maxpi - Posts: 181 |
I have a collection called "PRICE" which when added manually via the Analysis list works fine. I try to add it programmatically with the following code: if(sc.Index ==0) { sc.ApplyStudyCollection(sc.ChartNumber, "PRICE", 0) } With ClearExistingStudiesFromChart set to 0 it just does nothing, changing the 0 to a 1 causes it to delete any manually entered collection. With 0 or 1 it never adds the study collection. |
[2021-09-30 15:20:38] |
maxpi - Posts: 181 |
Running the latest version of sierra 39212, same results gotten with a version a few weeks old...
|
[2021-09-30 18:18:38] |
Sierra_Chart Engineering - Posts: 18607 |
We will test this.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-10-01 18:24:47] |
Jeffrey - Posts: 2220 |
sc.ApplyStudyCollection appears to be working fine for me. Maybe check to make sure that line of code is running by adding a message to the log within that if block?
|
[2021-10-01 18:27:39] |
Sierra_Chart Engineering - Posts: 18607 |
Additionally: In our scsf_ApplyStudyCollectionExample, there is a check: if (sc.IsFullRecalculation) return; This prevents sc.ApplyStudyCollection from being called when nothing else is happening on the chart. If you copied this code for your own study, that might be causing the issue. But otherwise sc.ApplyStudyCollection appears to be working correctly. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2021-10-01 18:27:57
|
To post a message in this thread, you need to log in with your Sierra Chart account: