You are on page 1of 1

instrument {

name = 'BANDA3D',
short_name = 'TeMA',
icon='https://efraimtraders.com/wp-content/uploads/2022/03/Touro.png',
overlay = true
}

period = input (20, "TeMA period", input.integer, 1, 500)


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

input_group {
"front.top line",
colorTop = input { default = "#ff56f7", type = input.color },
widthTop = input { default = 1, type = input.line_width}
}

input_group {
"front.middle line",
colorMid = input { default = "#56ff67", type = input.color },
widthMid = input { default = 1, type = input.line_width}
}

input_group {
"front.bottom line",
colorBot = input { default = "#ff56f7", type = input.color },
widthBot = input { default = 1, type = input.line_width}
}

local AVG = averages[fn]


plot(AVG(high, period), "front.top line", colorTop,widthTop)
plot(AVG(hlc3, period), "front.middle line", colorMid,widthMid)
plot(AVG(low, period), "front.bottom line", colorBot,widthBot)

You might also like