View Single Post
  #1 (permalink)  
Old 06-08-2009, 04:54 AM
icm63 icm63 is offline
Member
 
Join Date: Feb 2006
Posts: 63
icm63 is on a distinguished road
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.

turbo_jmav1.jpg
turbo_jma V2.jpg

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
Attached Files
File Type: mq4 Turbo_JMA.mq4 (10.9 KB, 14 views)
File Type: txt vbnetcode_v2.txt (15.5 KB, 15 views)
File Type: txt SPY.txt (204.3 KB, 6 views)

Last edited by icm63; 06-09-2009 at 07:14 AM.
Reply With Quote