I have an indicator that plots 10-30 'FixedText' lines down the side of the screen. It does this on every bar. Sometimes more if mkt very active. I find that in my nijascript utilisation monitor, 'FixedText' 'ChartObject' is now one of the highest (the second) utilisation. I take care only to call Draw.TextFixed to update the objects when they list has changed (rather than blindly write it every bar, etc.). But, it seems a performance hog. I would use onrender, but the indicator already has a plot that uses onredner and as you cannot plot in the chart and indicator panes...
So, the question is, are there any performance considerations for using Draw.TextFixed? The alternative is to separate out the draw functionality into another indicator and figure some way of them sharing the data, but this seems complex! I realised fixedtext objects have events etc tied to them. Not sure if there are undocumented ways to turn off things like this to increase performance? Any tips would be good. Perhaps updating the text/colours on the object would be faster than calling Draw.TextFixed with the same tag and overwriting, for instance?
Thanks.

Comment