Announcement

Collapse
No announcement yet.

ReferenceError: max is not defined????

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

  • ReferenceError: max is not defined????

    I am getting the above error and it doesn't make sense. The line containing the error looks like this:

    BarsHigh = max(BarsHigh,high(-1));

    BarsHigh is a global variable initialized to 0.

    Anybody have any ideas?

  • #2
    bpschoch
    I think it should be Math.max(BarsHigh,high(-1));
    Alex

    Comment

    Working...
    X