Skyte

Relative Strength (IBD Style)

Skyte Telah dikemas kini   
This script is meant to give you a Relative Strength indication of the stock. The goal is to use a similar calculation as used by IBD.
It calculates the performance of the current stock for the last year (most recent quarter is weighted double) and compares it to the performance of a reference index or ticker (default is "SPY").

IBD would give you a value between 0 and 100 because this value is the percentile within all stocks. This is not possible with Pine Script at the moment.
So here you get a Relative Strength value that is >0 if the stock is stronger than the index and <0 if it is weaker than the index.

You can still compare the Relative Strength values between stocks (bigger is better) but you won't know which percentile it is right off the bat.
Nota Keluaran:
Fix typo and update chart.
Nota Keluaran:
Update chart.
Nota Keluaran:
Update chart.
Nota Keluaran:
Improve performance value display.
Nota Keluaran:
Streamline performance calculation.
Nota Keluaran:
Update chart.
Nota Keluaran:
Fixed a bug where the display would jump around during open market when you opened the reference ticker.
Nota Keluaran:
Update chart.
Nota Keluaran:
Fix chart flickering when viewing the reference.
Nota Keluaran:
Fix broken graph.
Nota Keluaran:
Fix broken graph. (Followup)
Nota Keluaran:
Go back to quarterly calculation instead of monthly.
Skrip sumber terbuka

Dalam semangat TradingView yang sebenar, penulis skrip ini telah menerbitkannya dengan menggunakan sumber terbuka supaya pedagang-pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda dapat menggunakannya secara percuma tetapi penggunaan semula kod ini dalam penerbitan adalah dikawalselia oleh Peraturan Dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.

Ingin menggunakan skrip ini pada carta?