molanis.com/forum - Tools for MetaTrader : The place to ask about the best expert advisor builder, expert advisor downloads, and expert advisor programming

AFTER YOU REGISTER SEND US AN EMAIL TO ACTIVATE YOUR ACCOUNT - Before posting:-1- Please read the user guide -2- Try the examples -3- Search in the forum
It is currently Fri May 17, 2024 9:47 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: EA with Hull moving average
PostPosted: Sat Jan 24, 2015 3:38 pm 
Offline

Joined: Sat Jan 24, 2015 6:20 am
Posts: 14
Hello everyone, I'm new about the forum.
I created an EA ,but does not make any orders. I wish i bought when the HMA (Hull moving average) begins to rise and sell when the HMA begins to descend. In my EA makes only one order. May I know what is the problem?
Thank You


Attachments:
hma.mol [7.01 KiB]
Downloaded 332 times
HMA2.mq4 [3.91 KiB]
Downloaded 330 times
Top
 Profile  
 
 Post subject: Re: EA with Hull moving average
PostPosted: Sun Jan 25, 2015 9:03 pm 
Offline
Site Admin

Joined: Fri Oct 16, 2009 3:40 pm
Posts: 451
The problem with using the current bar is that it is not formed so the conditions are evaluated at the open of the bar, and many ticks are received after that. SO at the open you can have hull1>hull2, but the next tick is hull1<hull2, so you have many false signals if you trade ticks
During development what we do is use shift=1 or previous bar and then when we are done testing we change it to shift=0
I would try to find a better hull indicator. I think this one repaints. It also uses 2 signals so you need to use one for sell and one for buy (mode 0 and mode 1). The signals work as signal 1 is on while 2 is off, and vice versa.
Please start reading this first to understand about the custom indicators:
viewtopic.php?f=3&t=162
There is a post there with another hull indicator


Top
 Profile  
 
 Post subject: Re: EA with Hull moving average
PostPosted: Mon Jan 26, 2015 11:50 am 
Offline

Joined: Sat Jan 24, 2015 6:20 am
Posts: 14
thank you


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by Molanis © 2009