instrument { name = "ExNova Retração", icon="indicators:ADX", overlay = true }
method_id = input (1, "Type", input.string_selection, { "FREDSONC._M15" })
input_group {
"Maxima",
level_1_color = input { default = "red", type = input.color },
level_1_width = input { default = 2, type = input.line_width }
}
input_group {
"Minima",
level_2_color = input { default = "green", type = input.color },
level_2_width = input { default = 2, type = input.line_width }
}
local function m15(candle)
c1 = candle.high
c2 = candle.low
end
local methods = { m15 }
local resolution = "15m"
sec = security (current_ticker_id, resolution)
if sec then
local method = methods [method_id]
method (sec)
plot (c1, "C1", level_1_color, level_1_width, 0, style.levels,
na_mode.continue)
plot (c2, "C2", level_2_color, level_2_width, 0, style.levels,
na_mode.continue) --EXNOVA SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
end
instrument { name = "Exnova", overlay = true }
input_group {
"COMPRAR",
comprar_color = input {default = "Lime", 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(close, '2')
high_band = base + (stdev(open, 2) *0.1)
low_band = base - (stdev(open, 2) *0.1)
media = sma(close, '2')
up_band = media + (stdev(close, 2) * 0.1)
down_band = media - (stdev(close, 2) * 0.1)
expo = ema(close,'2')
plot_shape((open > high_band and close < high_band),
"VENDER",
shape_style.arrowdown,
shape_size.large,
vender_color,
shape_location.abovebar,
0,
"ExNova VENDA ",
vender_color)
plot_shape((open < low_band and close > low_band),
"COMPRAR",
shape_style.arrowup,
shape_size.large,
comprar_color,
shape_location.belowbar,
0,
"ExNova COMPRA ",
comprar_color)
end