MT4 code conversion to vb.net

 

Hi,

I am try to convert Turbo_JMA to vb.net code , it works but results differ..

NOTE: USING Yahoo SPY data in both cases and same time length of 14.

my vb.net code..in text file

I get the blue line in image1 (vb.net code above), yet it should look like image2 (MT4 code attached). You can see that the average line does not hug price that well in the image1.

I am sure my vb.net code cant be that far away from MT4 code, but whats missing.

NOTE: The array in the vb.net goes from the left hand side of chart to the right hand side. The count is a positive one (0,1,2,3 etc). MT4 does the same thing but the count is negative one ( ie 4000, 3999, 3998, etc)

Any ideas,,,

All you need is attached below..data and code, please help !

Software used:

vb.net MS VS 2005

MT4 latest version

NOTE: Next post has all the files in a ZIP files with read me instructions

Files:
turbo_jmav1.jpg  43 kb
turbo_jma.mq4  11 kb
spy.txt  205 kb
 

Zip file, with more info

Files:
 

Work done, via website : GetAFreeLancer.com

It was a real beast !