use in SP500 in market open time, never plot the “A” string, which Count value zero, but plot “B” string from the else clause for Count not zero.
this is the image, but there are other two abnormal item:
– Seconds move (1,2,4,5,6,7,8,9,xxxx up to 59 then restart from zero)
– Count value always 1.295.
i dont understand: i expected that indicator plot either the A and B string, and that the B string have count growing from zero to xxxxx.
if i load less bars (Second image) then number showing from count is still fixed, but its another value.
It’s because indicators always preload some bars before the one when it starts. So count will start many bars before your indicator starts and count will always be > 0.
As far as I know there’s no way to avoid this.
Bear in mind that, unless you will be using a N-second TF, seconds will always be 00 because candlesticks always close on a minute boundary.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue