OPEN-SOURCE SCRIPT
OC損益率 (%)

This Pine Script indicator computes the percentage change from the daily open price to the daily close price and exposes it as a custom column for TradingView’s Stock Screener and Watchlist. By enabling screener compatibility, the script automatically calculates:
ocRet = (close - open) / open * 100
for each bar and plots the result. Once published (as a public or protected script), you can add the OC損益率 (%) column in your Watchlist or Stock Screener 2.0 → Columns → Custom, allowing you to sort, filter, and export symbols based on their intraday return.
ocRet = (close - open) / open * 100
for each bar and plots the result. Once published (as a public or protected script), you can add the OC損益率 (%) column in your Watchlist or Stock Screener 2.0 → Columns → Custom, allowing you to sort, filter, and export symbols based on their intraday return.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.