I need to find the value of the Highest-High / Lowest-Low between 2 arbitrary bars.
My first attempt was using MAX & MIN in a similar way to that described here
however, because I need to do this between arbitrary bars, the period passed as argument to MAX / MIN keeps changing, as a result Ninja keeps creating new MIN / MAX objects which consumes memory until my PC rans out of it.
So I need a different way of doing that ... I looked at HighestBar() in the help, it seems to be always working from the CurrentBar back, but I need a version of it that would start nBarsAgo ... does this exist, or am I left to write a little function to do what I need?
(I am afraid my little function would end-up pretty slow, so if this is my only way, what are the possibilities to get a lighting-fast execution of it?)
Thanks in advance
Dominique
Comment