| 
 PureBytes Links 
Trading Reference Links 
 | 
>         if      MarketPosition = 0 and PointScore >= LEntScore or
>                 MarketPosition = 0 and PointScore <= SEntScore or
>                 MarketPosition = 1 or MarketPosition = -1 then
At a glance, try some parentheses so TS knows what "or" goes with what
"and." I'm not sure I know your intent here but it looks like
        if      (MarketPosition = 0 and PointScore >= LEntScore) or
                (MarketPosition = 0 and PointScore <= SEntScore) or
                MarketPosition = 1 or MarketPosition = -1 then
-- 
  Dennis
 |