Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
If you need help with your code, then please show your earnest attempt, explaining what exactly you are having difficulty with.
If you don't know how to code it, then please consider the Freelance section — https://www.mql5.com/en/job
EDIT: There are examples in the CodeBase on how to change the candle colours according to different conditions. Here are some, but please search 🔍 for more.
Change the color of the candles
Kourosh Davallou, 2012.12.06 13:12
The indicator that allows modifying color of the candles.MACD Crossing the zero level (color candles)
Vladimir Karputov, 2018.01.22 09:20
Color candlesticks display areas, in which the MACD indicator crosses the zero line.Decision Colored Candles - MT5
Mohamed Hassan Mohamed Hassan Alsherbiny, 2024.07.22 19:29
higher confidence to get into trade
That is incorrect. You cannot programmatically change the colour of individual default candles. You can only "overlay" custom candles.
You can however change the global colours of ALL the default candles, but that is not what the OP is requesting.
That is incorrect. You cannot programmatically change the colour of individual default candles. You can only "overlay" custom candles.
You can however change the global colours of ALL the default candles, but that is not what the OP is requesting.
oh yes, apologies
@OP I think it's wise to use the article section https://www.mql5.com/en/articles/7815
People went to the trouble of writing these articles, you may as well go through them, and there is a lot of good content there

- www.mql5.com
Hi
I agree with William Roeder – it’s a good solution to work on some available code which is working correctly and change them to your idea.
This way you can simply change conditions to detect super trend values and color candles just like the heiken ashi is working.
Have a nice day👍📊

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello, everyone.
I have a supertrend indicator.
I want to set candle color according to supertrend's trend like attached image.
could you help me?
Thanks.