Announcement

Collapse
No announcement yet.

hhv/llv with variable time?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • hhv/llv with variable time?

    Hi, I was wondering for the hhv() and llv() function is it possible to pass in a variable for the number of bars to go back? For some reason eSignal is choking when I do this.

    For example, can you have

    var time = //calculate some number here

    hhv(time, series);

    or does that variable time need to be a constant?

    Thanks.

  • #2
    mazachan
    If the variable you are referring to is being constantly recalculated then you may want to read the explanation and solution Jason provides in this post regarding highest() and lowest() as it applies also to the hhv() and llv() functions.
    Alex

    Comment


    • #3
      Originally posted by Alexis C. Montenegro
      mazachan
      If the variable you are referring to is being constantly recalculated then you may want to read the explanation and solution Jason provides in this post regarding highest() and lowest() as it applies also to the hhv() and llv() functions.
      Alex
      Thanks Alex, this did work for me.

      Comment

      Working...
      X