TradingView
racer8
2 дек 2021 г., 02:24

Racer Correlation [racer8] 

Microsoft CorporationNASDAQ

Описание

This indicator gauges correlation between 2 markets using my own method I invented. It is far superior to the correlation coefficient in that it maintains steady correlation values, meaning less false signals regarding correlation. Yet, the indicator's calculation is very simple in fact...

It simply calculates the percentage of moves in the same direction as the other market. So if MSFT moved in the same direction as SPX 80% of the time, then the indicator would show you a value of 80. Unlike correlation coefficient, you can calculate exactly how many of MSFT's bars moved in the same direction as SPX's bars. Everytime MSFT moves in the same direction as SPX, it is included in the percentage of positively correlated moves.
Closing prices are used solely in the indicator's calculations. All indicator values represent a percentage. Also, I recommend a length of at least 100 periods.

Values between 0% and 25% indicate strong negative correlation. (bright red)
Values between 25% and 33% indicate moderate negative correlation. (red)
Values between 33% and 50% indicate weak negative correlation. (dark red)

Values between 50% and 67% indicate weak positive correlation. (dark green)
Values between 67% and 75% indicate moderate positive correlation. (green)
Values between 75% and 100% indicate strong positive correlation. (bright green)........Enjoy :)
Комментарии
MasBart
Hello, what is the difference between your script and relative strength (to index, usually). I like the presentation of your script better. Thanks.
racer8
@MasBart, RSI isn't even a correlation indicator. You clearly don't know what RSI is...
MasBart
@racer8, hi, I wasn't referring to RSI, but relative strength, normally in a form of a line comparing stocks to index (dow jones, nifty, cac400, etc). Like some on this page tradingview.com/scripts/search/relative strength/
racer8
@MasBart, what your talking about is also called Advance Decline. I'm not too familiar with how it works, but I know it has a completely different calculation than Racer Correlation. So its not comparable. Plus, AD only considers stocks, not forex or etc. My indicator works on any market & any time frame. AD is about telling u how the stock compares to the general stock market, whereas RC tells u directly what percentage of moves are positively correlated between 2 markets.
Ещё