|
Los Angeles, CA
Posts: 92 since Mar 2015
Thanks Given: 13
Thanks Received: 3
|
So I have created a script,
I have multiple defs, but want the one with the highest value
def a = if open is 12 then 1 else 0
def b = if close is 21 then 2 else 0
def c = if high is 8 then 3 else
I want it to return the max of the 3, so lets say we have true statements to a and b, that's 1 and 2 . so the max is 2,between both so I want B.
if MAX(a, b, c) worked i'd use it but im out of luck 
|