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.

開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?
//@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)