- 4TF Bars: Indicators and Ideas
- PostMessageA(Parent(), WM_COMMAND, 33042, 0);
- Charles Dow's theory
If you're talking about DRAW_COLOR_ARROW and DRAW_COLOR_LINE, respectively, the ordering of the buffers in each color changing indicator must follow the documentation. Therefore, multiple color changing buffers in one indicator is not supported.
Having said that, it is possible to declare separate regular indicator buffers, each having a separate static color for each segment of an indicator, and each buffer is conditionally drawn. In this way, you can combine many more color changing drawings in one indicator. Here is a histogram indicator coded in that way:
Ryan L Johnson, 2025.04.29 19:52
This indicator calls 3 other subwindow indicators. All files go in your Indicators folder.Each DRAW_COLOR_* plot needs its own color index buffer right after its data buffer, they can't share one. But you can have several color plots in the same indicator, that works fine. Just write the same index into both color buffers:
int clr = (up ? 0 : 1); ArrowColor[i] = clr; LineColor[i] = clr;
And set the same colors for both plots with PlotIndexSetInteger(..., PLOT_LINE_COLOR, ...).
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use