You are on page 1of 2

instrument { name = "INSTAGRAM:CRACKTRADINGACADEMY_OFICIAL", icon="indicators:BB",

overlay = true }

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

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

sec = security (current_ticker_id, "5m")

if sec and sec.open_time == open_time then

base = sma(open, '10')


high_band = base + (stdev(open, 10) * 2)
low_band = base - (stdev(open, 10) * 2)
media = sma(close, '20')
up_band = media + (stdev(close, 20) * 2.5)
down_band = media - (stdev(close, 20) * 2.5)
expo = ema(close,'100')

--IMPULSOS

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


"VENDER",
shape_style.arrowdown,
shape_size.huge,
vender_color,
shape_location.abovebar,
0,
"VENDE CRACK",
vender_color)

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


"COMPRAR",
shape_style.arrowup,
shape_size.huge,
comprar_color,
shape_location.belowbar,
0,
"COMPRA CRACK",
comprar_color)

-- RETRAÇÕES

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,
"VENDA 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,
"COMPRA RT",
comprar_color)

end

You might also like