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 (24) Thread Tools Display Modes
  #321 (permalink)  
Old 01-14-2007, 10:54 PM
C.E.O.'s Avatar
Member
 
Join Date: Nov 2006
Posts: 90
C.E.O. is on a distinguished road
I have been doing some extensive backtesting with this EA trying to find the "best" hull MA. By best i mean most profitable. I have tested a HMA from 5-100 in 5 period increments and am now narrowing down the best step period. After that I will do stop loss and trail based on the previous best step period. To do this with the current EA I had to change this line of code so that it would only take a signal on bar close...

signal = iCustom(NULL,0,"xpMA_15",TimeFrame,MA_Period,MA_Ty pe,T3MA_VolumeFactor,JMA_Phase,Step_Period,false,3 ,1);

The last "1" was a zero
,0);

I really need it to send a signal every bar close because sometimes it will get in a sell and immediately reverse and the EA will not close the sell and buy, but I dont know enough about MQl to do this.

When Im done I will post the results, and move on to a jurik. For now I have found the 50 period HMA with a step of 3 is the "best". Makes about 40,000 in 1 year at 1 standard lot on cable 1HR timeframe.

Last edited by C.E.O.; 01-14-2007 at 11:19 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #322 (permalink)  
Old 01-15-2007, 11:45 PM
C.E.O.'s Avatar
Member
 
Join Date: Nov 2006
Posts: 90
C.E.O. is on a distinguished road
OK, I give up. I have been trying to convert an established EA (bagovino, originally emacross) to use three xpMA's of your choice but it is beyond my ability. I have went through it and changed everything I thought needed changing and have it down to about 10 errors and just cant get it worked out.

It has most of everything I want in it. The EMA Angle could be removed, the 4th EMA could be removed. Might as well keep the RSI filter, may be useful.
I havent gotten as far as putting an exit strategy into it, and probabally couldnt if I wanted to LOL. Anyway a closecondition on MA 1, or 2, or 3 will be needed.
It would be nice to make it like the original xpMAEA to use only one MA along with the option 2 or 3, but I will take what I can get.

If a generous coder could PLEASE take a look at it an at least fix it so it works as I have outlined I would be forever grateful. I tried my best but just cant get it.

(I havent changed the copyright's or credits or whatever, credit is due to them all)
Attached Files
File Type: mq4 MultixpMAEA.mq4 (40.6 KB, 130 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #323 (permalink)  
Old 01-16-2007, 03:20 AM
ralph.ronnquist's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 281
ralph.ronnquist is on a distinguished road
it compiles

I spent some spare time whacking in your file until it compiled. A comma here, remove a brace there, etc, and I suppose, severe re-indentation and added whitespace (my eyes are no less old than the rest :-))

hope it helps.
Attached Files
File Type: mq4 MultixpMAEArr.mq4 (39.3 KB, 195 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #324 (permalink)  
Old 01-19-2007, 05:06 AM
C.E.O.'s Avatar
Member
 
Join Date: Nov 2006
Posts: 90
C.E.O. is on a distinguished road
Thanks Ralph. Still a no go though. It ran but wouldn't put up any indicators even. I will have a look at it later and pull out some more hair. looks like the signal from xpma will have to be changed as well to give a 1 or -1 without the 0 buffer for this to work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #325 (permalink)  
Old 01-21-2007, 04:49 AM
Junior Member
 
Join Date: Oct 2006
Posts: 1
tclaar is on a distinguished road
Smile Does xpMA Repaint the Past.

This indicator looks to good to be true. I ran across other indicators that did something similar.

Nice indicator, if it doesn't repaint the past.

Can anyone confirm this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #326 (permalink)  
Old 01-21-2007, 09:57 PM
C.E.O.'s Avatar
Member
 
Join Date: Nov 2006
Posts: 90
C.E.O. is on a distinguished road
Quote:
Originally Posted by tclaar
This indicator looks to good to be true. I ran across other indicators that did something similar.

Nice indicator, if it doesn't repaint the past.

Can anyone confirm this?
It does not.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #327 (permalink)  
Old 02-13-2007, 02:09 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
Wink XP MOVING AVERAGE Version 10 (Beta version)

Upon a request from one of my friends (Accrete) I made these modifications to xpMA bt didn't test them yet!

------------------------------------

Accrete,

This is the requested modifications!


PHP Code:
bool     AlertOnPriceBreak       true
Alerts you when the price crosses up/down the moving average line.

PHP Code:
bool     AlertOnPriceRange       true
double   PriceRangeUpper         0.0
double   PriceRangeLower         0.0
Alerts you when the price enters the range - set the upper and lower boundaries.
Attached Files
File Type: mq4 xpMA.mq4 (17.2 KB, 354 views)
__________________
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
  #328 (permalink)  
Old 02-13-2007, 07:29 PM
C.E.O.'s Avatar
Member
 
Join Date: Nov 2006
Posts: 90
C.E.O. is on a distinguished road
NICE!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #329 (permalink)  
Old 02-17-2007, 03:44 PM
Sadly's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 260
Sadly is on a distinguished road
At first I assumed that xpMA changed colour when price broke through the MA line but now I see that this isn't correct. Then I looked again and could see that the MA line changes to yellow after price breaks through the MA line and then an arrow is drawn if the next bar again closes through the MA in the same direction but this doesn't appear to be the case either. So how does xpMA work? What's it looking for and what is the criteria which draws the arrows?

Last edited by Sadly; 02-17-2007 at 03:47 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #330 (permalink)  
Old 02-17-2007, 09:02 PM
Sadly's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 260
Sadly is on a distinguished road
Got it (Sort of)!

- When the previous value of the MA is > the current value change the color to RED
- When the previous value of the MA is < the current value change the color to BLUE
- When the previous value of the MA is = the current value change the color to YELLOW
- Arrow displayed when colour changes to YELLOW
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
moving average, moving average forex, xpMA EA, forex, XP Moving Average, forex moving average, T3 Moving Average, xpma.mq4, xpmaea, vidya mq4, moving averages, moving average indicator, moving averages forex, average forex, xp ma, xpma indicator

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

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/ema-cross/4430-xp-moving-average.html
Posted By For Type Date
Dolly System - Singapore Forex Trading Forum This thread Refback 07-28-2008 03:52 PM
The Simple System - Page 45 This thread Refback 06-09-2008 10:08 PM
Coders? This thread Refback 04-21-2008 06:30 PM
Singapore Forex Trading Forum - Re:Dolly System - Singapore Forex Trading This thread Refback 04-10-2008 11:56 PM
Forex | Trader Blog | Forex Trading | FX Operator - Re:Dolly System - FX Operator This thread Refback 03-12-2008 02:16 PM
Forum Forum - Moving Averages (Simple, Exponential, Weighted, etc) This thread Refback 02-14-2008 11:34 AM
Coders? This thread Refback 02-07-2008 09:02 PM
FX Operator | Singapore Forex (FX) Currency Trading | System, Good, Using, Still, Here This thread Refback 12-26-2007 05:27 PM
Untitled document This thread Refback 11-16-2007 03:21 PM
WoW ! Oh My God ! Guys take a look at this indicator ! - Forex Forum This thread Refback 11-14-2007 11:35 PM
Is there such a beast This thread Refback 10-12-2007 12:03 PM
Is there such a beast This thread Refback 10-11-2007 08:37 PM
Is there such a beast This thread Refback 10-11-2007 08:01 PM
Forex (FX) Trading | Currency Market | FX Operator - Dolly System - This thread Refback 10-02-2007 02:05 PM
WoW ! Oh My God ! Guys take a look at this indicator ! - Forex Forum This thread Refback 09-29-2007 02:53 PM
INDIKATOR XP for META $ - GoldAge Forums This thread Refback 09-09-2007 01:55 PM
WoW ! Oh My God ! Guys take a look at this indicator ! - Page 2 - Forex Forum Post #367 Pingback 08-23-2007 05:19 PM
The Simple System - Page 45 This thread Refback 08-15-2007 01:54 AM
The Simple System - Page 45 This thread Refback 08-06-2007 08:43 AM
The Simple System - Page 45 This thread Refback 08-06-2007 08:05 AM
The Simple System - Page 45 This thread Refback 08-05-2007 04:15 PM
WoW ! Oh My God ! Guys take a look at this indicator ! - Forex Forum This thread Pingback 07-18-2007 08:01 PM
Moving Averages (Simple, Exponential, Weighted, etc) - Page 2 - FXAddict Community This thread Refback 07-03-2007 12:52 PM
Forex (FX) Trading | Currency Market | FX Operator - Dolly System - This thread Refback 06-26-2007 05:40 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Average RSI xcooper Metatrader 4 17 09-14-2008 06:23 PM
EA Moving Average rodrigokaus Expert Advisors - Metatrader 4 7 09-09-2008 11:48 PM
non lag moving average kidhudi Indicators - Metatrader 4 1 07-26-2006 01:52 PM
moving average danu Expert Advisors - Metatrader 4 1 05-31-2006 05:23 AM
How to calculate Moving Average of a Moving Average babarmughal Expert Advisors - Metatrader 4 2 05-15-2006 11:11 AM


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



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