OPEN-SOURCE SCRIPT

Candle Percentage

597
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.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.