Add Indi-BTFD indicator, credit to @kerberos007

This commit is contained in:
moshferatu 2023-10-26 11:34:20 -07:00
commit 79da67ddd0

10
indi_btfd.pine Normal file
View File

@ -0,0 +1,10 @@
// Credit to @kerberos007.
//@version=5
indicator("Indi-BTFD")
pct_stocks_above_20_day_average = request.security("S5TW", "D", close)
plot(ta.ema(100 - pct_stocks_above_20_day_average, 12), color = color.red)
hline(50, title="Oversold", color=color.olive, linestyle=hline.style_solid)
hline(70, title="Fear", color=color.green, linestyle=hline.style_solid)
hline(90, title="Capitulation", color=color.lime, linestyle=hline.style_solid)