Forex
Google
New signals service!

Go Back   Forex Trading > Trading systems > Ema Cross


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

Reply
 
LinkBack (4) Thread Tools Display Modes
  #11 (permalink)  
Old 02-18-2006, 09:22 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Lightbulb Ojala!

Quote:
Originally Posted by dirk
Thanks , now is clear.
So' I can prepare all charts that i have on D1 and wait the first signal,
put stop at 100 pips, no limit, for example, and when i am on gain between 20/30 pips, i can move stop at entry and wait for exit.
What do you thing ?
Thanks
dirk,
Ojala, I'll create the Expert Advisor when the market open Monday and proof my Indicator.
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 02-19-2006, 04:00 AM
ycomp's Avatar
Member
 
Join Date: Jan 2006
Posts: 93
ycomp is on a distinguished road
Unhappy Warning, before using this indicator!

hi, I just noticed the indicator EMA_Prediction.mq4 contains a serious bug.

I spent all day yesterday marking my nice chart with vertical lines so that I would know when something important occured.

I put this indicator on and then took it off the chart... bad idea... all my lines are gone... I know it's my fault for not looking at the code before running but just in case there are some others who don't proof-read before running, I thought I'd give you the heads up.

So just to recap... EMA_Prediction.mq4 will delete all your Vertical Lines on the chart when you remove it or whenever else metatrader calls the deinit() function

my suggestion to the author would be to incorporate code similar to this:

Code:
// will delete all objects that contain aID_Prefix
void deleteObjects(string aID_Prefix) {
  int nObjects = ObjectsTotal();
  for (int i=nObjects; i>=0; i--) {
    string objName = ObjectName(i);
    if(StringFind(objName, aID_Prefix, 0) >= 0)
      ObjectDelete(objName);
  }
}
and to give his vlines all the same prefix that wouldn't conflict with those of another script... e.g. "EMA_PREDICTION_VLINE_"

[DISCLAIMER: use this code at your own risk. I am not responsible for any code I create. However, it seems to work for me so far just fine. Just be aware if you are too lenient with the aID_Prefix it will delete alot of objects... e.g. aIDPrefix="a" would delete all those CONTAINING "a". If you want to only delete those starting with "a" then I would suggest changing the StringFind's >=0 to just 0. Although I have not tested that modification, it should work]

Last edited by ycomp; 02-19-2006 at 04:08 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 02-19-2006, 08:05 AM
keris2112's Avatar
Senior Member
 
Join Date: Dec 2005
Location: California, US
Posts: 129
keris2112 is on a distinguished road
Quote:
Originally Posted by ShadowWz
Hi,

i looke in the code and i see:
"iMA(NULL,0,LongEma,0,MODE_EMA, PRICE_CLOSE, pos-1)"

now my question is how can you get "pos-1" for current,or even previous, day ?

* i wish i wrong and this indicator will predict the direction of EMA.

Cheers.
CodersGuru,
Could you please address this? I think Shadow is correct. At first I thought that maybe it had something to do with your loop counting Down To 0 instead of Up From 0, but either way, I believe it should still be +1. (Been trying for an hour to get my head around this) Also, you seem to use "pos-1" to position the arrows Forward 1 bar, so I'm not sure how "pos-1" can also be used to reference the Previous bar in the MA.

If the PreviousEMA calculations are truly supposed to be "pos+1", then the 2 IF statements used to generate the signals can never be true.

I know I'm nowhere near the coder you are, so please correct me if I/we are wrong. Also, if your code is correct, could you please try to explain why/how it works as I don't understand.

Thanks,
Keris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 02-19-2006, 03:17 PM
Junior Member
 
Join Date: Feb 2006
Posts: 6
robak is on a distinguished road
Red face

Thanks Codersguru

Perhaps SL for buy
- reversal signal
- current low below last low
- close below halft of last candlestick
For sell inverted
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 02-19-2006, 10:40 PM
Member
 
Join Date: Jan 2006
Posts: 48
profitmaker is on a distinguished road
Market Prediction

Hi Coders
Thanks for this indicator (and all your other work). Can we manually backtest this? ie are the signals stable or will they change if we look back in time?
Thanks Mike.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 02-19-2006, 11:30 PM
alp alp is online now
Senior Member
 
Join Date: Nov 2005
Posts: 109
alp is an unknown quantity at this point
OK, today we have two signal arrows, one is aussie the other one is GBPCHF. Let's see to it till the end of the day.
Attached Images
File Type: gif aussie.gif (18.3 KB, 946 views)
File Type: gif gbpchf.gif (15.5 KB, 812 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 02-20-2006, 06:19 AM
Thruline's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 123
Thruline is on a distinguished road
I can't get this indicator to NOT show vertical lines.

Anyone else have this problem?

Looks interesting...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 02-20-2006, 07:33 AM
keris2112's Avatar
Senior Member
 
Join Date: Dec 2005
Location: California, US
Posts: 129
keris2112 is on a distinguished road
Please do not use this indicator with a real account until CodersGuru (or some other knowledgeable coder) responds to my post above. I still do not believe it is calculating things properly. See post #13 above.

Keris

Note: If it turns out that the indicator does calculate properly, I'll delete my posts so as to not clutter up the thread.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 02-20-2006, 07:42 AM
Junior Member
 
Join Date: Feb 2006
Posts: 6
robak is on a distinguished road
Hi
Bad news
Look at pic. one is bevore and second after change of TF. Arrow have changed .
Attached Images
File Type: gif Bez nazwy.gif (15.8 KB, 901 views)
File Type: gif Bez nazwy2.gif (15.2 KB, 841 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 02-20-2006, 08:22 AM
Senior Member
 
Join Date: Oct 2005
Posts: 194
dirk is on a distinguished road
Robak , i don't see anything wrong , also don't forget that you are using 1 hour TF, i believe it is too short , you 'll have choppy and wimpy market.
I am using H4 and D1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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

BB 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

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/ema-cross/1062-market-prediction-ema-cross-1-2-a.html
Posted By For Type Date
Un sistem de la A la Z... impreuna - vamist.com - Forex forums and blogs This thread Refback 01-29-2008 07:49 AM
Un sistem de la A la Z... impreuna - vamist.com - Forex forums and blogs This thread Refback 12-31-2007 05:04 AM
Un sistem de la A la Z... impreuna - vamist.com Forex Forum This thread Refback 10-09-2007 05:39 AM
Un sistem de la A la Z... impreuna This thread Refback 06-28-2007 12:19 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
The TrendStuffer System - easy trend prediction for everyone! SirKhan Commercial Trading Systems and indicators 772 08-26-2008 01:16 PM
MA cross/Price cross MA EA Pipsta_UK Expert Advisors - Metatrader 4 5 05-10-2007 08:50 PM
When Does Market Open? mikejody General Discussion 2 01-01-2007 06:20 PM


All times are GMT. The time now is 04:47 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.