Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

las mejores plantillas indicadores cursos y sistemas de trading totalmente gratis

en nuestro canales de telegram

@indicadoresgratis
https://t.me/indicadoresgratis

@indicadoreschat
https://t.me/indicadoreschat

@comunidadgratis
https://t.me/comunidadgratis

--------------------------------

instrument {
name = 'Support and resistance barry',
icon = 'indicators:RSI',
overlay = True
}

boxp=input (21, "front.newind.darvasbox.length", input.integer, 5)

input_group {
"Support and resistance",
top_color = input { default = "red", type = input.color },
bottom_color = input { default = "green", type = input.color },
}

RST = boxp

RSTT = value_when(high >= highest(high, RST), high, 0)


RSTB = value_when(low <= lowest(low, RST), low, 0)
plot (RSTT, "Resistance", iff(RSTT ~= RSTT[1], na ,top_color), 4, 0, style.levels,
na_mode.restart)
plot (RSTB, "support", iff(RSTB ~= RSTB[1], na ,bottom_color), 4, 0, style.levels,
na_mode.restart)

You might also like