Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 23:08:06 +0000



Post From: Referenced study data is zero on first pass

[2013-08-20 00:10:52]
onnb - Posts: 662
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