Find highest value

Forums ProRealTime English forum ProOrder support Find highest value

Viewing 3 posts - 1 through 3 (of 3 total)
  • #171673

    Hello,

    In ProRealCode, how can  I find the highest, the second highest, 3rd highest value etc from any given number of values?

    /Mats

    #171676

    It’s not straightforward and a bit time consuming (the more positions you want to know, the slower it is).

    This example shows how to find out the Highest, the second highest and the third highest price within the last 100 periods:

    #171677

    One of the new instructions in the pipe is rumored to be ARRAY sorting, This would make the above code useless in most cases.
    Until then… it’s better than nothing!

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

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