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.

Weekly adx line highest In 8 weeks

I've tried, but always have difficulty with the "max" function.

I need a line of code for:
weekly adx below 20, but highest it's been in
an 8 week period.

Thanks!

Comments

  • This seems to work:

    // today's ADX is less than 20
    and [weekly ADX Line(14) < 20]

    // today's ADX is the max in 8 weeks
    and [weekly ADX Line(14) = weekly max(8, weekly ADX Line(14))]

    If today is the max and it's under 20, the eight preceding weeks must also be under 20.
  • Thank you! Just what I need.
Sign In or Register to comment.