You are on page 1of 1

instrument {overlay = true,

name = 'Engulfing Pattern',


short_name = 'ENGF',
icon="indicators:ADX"}

input_group { "ENG - UP COLOR", call_color = input { default="#00FFFF", type =


input.color } }
input_group { "ENG - DOWN COLOR", put_color = input { default="#FF00FF", type =
input.color } }

if ((close[1] < open[1]) and (close > open) and (close > high[1]) and close[1] >=
open) then

plot_shape(1,
'Bull_Engulfing',
shape_style.arrowup,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"Eng",
call_color )
else
if ((close[1] > open[1]) and (close < open) and (close < low[1]) and close[1]
<= open) then

plot_shape(1,
'Bear_Engulfing',
shape_style.arrowdown,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"Eng",
put_color)
end
end

You might also like