Abnormal behavior of indicator plotting relative to count with time

Forums ProRealTime English forum ProBuilder support Abnormal behavior of indicator plotting relative to count with time

Viewing 2 posts - 1 through 2 (of 2 total)
  • #147343

    Good evening,

    i have an strange behavior from a sample code.

    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.

    may you help me? where i was wrong?

     

     

    #147355

    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.

     

Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login