LastBattle

[STRATEGY] Follow the Janet Yellen

In the era of central bank's helicopter money, the market will always be skyrocketing up and up given enough time.

What's the strategy to profit from indices?
Only short the market when its in a state of euphoria /irrational exuberance bubble, or sell when it is confirmed (20% drawdown). Otherwise, you really have no reason not to long at every chance.

Conclusion:
Follow the printing press like a sheep.

Skript med en öppen källkod

I sann TradingView-anda har författaren publicerat detta skript med öppen källkod så att andra handlare kan förstå och verifiera det. Hatten av för författaren! Du kan använda det gratis men återanvändning av den här koden i en publikation regleras av våra ordningsregler. Du kan ange den som favorit för att använda den i ett diagram.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här skriptet i ett diagram?
//@version=2
strategy("Follow the Janet Yellen", overlay=true)

// Input
close_price = close[0]
len = input(defval=100, minval=1, title="Linear Regression length")

linear_reg = linreg(close_price, len, 0)
linear_reg_prev = linreg(close[1], len, 0)
slope = ((linear_reg - linear_reg_prev) / interval)

plotarrow(slope, colorup=teal, colordown=orange, transp=40)
plot(linear_reg, color = red, title = "Linear Regression Curve", style = line, linewidth = 2)

if (slope < -10)
    strategy.entry("Short", strategy.short)
if (slope > 75)
    strategy.entry("Madness", strategy.short)
if (slope > 5 and slope < 20) 
    strategy.entry("Long", strategy.long)