I am guessing price and simpleMovingAverage are both properties of StockOffer? If so the easiest way to compare is
when
offer : StockOffer( p : price, sma : simpleMovingAverage )
eval(p >= sma)
multiple columns cannot currently be used in comparisons against each other or in predicates.
Could you use multiple columns in a predicate if one is bound to a $var? I thought I'd seen that usage, but ... I could easily be wrong. :)
- Geoffrey
Geoffrey Wiseman
