OPEN-SOURCE SCRIPT

Candle Body Percentage Indicator

By barruda
The Candle Body Percentage Indicator is a custom TradingView script designed to display the percentage of the candle's body relative to the full candle length for each bar on the chart. This indicator helps traders quickly assess the strength of price movements by comparing the body (the range between the open and close prices) to the total range of the candle (the range between the high and low prices).

Features:

Body Length Calculation: The indicator calculates the absolute difference between the open and close prices to determine the body length of the candle.

Full Length Calculation: It also calculates the total length of the candle by finding the difference between the high and low prices.

Body Percentage Calculation: The body length is then divided by the full length of the candle and multiplied by 100 to get the body percentage.

Label Display: For each candle, the indicator places a label above the high of the candle showing the body percentage. The label includes the percentage value and a "%" sign for clarity.
Candlestick analysisChart patternsTrend Analysis

نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الرمز في المنشور يخضع لقواعد‎‎قوانين الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟

إخلاء المسؤولية