instrument {overlay = true,
name = 'FLUXO MACD',
short_name = 'OTC',
icon="indicators:ADX"}
input_group { "OTC - UP COLOR", call_color = input { default="#00FFFF", type =
[Link] } }
input_group { "OTC - DOWN COLOR", put_color = input { default="#FF00FF", type =
[Link] } }
if ((close > close[1]) and (close[1] > open[2]) and (close[3] > close[2])) then
plot_shape(1,
'Bull_OTC',
shape_style.arrowup,
shape_size.big,
call_color,
shape_location.belowbar,
0,
"MACD",
call_color )
else
if ((close < close[1]) and (close[1] < open[2]) and (close[3] < close[2])) then
plot_shape(1,
'Bear_OTC',
shape_style.arrowdown,
shape_size.big,
put_color,
shape_location.abovebar,
0,
"MACD",
put_color)
end
end