Support wrote:
Hi,
you can correct your indicator to have output as you described. To eliminate gaps between lines use the
OutputParameterInfo.setGapAtNaN(). To eliminate a line falling down to 0, use the Double.NaN instead of 0.
Thanks for the info.
Note: OutputParameterInfo.setGapAtNaN() will not eliminate gaps. It will draw a gap when the output is NaN.
This is how it looks:

The problem is that for the line to be draw there must be two points. Since for the first candle that changes color there is only one point for that output that line won't be drawn. If I set OutputParameterInfo.DrawingStyle.DOTS it will draw correctly but I would like to know if there is a workaround for the LINE?