Hi all, I am currently coding an indicator which requires the baseline of the histogram to draw from 50 instead of 0. In this case a value of 30 would be a bar drawn down from 50 to 30, instead of from 0 up to 30. Is this possible to do in MQL4?
I have been looking for a few days before asking, but couldn't find how to do it. I have attached 2 example images, the first shows how the indicator draws the bars with the baseline at 0 and the second image is how he bars should look if they were drawn correctly. I achieved this by subtracting 50 from the actual values to draw the bars correctly, but they are shifted down by 50. The bars should be drawn as in the second image, but around the 50 line.
Many thanks in advance
Apologies for posting in the wrong section, could a mod possibly move it?
Thanks for the advice and example, I will try it in my indicator.