Divergence William%R

Forums ProRealTime English forum ProBuilder support Divergence William%R

Viewing 3 posts - 1 through 3 (of 3 total)
  • #168661

    Hello everyone,

    Can you help me for this.

    For the indicator William%R, i have the code like this

    period = 14
    hh = highest[period](high)
    ll = lowest[period](low)
    Wp = ((hhclose)/(hhll))*100
    return Wp as “Williams R percent”, 20 as “-20 level”, 80 as “-80 level”
    Can someone help me to complete with addition of divergence for William%R? (like we see in divergence RSI, each time we have a divergence,=> we will see a bar red or green to indicate that there is divergence now)
    Thank you.
    #168709

    There you go:

    You can change the NumerOfBars to scan a bar range, WRperiods and and Distance of lines from the price.

    If you import the ITF file you will have variables declared.

     

    #168781

    Thank you so much

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login