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

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: 130
Nicolas Master
Trader, Programmer, Coder enthusiast. Work with each other for a common goal.
Author’s Profile

Comments

Logo Logo
Loading...