People may already be aware of this, but just in case here goes...
var ret = high(-3, 1, symbol) returns an Array with ONE element....therefore operations on ret will be ambiguous;
BUT...............
var ret = high(-3, symbol) returns a number!
Obviously, this also applies to close(), low(), etc...
I spent hours trying to track down the error in my code and it was this. To me it seems illogical, since both forms are used interchangeably in the reference materials.
var ret = high(-3, 1, symbol) returns an Array with ONE element....therefore operations on ret will be ambiguous;
BUT...............
var ret = high(-3, symbol) returns a number!
Obviously, this also applies to close(), low(), etc...
I spent hours trying to track down the error in my code and it was this. To me it seems illogical, since both forms are used interchangeably in the reference materials.