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
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.