10 lines
437 B
Plaintext
10 lines
437 B
Plaintext
// 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) |