Login Page - Create Account

Support Board


Date/Time: Mon, 22 Apr 2019 07:00:47 +0000



Referenced study data is zero on first pass

Support Request:
[2013-08-20 00:10:52]
onnb - Posts: 509
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?

Onn

[2013-08-20 00:34:17]
Sierra Chart Engineering - Posts: 71060
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:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

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:

Login


Login Page - Create Account