You are on page 1of 2

instrument { name = "TUWIN PUT / TUWIN CALL", icon="indicators:BB", overlay =

true }

input_group {
"TUWIN CALL",
comprar_color = input {default = "green", type = input.color}
}

input_group {
"TUWIN PUT",
vender_color = input {default = "red", type = input.color}
}

sec = security (current_ticker_id, "1m")

if sec and sec.open_time == open_time then

base = sma(open, '7')


high_band = base + (stdev(open, 10) * 2)
low_band = base - (stdev(open, 10) * 2)
media = sma(close, '17')
up_band = media + (stdev(close, 10) * 3.0)
down_band = media - (stdev(close, 10) * 3.0)
expo = ema(close,'60')

--IMPULSOS

plot_shape((open > high_band and close < high_band),


"TUWIN PUT",
shape_style.arrowdown,
shape_size.huge,
vender_color,
shape_location.abovebar,
0,
"TUWIN PUT",
vender_color)

plot_shape((open < low_band and close > low_band),


"TUWIN CALL",
shape_style.arrowup,
shape_size.huge,
comprar_color,
shape_location.belowbar,
0,
"TUWIN CALL",
comprar_color)

-- RETRAES

plot_shape((open < up_band and high > up_band and close <= up_band and expo >
up_band),
"VENDER1",
shape_style.arrowdown,
shape_size.huge,
vender_color,
shape_location.abovebar,
0,
"TUWINPUT RT",
vender_color)

plot_shape((open > down_band and low < down_band and close >= down_band and
expo < down_band),
"COMPRAR1",
shape_style.arrowup,
shape_size.huge,
comprar_color,
shape_location.belowbar,
0,
"TUWIN CALL RT",
comprar_color)

end

You might also like