This may be more a C# question, but since the code is from you I have to ask.
I'm using a variant of the SampleCustomEvents script for NT7 to have a timer print to the output window every 5 seconds if something is true. It works as expected unless run it for a long time. I get this error:
**NT** Error on triggering custom event for strategy 'MyStrategy/9951653031314b6f968db4264edd1653': More than 100 subsequent user events
I can get that error to happen faster if I change the timer interval to a lower figure.
Any idea how I can prevent that error and how I can code around it if it happens again? Try/catch doesn't seem to be "catching" it.
Thanks!
Comment