Hull Moving Average's Trend System
  #1 (permalink)  
Old 10-27-2006, 02:37 AM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,923
Thanks: 97
Thanked 361 Times in 147 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 Hull Moving Average's Trend System

The system was posted by bradman when he needed this system coded.

The system is simple. Long when HMA trend is up, and short when HMA trend is down.

Attached is the EA, automated script for metatrader 4, and indicator of this system. You must install both of them.

This expert advisor features:
  • You can trade multiple charts or currencies at the same time
  • Stop loss, take profit, breakeven
  • Trailing stop
  • Configurable settings
  • Many hidden features. (Advance users, put "extern" to reveal them)

How to use:
  • To enable stop loss, set SL_Mode = 1, then you configure SL to suit your style.
  • To enable trailing stop, set TS_Mode = 1. Trailing stop will hit when profit is x pips as specified in TS_Trigger.
  • Configure the indicator by settting HMA_Period and HMA_Mode.

Cheers!
Attached Files
File Type: mq4 HMA Trend EA.mq4 (15.9 KB, 1563 views)
File Type: mq4 HMA.mq4 (3.5 KB, 1446 views)
Sponsored Links Profitable Forex Systems
Automatically trade proven forex trading systems.
Real trading records available!
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.

Last edited by scorpion : 10-27-2006 at 02:52 AM.
Reply With Quote
The Following 15 Users Say Thank You to scorpion For This Useful Post:
  #2 (permalink)  
Old 10-27-2006, 02:45 AM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,923
Thanks: 97
Thanked 361 Times in 147 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

Make sure you install the HMA.mq4 in ..\Metatrader 4\experts\indicators folder and HMA Trend EA.mq4 in ..\Metatrader 4\experts
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
The following users have thanked scorpion for useful post above:
  #3 (permalink)  
Old 10-28-2006, 05:03 PM
Sophomore
 
Join Date: Oct 2006
Posts: 33
Thanks: 2
Thanked 4 Times in 4 Posts
flexie is on a distinguished road
Default

Finally, a coder (Scorpion) who puts some depth into his code. I too am a programmer, but so far, have not seen much code published out there that I would trust real money to, let alone waste my time with. Nice work Scorpion.

Mark
Reply With Quote
  #4 (permalink)  
Old 10-28-2006, 11:29 PM
Freshman
 
Join Date: Jun 2006
Posts: 25
Thanks: 0
Thanked 38 Times in 3 Posts
richx7 is on a distinguished road
Default

I did some backtesting on the HMA Trend EA for the last 2 months with profitable results ($11,500) using 1hr charts with 99 periods and mode 0. It shows 22 wins and 6 losses and have included the settings on the tester. Spreads were $840 using 28 trades X 3 pips so total profit was $10,660.
It is one of only a few profitable EAs that I've seen.
Attached Files
File Type: htm HMATrend Tester.htm (9.9 KB, 823 views)
Reply With Quote
  #5 (permalink)  
Old 10-29-2006, 04:52 AM
gazuz's Avatar
Senior Trader and Moderat
 
Join Date: Aug 2004
Posts: 768
Thanks: 1
Thanked 8 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

I hate moving averages in backtest, try it on a demo account and see how it goes.
__________________
____________________________\¦/
___________________________(ò ó)
______________________o0o___(_)___o0o__
___¦_____¦_____¦_____¦_____¦_____¦_____¦
¦_____¦_____¦_____¦_____¦_____¦_____¦__
___¦_____¦_____¦_____¦_____¦_____¦_____¦
¦_____¦_____¦_____¦_____¦_____¦_____¦__
Reply With Quote
  #6 (permalink)  
Old 10-31-2006, 07:48 PM
Freshman
 
Join Date: Jun 2006
Posts: 25
Thanks: 0
Thanked 38 Times in 3 Posts
richx7 is on a distinguished road
Default

This EA may have some problems because it closes and opens a new order at the same time. A delay may be needed to correct this.
Reply With Quote
  #7 (permalink)  
Old 11-01-2006, 11:28 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,923
Thanks: 97
Thanked 361 Times in 147 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

Why? I think it's normal that a trade closes and then opens at the same time. Because this system has the same entry and exit, this will occur all of the time if you don't set SL, TP, breakeven or trailing stop.

Maybe you expect that it opens at the end of candle?
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
The Following 2 Users Say Thank You to scorpion For This Useful Post:
  #8 (permalink)  
Old 11-02-2006, 03:38 AM
Freshman
 
Join Date: Jun 2006
Posts: 25
Thanks: 0
Thanked 38 Times in 3 Posts
richx7 is on a distinguished road
Default

Quote:
You may get profitable experts in backtests if orders are filled and exited in the same bar. This is usually an error due to the limitations of backtesting on data with longer timeframes than the trading strategy.The only way to have reliable backtests off bar data is to either enter on the open or exit on the close
Placing 2 orders at the same time may present problems.

http://codebase.mql4.com/644

http://articles.mql4.com/161
Reply With Quote
  #9 (permalink)  
Old 11-02-2006, 07:08 AM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,923
Thanks: 97
Thanked 361 Times in 147 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

Are you sure that there were 2 orders at the same time? It could be bug in the expert, but I'm doubt there's any, since the code base has been used for months without problem. There's a possibility that you attached the EA to multiple charts of same currency pair.

If you're talking about the delay, I've implemented Smart Delay in the EA. Before an order is executed, the EA checks if MT4 is available to execute or not. Order is executed according to MT4 state. If it's busy, wait. If it's not busy, don't wait. Smart Delay is more decent than that shown at mql4.com which uses very classic, fixed-interval, always delay.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.

Last edited by scorpion : 11-02-2006 at 07:16 AM.
Reply With Quote
  #10 (permalink)  
Old 11-03-2006, 02:58 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 a lot scorpion.

It is easy to check the charts looking back as the colours stay the same.

when it is changing the colour flickers a lot, so trading Hull forwards is very difficult, and a 24 hour job.
and you lose the pip spread for each false open and close.

hope this EA does good long term.
i've saved the file, but can't test it for a while as i am busy.
keep posting fellers!
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
Hull Moving Average EA bradman General Trading Talk 42 04-02-2008 02:19 PM
Trading E-Books Download jgrimney Tutorials, Tips & Tricks 46 09-28-2007 07:32 PM
ANALYTICAL SOFTWARE for Traders (March 2006) max777 Classified Ads 2 08-20-2007 10:42 PM
asc trend system blake123 Trading Systems 9 11-16-2006 05:13 AM
ANALYTICAL SOFTWARE for Traders (June 2006) max777 Classified Ads 0 06-18-2006 11:32 PM


All times are GMT. The time now is 11:52 AM.
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