Date/Time: Tue, 18 Jun 2019 17:53:26 +0000
Referenced study data is zero on first pass
|onnb - Posts: 513|
hi, I have the following setup:
1. 15 min chart has Numbers Bars Calculated Values applied to it (nbcv)
2. 15 min chart has my custom study applied to it
3. my custom study references the nbcv study mentioned above.
4. i have a 1 tick chart open and that is also referenced by my study
I am using AutoLoop = 1
I am grabbing the nbcv values using GetStudyArrayUsingID
What I am seeing is this:
when i first add the studies for the first time to the 15 min. chart, my study goes through a full calculation twice. The first time around, nbcv values I am retrieving are zero. On the second time around, I get the right values. Does this make sense and is this expected? If it does, is there a way to detect the first iteration?
Sierra Chart Engineering - Posts: 72918
When you add the studies to the chart, does the chart reload itself? It would make sense that it will do that one time in order to calculate the necessary underlying volume at price data.
Also we recommend giving the chart that is using sc.GetStudyArrayUsingID a low precedence level.
Sierra Chart Support - Engineering Level
Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
Date Time Of Last Edit: 2013-08-20 00:34:27
To post a message in this thread, you need to login with your Sierra Chart account: