I had the idea of creating an indicator which draws horizontal lines above and below price, each a set distance away. So I would do the following:
DrawHorizontalLine("highpricelimit",Close[0] * 1.0035,
Color.FromArgb(1,1,1),HorizLineStyle,line_Size);
DrawHorizontalLine("lowpricelimit",Close[0] * 0.9965,
Color.FromArgb(1,1,1),HorizLineStyle,line_Size);
This would draw two horizontal lines just above and below the price a set % away from it. (My background is black and the lines are colored to be almost black, so they are invisible.)
However, this doesn't seem to work as when the price approaches the top or bottom edge, the horizontal lines just disappear off the chart. (I thought that it would maintain them.)
Am I doing something wrong, or is there another way to do this?

Comment