I have an indicator with the following line of code that works fine:
DrawRay("hTrade" + ctr.ToString(), false, 1, Low[1] - 1 * TickSize, 1, 0.0, Color.DarkGreen, DashStyle.Solid, 3);
It draws a vertical solid ray from one ticksize below the low of the previous bar down through 0.0. It works fine and fast.
If all I do is change the DashStyle to dot or dash it will eventually draw the dotted or dashed line but very slowly. It slows down my whole computer and all 4 cores keep running at a high % even after the lines are drawn. An example of the offending code (exactly the same except for different DashStyle) is:
DrawRay("hTrade" + ctr.ToString(), false, 1, Low[1] - 1 * TickSize, 1, 0.0, Color.DarkGreen, DashStyle.Dot, 3);
I'm also seeing the same thing with DrawLine(). DashStyle.Solid works great. DashStyle Dot or Dash slows down my machine and continues to load all 4 cores.
Am I missing something obvious?
Comment