Download MetaTrader 5

question about MQL4 multi histograms overlap.

To add comments, please log in or register
Farzin Sadeghi
4290
Farzin Sadeghi  

Hi, Can we draw multiple historgrams in one subwindow of an indicator and then send one of them to back of the other one?

how can i send one histogram to back of the other?

Abdullah Alrai
23964
Abdullah Alrai  
Farzin Sadeghi:

Hi, Can we draw multiple historgrams in one subwindow of an indicator and then send one of them to back of the other one?

how can i send one histogram to back of the other?


give 0 value to what you want to hide and let others have value i think it will be good solution>

whroeder1
16306
whroeder1  

In the chart window, histograms are drawn via pairs of buffers. If the first is higher than the second, it uses the first's color.

In separate window, histograms are drawn from the buffer value to zero. They are drawn from the first to the last. Of you want one to go the back, it must be the first buffer.

See also
          How to Draw Cnadle chart in indicator_separate_window ? (XDXD) - MQL4 and MetaTrader 4 - MQL4 programming forum

Farzin Sadeghi
4290
Farzin Sadeghi  
whroeder1:

In the chart window, histograms are drawn via pairs of buffers. If the first is higher than the second, it uses the first's color.

In separate window, histograms are drawn from the buffer value to zero. They are drawn from the first to the last. Of you want one to go the back, it must be the first buffer.

See also
          How to Draw Cnadle chart in indicator_separate_window ? (XDXD) - MQL4 and MetaTrader 4 - MQL4 programming forum


Thanks, It worked.  It was in a separate sub window, I switched the SetIndexBuffer number order, and it went to the back of the other histogram. :)

To add comments, please log in or register