Algokid

AK "Follow the Money" Indicator [E]

328 1 32
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)



Please see this post for detail :

AK " Follow the Money " [FTM] Indicator and trading system
Reply
United States
United Kingdom
India
Deutschland
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Priority Support Ideas Published Followers Following Private Messages Chat Sign Out