I have four different conditions and I colored my candle according to the conditions. My question is, how do I change these code so that when Open > Close the candle Hollow Color Coded, else the candle is Filled Color Coded. Here is my code:
@awilson@sunarsusanto I interpreted your request as wanting to have "hollow" candles vs having "filled" candles ? I've never tried this but think that if that is the case maybe you need to use SetBarFillColor and for example if you want a "hollow" candle set the FillColor to match your background.
SetBarFillColor( IIf( Open > Close, colorblack, colorBlue ) ); // use your condition colors instead of colorBlue
Plot( C, "Price", IIf( C > O, colorGreen, colorRed ), styleCandle );
Sorry for the late reply because I was on vacation. I fixed my code to follow your suggestion, but I still don’t get it how to set up Hollow Color for Close > Open , else Solid Color if Close < Open