Forums ProRealTime English forum ProBuilder support PRC williams' high and low indicator Reply To: PRC williams' high and low indicator

#71069

Sorry Nicolas, but it doesn’t work either.

This is the original code I modified to display ONLY arrows that are circled. I only moved the DRAWARROWUP/DRAWARROWDOWN lines to the line following DRAWELLIPSE (and commented out this one), I also commented out the DRAWCANDLE line at the bottom, plus I had to comment out some variables used to drawellipses. This code is working as you can see from indicator box 3, since it displays ONLY those arrows that are circled on the price chart.

But, if instead of drawing an arrov a simply set x=1 when it’s an upward arrow and x=-1 when it’s the other way round, it does not work! With initial x=0 the result is box 1, without x=0 (or setting just ONCE x=0) the result is the histogram in box 2. In either cases it’s wrong.

I am wondering why replacing a DRAWARROWUP with x=1 produces odd results.

I also tried to set DEFPARAM CalculateOnLastBars = 1000 (from 300), but that’s not the problem I guess, since the original version on the price chart still has 300 as a bar limit.