I have an indicator that draws multiple lines, some horizontal and some not. Over 180 lines to be more specific. It works perfectly BUT I can't use it because it just kills my machine. I use drawline as here for the horizontals.
DrawLine("H1a" + CurrentBar + i, 1, startPrice, 0, startPrice, Color.Yellow);
and a similar technique to get angled lines. Basically I am drawing multiple line segments on each new bar.
Is there a more efficient way of doing this ? For example, would using many many PLOTS be a better(more efficient way) ? Or is there another / better way of drawing the lines ?
This is not a question of simple tuning and looking at Ninja performance tips I believe. I think I am either doing it a very kludgy way or I am asking Ninja to perform beyond what it is capable of right now.
If I had "write ahead" feature I could do this once at start of day for example and not have to update anything real time - will this feature be in V7 ?
thanks
Comment