4X4good

4x4_USOIL correlation

115 0 13
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)









EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
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 Contact Support Ideas Published Followers Following Private Messages Chat Sign Out