You are on page 1of 1

instrument {

name = 'Canal Emas',


icon = 'https://www.lua.org/images/logo.gif',
overlay = true
}

period = input (14, "front.period", input.integer, 1)

source = input (1, "front.ind.source", input.string_selection,


inputs.titles_overlay)
fn = input (1, "front.newind.average", input.string_selection, averages.titles)

input_group {
"Superior",
colorSup = input { default = "green", type = input.color },
widthSup = input { default = 1, type = input.line_width}
}
input_group {
"Medio",
colorMed = input { default = "white", type = input.color },
widthMed = input { default = 1, type = input.line_width}
}input_group {
"Inferior",
colorInf = input { default = "red", type = input.color },
widthInf = input { default = 1, type = input.line_width}
}
local sourceSeries = inputs [source]
local AVG = averages[fn]

plot(AVG(high, period), "Superior", colorSup,widthSup)


plot(AVG(hlc3, period), "Medio", colorMed,widthMed)
plot(AVG(low, period), "Inferior", colorInf,widthInf)

You might also like