You are on page 1of 2

instrument {overlay = true,

name = ' SCRIPT',

short_name = 'OTC',

icon="indicators:ADX"}

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


input.color } }

input_group { "OTC - DOWN COLOR", put_color = input { default="#FF00FF", type =


input.color } }

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.huge,

call_color,

shape_location.belowbar,

0,

"COMPRAR",

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.huge,

put_color,

shape_location.abovebar,

0,
"VENDER",

put_color)

end

end

You might also like