Supply & Demand Indicator

Forums ProRealTime English forum ProBuilder support Supply & Demand Indicator

Viewing 4 posts - 1 through 4 (of 4 total)
  • #202281

    Hello everyone,

    I m having trouble creating a Supply & Demand indicator.

    On the image below you see that the drawing is correct, but the values I m returning are not!

    The values are assigned in the same for loop with the same values that are drawn.

    But somehow it returns the values shifted.

    Can someone help me?

    Thanks Taklause

    #202286

    I did not look at the code, but if you return a value contained in a loop with RETURN, therefore the variable is returning the last value assigned in the loop (at the end of the loop or with a BREAK instruction).

    #202287

    This is one for loop. The demandOrSupplyZoneStart,demandOrSupplyZoneEnd and the supplyOrDemand flag are returned. They are initialized as a “once” variable. Therefore I would expect if the correct drawings are made, the values are accordingly assigned ? Shouldnt they?

    #202297

    Try changing lines 15 and 16 with these two:

    and line 11 with:

     

    1 user thanked author for this post.
Viewing 4 posts - 1 through 4 (of 4 total)

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