Indicador Kevin 2.0

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

instrument { name = "Kevyn Trader 2.

0", short_name = 'Kevyn', icon="indicators:BB",


overlay = true }

input_group {"COMPRA", call_color = input{ default = "green", type =


input.color } }
input_group {"VENDA", put_color = input{ default = "red", type = input.color } }
input_group {"SMA", sma_color= input {default= '#10A3C4', type= input.color}}
input_group {"B_SUP", bbsup_color= input{ default= "#DA4933", type= input.color}}
input_group {"B_INF", bbinf_color= input{ default= "#AAAA11", type= input.color}}

sma1= sma(close, '5')


upper_band= sma1 + (stdev(close,5) * 1.57)
lower_band= sma1 - (stdev(close,5) * 1.57)
sto1= stochastic(10, 2)
sto2= sma(sto1, '2')
sto = stochastic('10', '10')
sto1 = sma(sto, '2')
sto2 = sma(sto1, '2')
p_sto1 = sto1*100
p_sto2 = sto2*100
sma1B= sma(close, '10')
upper_bandB= sma1B + (stdev(close,10) * 2.1)
lower_bandB= sma1B - (stdev(close,10) * 2.1)
sto1B= stochastic(13, 3)
sto2B= sma(sto1B, '3')
stoB = stochastic('13', '10')
sto1B = sma(stoB, '3')
sto2B = sma(sto1B, '3')
p_sto1B = sto1B*100
p_sto2B = sto2B*100

plot_shape( ((close <= lower_band and p_sto1 <= 15 and p_sto2 <= 15) or (close <=
lower_bandB and p_sto1B <= 15 and p_sto2B <= 15)),
"COMPRA",
shape_style.arrowup,
shape_size.large,
call_color,
shape_location.belowbar,
0,
"COMPRA KEVYN TRADER",
"white")

plot_shape( ((close >= upper_band and p_sto1 >= 85 and p_sto2 >= 85) or (close >=
upper_bandB and p_sto1B >= 85 and p_sto2B >= 85)),
"VENDA",
shape_style.arrowdown,
shape_size.large,
put_color,
shape_location.abovebar,
0,
"VENDA KEVYN TRADER",
"white")

You might also like