Bull Bear – Trend Identifier

BULL BEAR: The purpose of this indicator is to find the strength of the trend.


Indicator Script


study(title="Bull/Bear")
len = input(15, minval=1)
DI = change(high)- (-change(low))
trur = rma(tr, len)
trend = fixnan(100 * rma(DI, len) / trur)
plot(trend, color = trend <= 0 ? red : green, style=area)
length = input(15, minval=1)
smoothK = input(5, minval=1)
ul = input(55, minval=50)
ll = input(45, maxval=50)
st = input(true)
k = sma(stoch(close, high, low, length), smoothK)
uline = ul
lline = ll
col = k >= uline ? green : k <= lline ? red : blue
plot(k, style=line, linewidth=2, color=col)
p1 = plot(uline, style=line, linewidth=2, color=blue)
p2 = plot(100, color=white)
fill(p1, p2, color=green, transp=100)
p3 = plot(lline, style=line, linewidth=2, color=red)
p4 = plot(0, color=white)
fill(p1, p3, color=blue, transp=100)
fill(p3, p4, color=red, transp=100)

Get Important Stock Market Update and regular stock investment ideas From StockFinz. Follow UsTelegram | Twitter | Facebook | YouTube


*Disclaimer

Leave a Reply

Your email address will not be published. Required fields are marked *