Attention Ravique and Sccz97: JMA
  #1 (permalink)  
Old 09-30-2005, 10:35 PM
Freshman
 
Join Date: Sep 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
svrz is on a distinguished road
Default Attention Ravique and Sccz97: JMA

Hi guys

First, thanks to both of you and Scorpion 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.
Reply With Quote
  #2 (permalink)  
Old 09-30-2005, 11:47 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,922
Thanks: 97
Thanked 361 Times in 147 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

I've never had this issue with JMA before, but it seems buggy to me somehow.

Anyway, compare the output values from WL JMA with the MT JMA. If they differ then it means that you have bugs in your WL code. I think ML and MQL language is just incompatible. The arrays don't work the same way.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
  #3 (permalink)  
Old 10-01-2005, 12:26 AM
Freshman
 
Join Date: Sep 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
svrz is on a distinguished road
Default

Quote:
Originally Posted by scorpion
I've never had this issue with JMA before, but it seems buggy to me somehow.

Anyway, compare the output values from WL JMA with the MT JMA. If they differ then it means that you have bugs in your WL code. I think ML and MQL language is just incompatible. The arrays don't work the same way.
Hi Scorpion

You may be right in regards to incompatibality of arrays between MQL and WLScript. In WLScript, the first bar in the array is the earliest bar in the series and its number is naturally zero. Obviously the last bar in the array is the latest time stamped bar. I assumed that MQL arrays are created the same way. Perhaps I was wrong.

Thanks for your response.
Reply With Quote
  #4 (permalink)  
Old 10-01-2005, 09:48 AM
Ravique's Avatar
Super Moderator
 
Join Date: Sep 2004
Posts: 404
Thanks: 2
Thanked 1 Time in 1 Post
Ravique is a name known to allRavique is a name known to allRavique is a name known to allRavique is a name known to allRavique is a name known to allRavique is a name known to all
Send a message via Yahoo to Ravique
Default

There is a big discussian on JMA going on in the moneytec forum, I did not read the whole thing, but somewhere i remember they are righting about soom loop problems, or values changing in historr, or whatever like this.Think if you are interested you should run through this post on moneytec

http://www.strategybuilderfx.com/for...ad.php?t=15344

http://www.strategybuilderfx.com/for...ad.php?t=15097

I am a 0 in all what is related to coding, so I can`t really help you out myself. Scorp is the code guru here =D
__________________
Regards,
Ravique
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:04 AM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now