Forex



Go Back   Forex Trading > Trading systems > Ema Cross
Forex Forum Register More recent Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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, 174 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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: 297
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, 240 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #327 (permalink)  
Old 02-13-2007, 02:09 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
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, 403 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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #329 (permalink)  
Old 02-17-2007, 03:44 PM
Sadly's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 288
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #330 (permalink)  
Old 02-17-2007, 09:02 PM
Sadly's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 288
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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, xp ema, vidya, vidya moving average, moving average indicators


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Average RSI xcooper Metatrader 4 27 09-12-2009 10:05 PM
How to calculate Moving Average of a Moving Average babarmughal Expert Advisors - Metatrader 4 4 05-31-2009 03:05 PM
EA Moving Average rodrigokaus Expert Advisors - Metatrader 4 10 02-11-2009 08:45 AM
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


All times are GMT. The time now is 06:05 PM.



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