foosmoo

Asset Correlation

foosmoo Uppdaterad   
This indicator shows correlation strength between the source asset plotted in the main chart and a user-input asset in the indicator panel. For example, if the main chart panel is displaying BTCUSD and the correlation indicator is NDX, then the correlation strength is plotted as the relationship between the two. A strong positive correlation target is set at 0.80 but can be changed. A strong negative correlation target is set at -0.80 and can also be changed.

The indicator also has an option for a plot of the ta.correlation() function for a reference line.
Versionsinformation:
Changes as follows:
  • Fixed scale issue y axis for reference plot of ta.correlation(), which is hidden by default. As plots can’t be called from a local scope, the transparency of the plot is set to 100 when turned off which previously affected the y axis scale. Update sets ta.correlation() plot value to 0 and transparency to 100, when bShowTradingViewCorrelation is false.
Skript med en öppen källkod

I sann TradingView-anda har författaren publicerat detta skript med öppen källkod så att andra handlare kan förstå och verifiera det. Hatten av för författaren! Du kan använda det gratis men återanvändning av den här koden i en publikation regleras av våra ordningsregler. Du kan ange den som favorit för att använda den i ett diagram.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här skriptet i ett diagram?