OPEN-SOURCE SCRIPT

Short Interest on Most Tickers

מעודכן
From searching on QUANDL I found that FINRA provides some data on Short Interest. From my understanding, it does this through two separate QUANDL codes, one for the NASDAQ Exchange and one for the NYSE Exchange. I decided to just add those 2 values together to arrive at a value for Short Interest.

I haven't tested a TON of stocks, but you should be able to type a symbol and pull SI data if it exists in QUANDL. Some tickers might need some adjustments to how you would type them, for example: in TradingView if you wanted Berkshire Hathaway Class A, you type "BRK.A", but for QUANDL you would need to enter "BRK_A" into the text field.

You can search through QUANDL for these tickers in FINRA here-
https://www.quandl.com/data/FINRA-Financial-Industry-Regulatory-Authority
Once you find the ticker you like, click that link, look near the top-right for where it says "Quandl Code" and look for the text at the end.

NOTE: because this data is refreshed daily, after close, it is NOT REAL-TIME!! It is not an indicator you can track intraday or during the day to try and trade. Because of this I have added the following code-
fix = barstate.isrealtime ? na : out

Without this code you would be seeing yesterday's data show up for today. I left the Moving Average's to continue on, though.

I made a few other outputs available to view the data-- by Percent Rank, Stochastic (3sma smoothed), and Relative Strength Index. These might be useful to some, I think they are a bit difficult to read and make much useful interpretation, but they're there regardless.

Please let me know if there are any errors in the Pine Script, something about the QUANDL data that I have misinterpreted, etc. And feel free to use the source code to how you please (obvious disclaimer is you are not allowed to take it and sell it for profits as your own on TradingView or elsewhere).

תמונת-בזק
Example: Output via Stochastics

תמונת-בזק
Example: Output via % Rank
הערות שחרור
Realized that Pine can just pull the ticker you are viewing, as most people are probably interesting in that as opposed to viewing, say, TSLA with Short Interest set to SPY. Left manual entry available as I mentioned looking at a stock like BRK.B will not pull the ticker from QUANDL correctly.
Volume

סקריפט קוד פתוח

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

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

כתב ויתור