I'm writing one custom indicator with one line crossing 0 lines.
I want to fill between line and 0 value. Green color if upper to 0 and Red color on down to 0.
If i use only one color to fill, the fill it's ok and fine, the line 0 crossing it's just of one pixel.
But, if i use two colors, it's allways outsiding the plot value, because it's filling only from/to the middle of current bar and not full of current bar.
In the first attached file, you can view black crossing it's ok, but in the first circle the red fill it's not fullfilled in the right, and the second fill it's the same in the right and outside in the left.
The code is:
DrawRegion("Coloured "+CurrentBar,0,1, PlotMainDown, 0,ColorDown, ColorDown, 10);
DrawRegion("Coloured "+CurrentBar,-1,1, PlotMainDown, 0,ColorDown, ColorDown, 10);
¿Any idea?
Thank you in advance

Comment