Show Bar Script

Hi,

I’m looking for a little help with a show bar script.

Here’s the setup:

Indicator must go from a value of <.40 to a value greater or equal to (>=) .635 within a ten bar period (No more than 10 bars). I’ve struggled with several scripting functions to no avail.

Any clues would be appreciated.

Wouldn’t this be a Zweig Breadth Thrust? This thread covers that

https://forum.optuma.com/topic/custom-breadth-indicator/