question about MQL4 multi histograms overlap.

 

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?

 
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>

 

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

 
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. :)

Reason: