OPEN-SOURCE SCRIPT

Black Red Candles/Sticks/Bars

202
This script is a Pine Script™ v5 indicator designed to overlay red candles with custom-colored candles that have black bodies, wicks, and borders. It works by:

Checking if the current candle is "red" (i.e. when the close is lower than the open).
Using the plotcandle() function to replot only those red candles.
Setting the fill, wick, and border colors to black for the replotted candles.
Leaving non-red candles unaltered by plotting them as na.
In effect, red candles on the chart are replaced with a consistent black-colored representation, providing a unique visual style. Users may also disable the default candles for a cleaner display.

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.