OPEN-SOURCE SCRIPT

Black Red Candles/Sticks/Bars

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

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.