OPEN-SOURCE SCRIPT

Black Red Candles/Sticks/Bars

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

Pernyataan Penyangkalan

Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.