Hi guys
First, thanks all for making various versions of JMA available.
I attempted to port this indicator to WealthLab (WLScript). I converted each line very carefully to WLScript. I made sure that with the exception of syntax, nothing else was changed. Unfortunately the JMA drops to zero from the latest bar to latest bar - 30. Other values seem to be correct. I suspect there is an inversion error somewhere. However from reading Ravique’s and Sccz97’s .Net code, I did not get the impression that the array was somehow reversed.
Much like the versions of your code, in the WL version, the loops are backward. I’m not exactly sure why my WL version behaves this way. I went over the code with the proverbial fine tooth comb and sans syntax, it is exact the same as your versions of the JMA - at least as far as I can see… Did you guys experience such a behavior in your intial stages of development?
I apologize if this post is bit off-topic and not completely related to MT.
Thanks very much in advance.