Change Color Of Specific Bar(Candle)
Posted: Wed Mar 24, 2021 3:55 pm
Hi Guys,
Thank you so much for creating such a beautiful forum.
I am new to pine script and have a question for everyone.
1) I am looking to find out some specific patterns in the candle and based on the that I want to change the color or the bar candle. We can change the color of the bar candle using the defined method(barcolor) but how we can target to specific candle ? To make it more simple
Example
Candles
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
These are 20 Candle and I want to change color on some specific patter which I can write as I am programmer but unable to find a way to change color for specific candle Example
Scenario 1 - Candle 18 Color Black 17 white and 16 Red ........................Candle 10 color black 9 white . 8 white and 7 Red.
In the above example both are similar patterns ( BLACK - WHITE -RED) only the difference is white candle can be multiple. Looking forward for a solution.
Thanks
Thank you so much for creating such a beautiful forum.
I am new to pine script and have a question for everyone.
1) I am looking to find out some specific patterns in the candle and based on the that I want to change the color or the bar candle. We can change the color of the bar candle using the defined method(barcolor) but how we can target to specific candle ? To make it more simple
Example
Candles
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
These are 20 Candle and I want to change color on some specific patter which I can write as I am programmer but unable to find a way to change color for specific candle Example
Scenario 1 - Candle 18 Color Black 17 white and 16 Red ........................Candle 10 color black 9 white . 8 white and 7 Red.
In the above example both are similar patterns ( BLACK - WHITE -RED) only the difference is white candle can be multiple. Looking forward for a solution.
Thanks