It is a simple oscillator with overbought/oversold lines.
I started from scratch in NT 8 and began adding the code.
It began crashing when I had the combination of a custom data series being passed into an EMA indicator AND the two overbought/oversold lines.
To try and isolate the problem, I created an indicator that only has the custom data series being passed into an EMA indicator (see GTest.cs).
It works.
Then I created an indicator that just had the oscillator plot and lines (see GTestLine.cs).
It works.
When I combine the two (see GTestWithLines) it crashes NT 8 when loading on the chart.
It regularly produced the same exception. (See attached trace file).
In addition to the crash itself, the other problem is that I have try/catch surrounding all my code and it never catches the exception.
Why is that?
Can anybody shed some light on this?
Again, The offending code is: GTestWithLines.cs
Comment