OPEN-SOURCE SCRIPT
Cập nhật 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
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
Phát hành các Ghi chú
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.Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.