identify buffer in mt5
-

Hello-
I have placed a screenshot to explain my problem:
As we see in the image above,
I have an indicator for mt5.
we observe that buffer 0, you have three colors.
I would be interested to know when it changes color in my bar 2 (color change from 3 to 2).
in mt4, they did this with as many buffers as colors used. and the color change was identified very well, because when it disappeared, the value of the buffer was placed in white, and when it appeared it returned to values.
But in mt5 you can't.
Can someone tell me how I can determine the color change of the indicator?
Thank you -
@cdt trace the buffers values. find more details from below.
-
@vonmunchy Hello. thanks for answering.
In the link you give me, I can't find the solution. only speak for mt4.
Let me explain, tracking the buffet is easy on mt4. We imagine an average that changes color, when it increases in value it is blue, and if its value decreases, it is red. This indicator has three buffets:
0- the value of the mean.
1- the value of the mean if it is blue = its values ​​** increase . and matches buffet 0.
2- the value of the mean if it is red = its values ​​ decrease **. and matches buffet 0.
I choose the buffe 1 in the indicator box appears, when I look for an uptrend.
I choose the buffe 2 in the indicator box appears, when I look for a downtrend.
easy.
but in mt5 I only have a buffet:
0 value of the mean, (regardless of what color the mean takes).

in the example in the image above:
0-upper band
1: lower band
2: Average value. (2 colors are configured, but the output buffet is the same)
I DON'T KNOW HOW TO TRACE IT. with the condition indicator appears, indicator disappearsIt is not an insurmountable problem, since we can compare the value of the mean of candle 1, with the value of candle 3.
if (value n) - (value 1)> 0 is bearish,
if (value n) - (value 1) <0 is bullish.but I put another example of another indicator, an oscillator:

Same buffet, with three colors, although we only see two (purple and green)
In this indicator, the condition (value of n- value of 1)> 0 bearish, or bicebersa, is not valid. Well, whether the color is green or purple, it can be bullish or bearish.
How do I track the buffet here?
Thank you -
@cdt tracing buffers is the same in mt4 and mt5. If you have the mql file, open it and you will see several buffers with some appearing as "Indicator colors and indicator values". Just because 3 buffers appear there doesn't mean the indicator has only 3. Definitely more than that judging from the ss above.
If that's too complex for you. Go to indicator section as you showed above. Click add buffers, add around 7 more buffers. So now you have total of 10 buffers. Add a comment block. Select each buffer and give it the buffer name.
Example. Buffer 0 (indicator buffer 0). Buffer 1 (indicator buffer 1).
When the comment runs, you will see the values for each buffer separately
-
@vonmunchy
Thank you very much vonmunchy.Indeed this is too complex for me.
I give you an attachment to share the indicator.
Could you please look at it, and tell me step by step how to solve it.https://drive.google.com/file/d/1N2KOy4PQUBt1Wj0zuoH8SW9jE1XW8E2v/view?usp=sharing
Thank you
-
@cdt this is what i mean. And its easier if you have the mql file.
https://fxdreema.com/shared/VvHWw0e5c

-
@vonmunchy Thanks,
Indeed, a buffer 2 appears, which changes from 1 to 2, depending on the color of the indicator.
Thank you so much