Skyte

Relative Strength (IBD Style)

Skyte מעודכן   
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.
סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?