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.

Scan language for close in top half of todays range?

dtkrausedtkrause
edited April 22 in Scanning
Title.

Thanks, guys, you are appreciated.

Comments

  • markdmarkd mod
    edited April 22
    and [ close > low + [range * .5] ]

    If you add half the day's range to the low, it gives you the midpoint of the range. If the close is greater than the midpoint, it's in the top half of the range.

    If you want it in the top quarter of the days range, the change .5 to .75, in the top 10%, change .5 to .9, etc.

    Conversely if you want something at lower end of the range, change > to <, and adjust the decimal fractions accordingly

    and [ close < low + [range * .5] ] // bottom half

    and [ close < low + [range * .25] ] // bottom quarter

    and [ close < low + [range * .1] ] // bottom 10%
  • Perfect! Thank you, Markd.
Sign In or Register to comment.