It turns out this was nothing to do with my code but an issue with AddChartIndicator() which sometimes crashes on the Simulated Data Feed. I've attached a strategy which reproduces the issue.
Run the attached strategy from a chart connected to the Simulated Data Feed - I'm using ES 12-18 / 5 Range Bars but I don't think the Instrument/timeframe are significant
Go to the Strategies tab on the control center and enable the strategy. If it doesn't freeze immediately, enable and disable it a few times quickly.
Comment