Scan

I am trying to write a scan for the following:
1) The open of the current day is in the top 20% of the days price range
2) The close of the current day is in the bottom 20 % of today's price range

Having trouble. Thanks

Comments

  • There are other ways, but this seems to do it. It helps to group operations. But use brackets [ ] - not parens ( ) - parens are reserved for functions e.g. sma(20, close)



    [group is sp500]

    and [ open > low + [range * .8]]

    and [close < low + [range * .2]]
  • Thanks for the response.