New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.

Tony Crabels NR Scans

Is there a way to create Crabels NR scans in stockcharts?
NR2 - Narrowest two consecutive days range compared to any two-day range in the last 20 sessions.
Thanks

Comments

  • markdmarkd mod
    edited October 2015
    I don't think there's an elegant way to do it in the scan engine (because it's not designed for this kind of scan), but if you want to crunch it out, you could try filling in this framework:

    [group is sp500]

    and [ [max(2, high) - min(2, low)] < [1 day ago max(2,high) - 1 day ago max(2, low)] ]
    and [ [max(2, high) - min(2, low)] < [2 days ago max(2,high) - 2 days ago max(2, low)] ]
    ...
    and [ [max(2, high) - min(2, low)] < [20 days ago max(2,high) - 20 days ago max(2, low)] ]

    Where the "..." is between the second and third "and", you would copy in the previous line ("2 days ago") and increment the number of days ago (to 3 days ago, 4 days ago, etc.) until you get to 19. Take out the "..." before you run it.
  • williemoewilliemoe
    edited October 2015
    Thanks Mark - works fine.
Sign In or Register to comment.