Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1129

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Why do you have to make such a big deal out of yourself? What's the problem with assigning the buffers to be displayed first and then the auxiliary buffers?
A peculiarity of the algorithm, the auxiliary buffers are always a fixed number, while the number of buffers to be displayed varies. Please answer the question from the previous post about how to specify it all correctly?
For DRAW_HISTOGRAM2 3 buffers are specified and the sequence is mandatory, 2 value buffers first followed by a colour buffer. But there is a difference between DRAW_HISTOGRAM and DRAW_HISTOGRAM2 in that DRAW_HISTOGRAM is drawn from zero to the value in the buffer, while DRAW_HISTOGRAM2 is drawn from the value of one buffer to the value of another buffer.
From the description of DRAW_HISTOGRAM2 at https://www.mql5.com/ru/docs/customind/indicators_examples/draw_histogram2 :
"The number of buffers required to build DRAW_HISTOGRAM2 is 2."
Where would the third buffer come from then? And in the example in the same link there are only two buffers, but it is not specified whether the colours can be interleaved in the same way as with a normal DRAW_HISTOGRA?A peculiarity of the algorithm, the auxiliary buffers are always a fixed number, while the number of mapped buffers varies. Please answer the question from the previous post about how to specify it all correctly?
From the description of DRAW_HISTOGRAM2 at https://www.mql5.com/ru/docs/customind/indicators_examples/draw_histogram2 :
"The number of buffers required to build DRAW_HISTOGRAM2 is 2."
Where would the third buffer come from then? And in the example in the same link there are only two buffers, but it is not specified whether the colours can be interleaved in the same way as with a normal DRAW_HISTOGRA?Yes, sorry for my lack of attention. I meant DRAW_COLOR_HISTOGRAM2 and DRAW_COLOR_HISTOGRAM
A peculiarity of the algorithm, the auxiliary buffers are always a fixed number and the displayed buffers are a different number. Please answer the question from the previous post about how to specify all this correctly?
I've never made fun of myself like this before. If you're willing, experiment.
How do I set the colours correctly with PlotIndexSetInteger()?
When I set
#property indicator_color3 clrRed,clrGreen
the colours are set correctly, but when I use the
PlotIndexSetInteger(2,PLOT_LINE_COLOR,0,clrRed);
PlotIndexSetInteger(2,PLOT_LINE_COLOR,1,clrGreen);
then the first colour of the line is red, but the second (and subsequent ones) are black (by default) instead of green for some reason.
How do I set the colours correctly with PlotIndexSetInteger()?
When I set
#property indicator_color3 clrRed,clrGreen
the colours are set correctly, but when I use the
PlotIndexSetInteger(2,PLOT_LINE_COLOR,0,clrRed);
PlotIndexSetInteger(2,PLOT_LINE_COLOR,1,clrGreen);
then the first colour of the line is red, but the second is black (by default) instead of green for some reason.
Why put a modifier in there?
Why put a modifier in there?
Which one, where? I looked at the example in MQL5 documentation and did the same. Write it down, how is it correct?
Which one, where? I looked at the example in the MQL5 documentation and did the same. Write it down, how is it correct?
Which one, where? I looked at the example in MQL5 documentation and did the same. How to do it right?
Looked it up
and did this.
And it says in the documentation
Show all code for initialisation of indicator buffers.
Something like this
Looked it up
and did this.
And there, in the documentation it says
This means that the modifier should be if different colours of basement indicator levels, fibo levels and something similar are assignedExactly my case.
Here's a piece of the example for DRAW_COLOR_HISTOGRAM2 in the manual:
Here plot_colors = 8, cols[] - array with different colours. But terminal does not perceive any colours except for the first one.