Algokid

AK "Follow the Money" Indicator [E]

138
Here's the indicator for equities

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?
study("AK FTM indicator_Equity")

// 85 days provide best return for the system over 15 years
len = input(85,title = " # days")


// calculate the ROC for equity (SPY) and bonds (TLT)
R2 = security("TLT","D",roc(close,len))
R1 = security("SPY","D",roc(close,len))

// Signals
buy = (R1 > R2)
sell =(R2 > R1)

//Plot signals
plot(R2,color= blue,linewidth=2,title="BOND")
plot(R1,color= purple,linewidth=2,title="EQUITY")

// Visual
bgcolor(buy ? lime:red)