OPEN-SOURCE SCRIPT

Black Red Candles/Sticks/Bars

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

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.