Nicolas

Wide Range Body and Hidden Gap bars (WRBHG)

Category: Indicators By: Nicolas Created: September 6, 2018, 7:58 AM
September 6, 2018, 7:58 AM
Indicators
6 Comments
Wide Range Body and Hidden Gap bars (WRBHG)

This simple indicator identifies Wide Range Body (WRB) and Hidden Gap (HG) bars.

WRB patterns are displayed as a black dots in the middle of the candlestick’s body.

HG patterns are plotted as light blue dots.

Sometimes patterns are detected at the same time and the dots are plotted in the same candlestick body.

Indicator converted from pinescript version by a request in the Spanish forum.

 

//PRC_WRB HG  | indicator
//06.09.2018
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
//converted from tradingview version

//display dots for Wide Range Body and Hidden Gap patterns
body = abs(open-close)
if body>body[1] and body>body[2] and body>body[3] then
 wrb = (open+close)/2
 drawtext("●",barindex,wrb,dialog,bold,20) coloured(100,100,100)
else
 wrb=0
endif
if (wrb[1]>0 and (low>high[2] or high<low[2])) then
 hq = wrb[1]
 drawtext("●",barindex[1],hq,dialog,bold,10) coloured(0,255,255)
endif

return

 

 

Download
Filename: PRC_WRB-HG.itf
Downloads: 131
Nicolas
Nicolas Legend
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

ckat55
8 years ago
#

Thank you Nicolas, I will try it.

ckat55
8 years ago
#

Thank you Nicolas, is there any way that an alert can be set for when the dot appears?

Nicolas
8 years ago
#

yes, change the last line with: RETURN wrb,qh and set an alarm with the alert tool for each time one of these 2 values are changing.

luxrun
8 years ago
#

Thanks Nicolas, I really like this graphical help on the price that identifies the WRB and Hidden Gaps. I found various educational materials on the web and one of the most interesting seemed to me this. Here is the link: http://www.thestrategylab.com/WRBAnalysis.htm

Stenozar
8 years ago
#

Hi Nicolas, sorry for my ignorance, but what's the use of this indicator?

Nicolas
8 years ago
#

These 2 patterns are used in price action trading.

ProRealCode ProRealCode
Loading...