PROTECTED SOURCE SCRIPT
Upper Shadow Percentage - Latest Candle

The objective of this script is to automatically calculate the upper shadow % of the latest candle in any timeframe i.e. Daily, Weekly, Monthly etc.
Please note that: This indicator shows upper shadow percent only when the following 2 conditions are satisfied:
1. The candle is latest
2. The candle's Close Price (or, Current Price in case of Market Open) > Open Price
Formula Used:
Upper Shadow Percentage = (High-Close)/(High-Low)*100
When this indicator is added to the chart, it shows a % value which represents the upper shadow % in either a Green background or Red background.
Green background shows up when the upper shadow % is less than the user provided value in the "Upper Shadow Percentage Threshold" field in the settings > Inputs tab, otherwise it shows up in Red background. Please note that the default Upper Shadow Percentage Threshold is set to be 15. User can go to Settings to change it as per their needs.
Example of how it appears in the chart

Please note that: This indicator shows upper shadow percent only when the following 2 conditions are satisfied:
1. The candle is latest
2. The candle's Close Price (or, Current Price in case of Market Open) > Open Price
Formula Used:
Upper Shadow Percentage = (High-Close)/(High-Low)*100
When this indicator is added to the chart, it shows a % value which represents the upper shadow % in either a Green background or Red background.
Green background shows up when the upper shadow % is less than the user provided value in the "Upper Shadow Percentage Threshold" field in the settings > Inputs tab, otherwise it shows up in Red background. Please note that the default Upper Shadow Percentage Threshold is set to be 15. User can go to Settings to change it as per their needs.
Example of how it appears in the chart
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。