Hull Moving Average EA
  #1 (permalink)  
Old 10-16-2006, 05:55 AM
bradman's Avatar
Freshman
 
Join Date: Oct 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
bradman is on a distinguished road
Default Hull Moving Average EA

hi there.

first post.


i am after an expert advisor for MT4.

It buys and sells with the triggers of Hulls Moving Averages.

Does anyone have one, can point me to one, or build me one, please?

Bradman
Reply With Quote
  #2 (permalink)  
Old 10-16-2006, 03:41 PM
gazuz's Avatar
Senior Trader and Moderat
 
Join Date: Aug 2004
Posts: 768
Thanks: 1
Thanked 7 Times in 5 Posts
gazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to all
Default

Could you attach the moving average indicator please?
__________________
____________________________\¦/
___________________________(ò ó)
______________________o0o___(_)___o0o__
___¦_____¦_____¦_____¦_____¦_____¦_____¦
¦_____¦_____¦_____¦_____¦_____¦_____¦__
___¦_____¦_____¦_____¦_____¦_____¦_____¦
¦_____¦_____¦_____¦_____¦_____¦_____¦__
Reply With Quote
  #3 (permalink)  
Old 10-16-2006, 11:44 PM
Freshman
 
Join Date: Sep 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
coin.inv is on a distinguished road
Default

Have a great day
Attached Files
File Type: mq4 Hull Trend.mq4 (3.4 KB, 483 views)
Best Forex Systems
Proven forex trading systems for auto trading.
See the real trading records yourself.

Last edited by coin.inv : 10-23-2006 at 12:02 PM.
Reply With Quote
  #4 (permalink)  
Old 10-17-2006, 03:59 AM
bradman's Avatar
Freshman
 
Join Date: Oct 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
bradman is on a distinguished road
Default

This is the indicator:

//+------------------------------------------------------------------+
//| HMA.mq4
//| Copyright © 2006 WizardSerg <wizardserg@mail.ru>, ?? ??????? ForexMagazine #104
//| wizardserg@mail.ru
//| Revised by IgorAD,igorad2003@yahoo.co.uk |
//| http://www.forex-tsd.com/ |
//+------------------------------------------------------------------+
#property copyright "MT4 release WizardSerg <wizardserg@mail.ru>, ?? ??????? ForexMagazine #104"
#property link "wizardserg@mail.ru"

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Aqua
#property indicator_color2 Tomato
//---- input parameters
extern int period=21;
//extern int method=0; // MODE_SMA
extern int method=3; // MODE_SMA
extern int price=0; // PRICE_CLOSE
extern string Sound_File="alert2.wav";
//---- buffers
double Uptrend[];
double Dntrend[];
double ExtMapBuffer[];


//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
IndicatorBuffers(3);
SetIndexBuffer(0, Uptrend);
//ArraySetAsSeries(Uptrend, true);
SetIndexBuffer(1, Dntrend);
//ArraySetAsSeries(Dntrend, true);
SetIndexBuffer(2, ExtMapBuffer);
ArraySetAsSeries(ExtMapBuffer, true);

SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,2);
SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,2);

IndicatorShortName("Hull Moving Average("+period+")");
return(0);
}

//+------------------------------------------------------------------+
//| Custor indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
// ???? ????? ?????? ??????
return(0);
}

//+------------------------------------------------------------------+
//| ?????????? ??????? |
//+------------------------------------------------------------------+
double WMA(int x, int p)
{
return(iMA(NULL, 0, p, 0, method, price, x));
}

//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars = IndicatorCounted();

if(counted_bars < 0)
return(-1);

int x = 0;
int p = MathSqrt(period);
int e = Bars - counted_bars + period + 1;

double vect[], trend[];

if(e > Bars)
e = Bars;

ArrayResize(vect, e);
ArraySetAsSeries(vect, true);
ArrayResize(trend, e);
ArraySetAsSeries(trend, true);

for(x = 0; x < e; x++)
{
vect[x] = 2*WMA(x, period/2) - WMA(x, period);
// Print("Bar date/time: ", TimeToStr(Time[x]), " close: ", Close[x], " vect[", x, "] = ", vect[x], " 2*WMA(p/2) = ", 2*WMA(x, period/2), " WMA(p) = ", WMA(x, period));
}

for(x = 0; x < e-period; x++)

ExtMapBuffer[x] = iMAOnArray(vect, 0, p, 0, method, x);

for(x = e-period; x >= 0; x--)
{
trend[x] = trend[x+1];
if (ExtMapBuffer[x]> ExtMapBuffer[x+1]) trend[x] =1;
if (ExtMapBuffer[x]< ExtMapBuffer[x+1]) trend[x] =-1;

if (trend[x]>0)
{ Uptrend[x] = ExtMapBuffer[x];
if (trend[x+1]<0) {
Uptrend[x+1]=ExtMapBuffer[x+1];
//PlaySound(Sound_File);
}
Dntrend[x] = EMPTY_VALUE;

}
else
if (trend[x]<0)
{
Dntrend[x] = ExtMapBuffer[x];
if (trend[x+1]>0) {
Dntrend[x+1]=ExtMapBuffer[x+1];
//PlaySound(Sound_File);
}

Uptrend[x] = EMPTY_VALUE;

}

//Print( " trend=",trend[x]);
}

return(0);
}
//+------------------------------------------------------------------+
Reply With Quote
  #5 (permalink)  
Old 10-17-2006, 04:03 AM
bradman's Avatar
Freshman
 
Join Date: Oct 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
bradman is on a distinguished road
Default

i have a seperate program: e-trailing

with a magic number on the Hull moving average EA i can place SL,TP, breakevens, and trailing stop losses using an identical chart of the same currency. Though maybe magic numbers are just if you want to use the same EA but on a different timeframe.

This is a great!!!!! indicator, and the EA off it will be great.
Reply With Quote
  #6 (permalink)  
Old 10-17-2006, 06:50 AM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,908
Thanks: 87
Thanked 346 Times in 143 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

bradman, so what's your system? how to enter and exit? I'll code one for you.

coin.inv, i don't think a script would do the trailing stop thing, and how to enter and exit?
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
The following users have thanked scorpion for useful post above:
  #7 (permalink)  
Old 10-18-2006, 04:00 AM
bradman's Avatar
Freshman
 
Join Date: Oct 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
bradman is on a distinguished road
Default

Thanks Scorpion,

just PMed the SL, TP etc to you. I use the e-trailing EA so it doesn't need to be built in.

Enter and exit when the colour indicator changes.
I gave a long winded version of what i am doing in the PM.
Reply With Quote
HMA 2 color
  #8 (permalink)  
Old 10-19-2006, 04:12 AM
Freshman
 
Join Date: Jun 2006
Posts: 25
Thanks: 0
Thanked 35 Times in 3 Posts
richx7 is on a distinguished road
Default HMA 2 color

I modified HMA and added an alert on color change showing buy and sell.
Attached Images
File Type: jpg hma2 alert.jpg (92.1 KB, 510 views)
Attached Files
File Type: mq4 HMA 2 color.mq4 (3.5 KB, 467 views)

Last edited by richx7 : 10-19-2006 at 04:17 AM.
Reply With Quote
  #9 (permalink)  
Old 10-19-2006, 04:27 AM
bradman's Avatar
Freshman
 
Join Date: Oct 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
bradman is on a distinguished road
Default

Okay, i figured out how you people attach these files.

This is the indicator i copied and pasted above.

-------


i will do away with trailing stop losses, as they will trigger too much.
visually checking data i see about 200 pips "per major" per month.

I hope others see potential with Hull moving averages.

I was going to try to turn $1k into $1.2 million in ten months with this.
2 Lots per $10k - 0.2 lots for $1k

but that is risky. Even though it is great at eating trend pips.

Do people think i could get a realistic 50% a month?
that would be 1 Lot per $10k (4 trades simultaneous over majors).
I would have to lose 1000 pips for a wipeout.

1500
2250
3375
5062.50
7593.75
11,390
17,085
25,628
38,443
57,665
86,497
129,746
194,619
291,927
437,893
656,840
985,261 17 months!!

Long live the scorpion Hull EA!!!!!!!!
Attached Files
File Type: mq4 HMA_Russian_Color.mq4 (4.2 KB, 354 views)

Last edited by bradman : 10-25-2006 at 04:08 AM.
Reply With Quote
  #10 (permalink)  
Old 10-19-2006, 04:28 AM
Freshman
 
Join Date: Sep 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
coin.inv is on a distinguished road
Default

Have a great day

Last edited by coin.inv : 10-23-2006 at 12:03 PM.
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
moving average with pull back of prices tinybolt10 Indicators 0 10-01-2006 03:04 PM
moving average 35 of cci 20 indicator xavier050463 Indicators 0 09-21-2006 09:33 PM
What's wrong with this moving average alert? forextrend Indicators 3 03-28-2006 03:53 AM
Custom Moving Average Cross forextrend Indicators 1 03-26-2006 07:04 AM
Exponential Moving Average gazuz Trading Systems 9 01-05-2006 01:17 AM


All times are GMT. The time now is 01:31 PM.
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