TradingView
Skyte
2021年10月16日上午9點49分

Relative Strength (IBD Style) 

Palantir Technologies Inc.NYSE

描述

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.

發布通知

Fix typo and update chart.

發布通知

Update chart.

發布通知

Update chart.

發布通知

Improve performance value display.

發布通知

Streamline performance calculation.

發布通知

Update chart.

發布通知

Fixed a bug where the display would jump around during open market when you opened the reference ticker.

發布通知

Update chart.

發布通知

Fix chart flickering when viewing the reference.

發布通知

Fix broken graph.

發布通知

Fix broken graph. (Followup)

發布通知

Go back to quarterly calculation instead of monthly.
評論
Jelicattens
thank you so much! great work! now that its been around for a while, have you gotten a feel for "above what level" you think a stock would meet for instance Minervini-criteria? Generally speaking, so to say, because the numbers are not the same as IBDs
sguthivari
Excellent indicator!! Thanks, Skyte.
jits1234
Hi, Why are we not able to see the source code ? How do I view it ?
Skyte
@jits1234, the indicator is open source like any other open source one. If you can't see the source code please contact TradingView.
jits1234
@Skyte, Thanks Skyte, will do that.
victorrw
Thanks Skyte. Brilliant Script!
vishwarajfinance
Hi Skyte
Thank you for this amazing script. Just wanted to know, if you can allow other stock exchanges benchmark indices ( like say for me from India- CNX 500). Would love if you could make this slight modification.
Thanks again
Skyte
@vishwarajfinance, The reference ticker is already adjustable in the settings: i.imgur.com/PG6sHsN.png
caihuangq
hi how can i get this into stock screener
Jm808David
Am I doing something wrong? I just get a heart beat looking line.
更多