https://docs.mql4.com/constants/chartconstants/charts_samples#chart_color_candle_bull
The functionality you are using in your code will affect the entire chart, both on MT4 and MT5. Neither on MT4 nor MT5 can you control candle's individual colours.
You can however, "draw" over a candle with your own colour scheme, using Graphical Objects, or "Histogram" indicator plot, and on MT5 only, you can also use the "Candle" indicator plot.
The functionality you are using in your code will affect the entire chart, both on MT4 and MT5. Neither on MT4 nor MT5 can you control candle's individual colours.
You can however, "draw" over a candle with your own colour scheme, using Graphical Objects, or "Histogram" indicator plot, and on MT5 only, you can also use the "Candle" indicator plot.
Thanks,
I didn't consider overlaying a Graphical Object over top of the chart candle. That's a good idea thanks
If I understand your response, I assume this cannot be achieve by creating an indicator to paint individual candles either except as you described above ?
Please confirm
Thanks
You can in a way. It depends on how "creative" you can be with your coding. That is how most Heikin Ashi indicators work.
The following code uses "DRAW_HISTOGRAM" on MT4, and "DRAW_COLOR_CANDLES" on MT5, to do just that ...
Dōteki Heikin Ashi (Dynamic Average Foot/Bar)
Fernando Carreiro, 2018.10.15 17:08
A dynamic version of the standard Heikin Ashi indicator (code compatible with both MQL4 or MQL5).
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
My attempt here:
Please advise, thanks
https://docs.mql4.com/constants/chartconstants/charts_samples#chart_color_candle_bull