Forex
Google

Go Back   Forex Trading > Trading systems > Ema Cross
Forex Forum FAQ Members List Calendar Mark Forums Read


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

 
 
LinkBack Thread Tools
 
Old 04-27-2008, 05:23 PM
Lou G Lou G is offline
Junior Member
 
Join Date: Jun 2006
Posts: 15
Lou G is on a distinguished road
Talking EMA Predictive 2

I have many years of programming experience but not much in MQL4. The attached indicator seems very interesting but has what appear to be a few mistakes in the code - in a couple of places it seems to be referencing arrays using an index of -1 which I believe would result in using VERY old data.

Can one of you very excellent programmers correct this indicator (or tell me that it is working fine and I am wrong)?

Thank you
Attached Files
File Type: mq4 EMAPredictive2.mq4 (5.3 KB, 56 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 04-28-2008, 12:22 PM
Lou G Lou G is offline
Junior Member
 
Join Date: Jun 2006
Posts: 15
Lou G is on a distinguished road
Too bad the preceding post was moved here - the indicator posted has nothing to do with CG's indicator. I deliberately tried to start a new thread in order to share the indicator in question with others (and hopefully improve it).

Instead, I'm stuck out here at the end of a dead topic where no one will see it...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 04-28-2008, 12:31 PM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 15,222
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Yes, I see. You are right. Sorry.
I separated the threads and sent PM to you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 04-28-2008, 02:42 PM
Lou G Lou G is offline
Junior Member
 
Join Date: Jun 2006
Posts: 15
Lou G is on a distinguished road
Quote:
Originally Posted by newdigital View Post
Yes, I see. You are right. Sorry.
I separated the threads and sent PM to you.
Thanks NewDigital - I have been tinkering with this indicator and think I may have a version that does what the original author intended but I would really appreciate having an expert MQL4 programmer have a look and see if my understanding is correct.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 04-29-2008, 10:21 AM
mladen's Avatar
mladen mladen is offline
Senior Member
 
Join Date: Oct 2006
Posts: 197
mladen is on a distinguished road
...

This should do it

regards
mladen

Quote:
Originally Posted by Lou G View Post
I have many years of programming experience but not much in MQL4. The attached indicator seems very interesting but has what appear to be a few mistakes in the code - in a couple of places it seems to be referencing arrays using an index of -1 which I believe would result in using VERY old data.
...
Thank you
Attached Images
File Type: gif ema predictive.gif (18.7 KB, 535 views)
Attached Files
File Type: mq4 EMAPredictive2.mq4 (5.1 KB, 134 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 04-29-2008, 11:58 AM
Lou G Lou G is offline
Junior Member
 
Join Date: Jun 2006
Posts: 15
Lou G is on a distinguished road
Thanks, mladen. Your version appears to be what I was looking for.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 04-29-2008, 12:05 PM
et_phonehome_2 et_phonehome_2 is offline
Senior Member
 
Join Date: Feb 2006
Posts: 1,076
et_phonehome_2 is on a distinguished road
How do you use this indicator?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 04-29-2008, 05:19 PM
vitime vitime is offline
Junior Member
 
Join Date: May 2006
Posts: 1
vitime is on a distinguished road
Quote:
Originally Posted by mladen View Post
This should do it

regards
mladen
Could You please share your indicators /gray box and red vertical line / or tpl ?
or where can I find it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 04-30-2008, 01:01 AM
RickW00716 RickW00716 is offline
Senior Member
 
Join Date: Aug 2006
Posts: 387
RickW00716 is on a distinguished road
Quote:
Originally Posted by Lou G View Post
Thanks, mladen. Your version appears to be what I was looking for.
How do you intend to use this indicator?
I thought the original would predict the next bar(if it would be up or down...used on daily charts)

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 04-30-2008, 12:49 PM
Lou G Lou G is offline
Junior Member
 
Join Date: Jun 2006
Posts: 15
Lou G is on a distinguished road
As you can see, this indicator has very little lag - usually only a bar. I plan to use it in conjunction with a detrending indicator to keep me out of whipsaws and some kind of support/resistance projection, probably DeMark's daily range projection to provide profit targets and potential reversal points. Then I will have a simple (only three indicators) system which will predict the future often enough to make some pips. Will it work? Dunno yet...

Not sure what you mean by "the original". If you're referring to the CodersGuru indicator, that indicator and this one are not really the same thing (though similar in intent).

I like this indicator because it seems to get the job done without being a CPU resource hog, as some "no-lag" tools seem to be.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools

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
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
(FPI) predictive price Nicholishen Indicators - Metatrader 4 75 Today 05:47 PM
Making a predictive indicator.. ns_karthik General Discussion 8 07-27-2007 08:49 AM


All times are GMT. The time now is 09:22 PM.