Professional Documents
Culture Documents
function prev(s,i)
y=abs(round(i))
return s[y]
end
input_group { "CALL", call_color = input{ default="yellow", type = input.color} }
input_group { "PUT", put_color = input{ default="yellow", type = input.color} }
length = input(5, "Numero de Velas")
extTop = input(8, "Extreme Level Top")
extBot = input(-8, "Extreme Level Bottom")
sigTop = input(9, "Significant Level Top")
sigBot = input(-9, "Significant Level Bottom")
fairTop = input(9, "Fair Value Top")
fairBot = input(-9, "Fair Value Bottom")
varp = round(length/5)
h_f = length > 7
plot_candle {
open = vopen,
high = vhigh,
low = vlow,
close = vclose,
candle_color = colorr
}
hline(extTop,"","red")
hline(extBot,"","green")
hline(sigTop,"","red")
hline(sigBot,"","green")
hline(fairTop,"","red")
hline(fairBot,"","green")