4X4good

4x4_USOIL correlation

88 0 11
Determine the correlation of your selected chart to USOIL             .

Inputs for Resolution and Time Frame available from the Format menu of the indicator.

Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
study("4x4_USOIL correlation",shorttitle="USOIL Corr.")
res=input(defval="D",type=resolution)
length=input(defval=20,minval=2,type=integer,step=1)
s1=security(tickerid,res, close[0])
s2=security("USOIL",res, close[0])

cor=correlation(s1,s2,length)
plot(cor,color=blue,linewidth=3,transp=0,title="corr")

hline(.90,linewidth=3)
hline(0.0,linewidth=3)
hline(-.90,linewidth=3)









United States
United Kingdom
India
Deutschland
España
France
Việt Nam
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 Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Support Priority Support Report Issue Ideas Published Followers Following Private Messages Chat Sign Out