Algokid

AK "Follow the Money" Indicator [E]

268 1 24
Here's the indicator for equities
Remove from Favorite Scripts Add to Favorite Scripts
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)



www.passivestor.com
Algokid PRO
2 years ago
Please see this post for detail :

AK " Follow the Money " [FTM] Indicator and trading system
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out