Algokid

AK "Follow the Money" Indicator [E]

334 1 35
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 :

Reply
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
Việt Nam
日本
한국
简体
繁體
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 Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Priority Support Contact Support Ideas Published Followers Following Private Messages Chat Sign Out