I have some questions about how to create a "TextLayout" in "State.DataLoaded".
Should I dispose the "TextLayout" somewhere?
Is there any performance gain in creating it there since there will be no creation and recreation of if?
Is this bad practice?
The only example I found doing this is the "SymbolWatermark" indicator:
https://ninjatraderecosystem.com/use...bol-watermark/
The author don't dispose his "TextLayout".
In the indicator I'm creating, I will not change the string in the "TextLayout" after creation.

Comment