I have been testing on the Empirical Mode Decomposition you have kindly provided for us in the downloads section. I like what I see, and have a question on use for strategy building.
On occasion during backtesting, (about 2% of the time), going short will cause an 'object reference' error, but for longs this never happens. I isolated the lines to when the code is verifying that the MainPlot is falling ie
(MainPlot[0] < MainPlot[1] && MainPlot[0]< LowerBand[0])
removing that code or replacing it with
(MainPlot[0] > MainPlot[1] && MainPlot[0] > LowerBand[0])
stops the errors, so I am (very much only) speculating that it has something to do with the floating point math and negative values (not my area of expertise). My request is some code update to allow a normalization of the values for the indicator output, such that they are all positive. My speculation is that would resolve the issue.
Of course, other improvements suggestions or fixes are appreciated. I am using NT7rc1, and the indicator was built in NT6.5.
Thanks in advance,
Jon
Comment