Download MetaTrader 5

How to draw disconnected lines?

To add comments, please log in or register
ale
68
ale  

I am creating an indicator where the values change dramatically then the day changes. 

The problem is that the lines drawn by MT4 with the values in the indicator buffers connect all the points, so the last value of day A is connected to the first value of day B and the result is ugly.

Is it possible to stop MT4 from drawing this ugly connection line from a certain point to another?

whroeder1
16093
whroeder1  
Lines connect, don't use lines. Use
   SetIndexStyle(0,DRAW_ARROW);
   SetIndexArrow(0,159);
like Parabolic.
ale
68
ale  
Nice trick, thank you.
To add comments, please log in or register