I'm using the DrawTextFixed() functions to print 5 minute volume numbers on my chart, the string to be printed is about 60 characters in length. I've noticed that during peak activity periods, when volume is changing rapidly, that my chart freezes or is very slow to respond.
When I reduce the string length the problem is reduced, but thats not the best solution. Also, I know that its the string printing functions, not the calculations or some other part of the indicator, because I have tested it whilst removing the printing and leaving everything else as is.
The indicator reprints on every volume update, which I guess means every tick. But why is it that the draw text functions affect performance so much, whereas other functions that plot, and have more complex calculations, do not.
I thought about changing the output so that its on a, say, 1 second timer, but this is also not an ideal solution.
Any suggestions?
Thanks,
Will.
Comment