Is this possible?
I'm trying to code an indicator that can change the colour of a particular candlestick (e/g candle stick at position 0 = current candle) ONLY.
I tried using the chartsetinterger function but it changed the color of all the candlesticks in the charts (There is no option to specify the exact candle you want to change the colour or maybe I am missing something)
I looked here in the forum for more ideas and I found on where I can use a rectangle over the candle. Okay? That didn't turn out so well. Since I used time for the rectangle co-ordinates as time[0] and time[1] respectively.
Here, I'll show you the codes. If you can help, Please do. Thank you
ObjectCreate(ChartID(), name, OBJ_RECTANGLE, 0, time1 - (PeriodSeconds()/2),price1,time1 + (PeriodSeconds()/2),price2);
I'm trying to code an indicator that can change the colour of a particular candlestick (e/g candle stick at position 0 = current candle) ONLY.
I tried using the chartsetinterger function but it changed the color of all the candlesticks in the charts (There is no option to specify the exact candle you want to change the colour or maybe I am missing something)
I looked here in the forum for more ideas and I found on where I can use a rectangle over the candle. Okay? That didn't turn out so well. Since I used time for the rectangle co-ordinates as time[0] and time[1] respectively.
Here, I'll show you the codes. If you can help, Please do. Thank you