[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EL- why is one not working, when its counterpart is working ?!



PureBytes Links

Trading Reference Links

> value2=iff(low<value2[1],low,value2[1]);    (low of the last trading
>      - this guy does not work

The built-in variables, value1, etc., are initialized to zero. Since the
low is never less than zero, value2 will always return zero.

Use your own named variables. That does two good things. You can give
them descriptive names so your code makes sense when you read it. As
well, they can be initialized to whatever value you want.

var: daylow(99999);
daylow = iff(low<daylow[1], low, daylow[1]);

-- 
  Dennis