- Time Boxes - Indicator...
- indicator/script(?) that marks a specific bar size
- Negative Indices
Yes it is possible. Simply analyse the time of a bar and set its colour according to your rules.
The following two code examples from the CodeBase, draw candles for Heikin Ashi, but you can change it to draw normal candles and have as many colours as you wish.
Both use the "DRAW_COLOR_CANDLES" plot style to accomplish this
Dōteki Heikin Ashi (Dynamic Average Foot/Bar)
Fernando Carreiro, 2018.10.15 17:33
A dynamic version of the standard Heikin Ashi indicator (code compatible with both MQL4 or MQL5).Extended Heikin Ashi Indicator
Dominik Christian Egert, 2021.04.23 21:35
Extended version of the original Heikin Ashi indicator.

- www.mql5.com
Yes it is possible. Simply analyse the time of a bar and set its colour according to your rules.
The following two code examples from the CodeBase, draw candles for Heikin Ashi, but you can change it to draw normal candles and have as many colours as you wish.
Both use the "DRAW_COLOR_CANDLES" plot style to accomplish this
You are welcome| However, it seems there is another example in the codebase which is closer to what you want ...
Scriptor, 2018.11.20 12:44
Specified time range candles indicator
You are welcome| However, it seems there is another example in the codebase which is closer to what you want ...
Yes these examples are in line with what I want. But I'd also like to see a snippet of the code. You've definitely shown me that it's possible which was something I was questioning after countless research with trail and error. I don't know how codebase works, like is there a button to get the code? Seeing a snippet of code will save me a lot of sleep
But the CodeBase is exactly that, complete examples of code. All of the examples I quoted provide the full source code.
Use a desktop browser, not a mobile browser.
- Click on the "view" (next to the filename) to see them in the browser window or ...
- Click on the filename to download it, or ...
- Click on the "Download as ZIP" to download an archive of all the files when there are more than one.
But the CodeBase is exactly that, complete examples of code. All of the examples I quoted provide the full source code.
Use a desktop browser, not a mobile browser.
- Click on the "view" (next to the filename) to see them in the browser window or ...
- Click on the filename to download it, or ...
- Click on the "Download as ZIP" to download an archive of all the files when there are more than one.
Silly me. On iPad the links weren't showing. I'm on desktop now and everything shows up. Thanks again. You've got no idea how immensely valuable this info is for me. I greatly appreciate it.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use