I have a protected assembly that goes out to our customers. We found a problem in testing where a particular indicator freezes when we apply a horizontal line and then open and close the "Drawing Object" window for that horizontal line (using the OK button to close, not Cancel).
This does not happen on my development PC where I run the source, unprotected version of this indicator.
To replicate the problem:
- Import the attached ProtectTest.zip NinjaScript file.
- Apply the indicator "Protected Sample change font" to a tick chart.
- Observe how the indicator updates the High/Low numbers at the close of each bar.
- Add a horizontal line to the chart.
- Double click on the horizontal line to open the "Drawing Object" window.
- Click OK to close the "Drawing Object" window.
- Observe how the indicator no longer updates at the close of each bar.
If I open the Indicators window and close it with OK the indicator resumes normal functioning.
I used a tick chart for testing but the same issue happens on a minute chart.
This protected indicator is the same as your "Sample change font" indicator. I simply copied and renamed it and then created a protected assembly for it. I get the problem when I run this on a different computer, my beta tester has the same issue.
You can also add the "Sample change font" from your forums to the chart. Now when you double click the horizontal line and then close it you'll notice that it's only the protected version that freezes, not the source version.
I also attach a protected version of the default Tick Counter and you'll notice that it experiences the same problem. Seems the problem may have something to do with drawing text objects.
I hope you can find a fix for this.
Thanks and regards,
Will.
Comment