instrument {overlay = true,
name = 'BLUERED',
short_name = 'BLUERED',
icon="indicators:ADX"}
input_group { "BLUE - UP COLOR", call_color = input { default="#00FFFF", type =
[Link] } }
input_group { "RED - DOWN COLOR", put_color = input { default="#FF00FF", type =
[Link] } }
sec = security(current_ticker_id, "1m")
if ((close[1] < open[1]) and (close > open) and (close > high[1])) then
plot_shape(1,
'bull_Heikin',
shape_style.circle,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"Blue",
call_color )
else
if ((close[1] > open[1]) and (close < open) and (close < low[1])) then
plot_shape(1,
'bear_Heikin',
shape_style.circle,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"Red",
put_color)
end
end