%b of %b closes

Hi
Is there are way to write a scan where i want the %b of %b closes. Then have 80,20 as overbought and oversold. So i would like a certain %b of %b closes under 20 as an oversold reading.

Thanks

Comments

  • I wonder if you could post a chart that shows the condition you are looking for. I'm not a %b user, so I'm not sure what you are looking for.
  • markd
    markd mod
    edited October 2015
    OK. Did some reading -

    this passes syntax:

    For crossing above .8

    and [%B(20,2.0, %B(20,2.0,Daily Close)) x 0.8]

    For crossing under .2, I think you would you write

    and [0.2 x %B(20,2.0, %B(20,2.0,Daily Close))]


    BUT - it generates a stack overflow error on the scan engine and doesn't deliver any results - at least when I ran it.

    "java.lang.StackOverflowError"

    So don't use it.

    Maybe @gord could take a look at what is going on.
  • Markd
    I will give this a try. You are a legend mate, for all your help on these boards. Appreciate it.
  • thanks for the encouragement - don't run this though until they figure out why it errors.