OPEN-SOURCE SCRIPT

Candle Percentage

1 069
This script calculates the percentage movement of the candle body from open to close and displays it as a label on the chart. The label color changes based on the candle's direction:

Green for bullish (price closes higher than it opened),

Red for bearish (price closes lower than it opened).

The script also allows you to select the label size, with the following options:

Tiny (very small text)

Small (small text)

Normal (default text size)

Large (large text)

Huge (giant text)

By default, the label size is set to Normal.

The percentage is calculated using the formula:

(Body Size / Open Price) * 100

This is helpful for traders who want to quickly assess the magnitude of price movement within each candle and analyze market sentiment based on the size of the body.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.