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 03, 2024 6:01 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Defining the range of a time period for breakout strategy
PostPosted: Thu Jul 19, 2012 7:07 am 
Offline

Joined: Wed Jul 18, 2012 11:06 pm
Posts: 78
Hi there, I'm lost as to how I define the high for a particular period. Ie. the high and low for 11:00 - 13:00. I am needing to write an indicator such as this for a breakout strategy. Any help would be much appreciated.

Regards
nolube


Top
 Profile  
 
 Post subject: Re: Defining the range of a time period for breakout strategy
PostPosted: Fri Jul 20, 2012 9:10 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
You can create an indicator that gives you the high or low for the last two bars (1 hr bars from 11 to 1 is 2 bars) but you cannot define a time rage since it has many implications like:
what is to be shown before and after the time range 0 would it show previous day info - will reset every day...


Top
 Profile  
 
 Post subject: Re: Defining the range of a time period for breakout strategy
PostPosted: Fri Jul 20, 2012 9:43 am 
Offline

Joined: Wed Jul 18, 2012 11:06 pm
Posts: 78
If I understand what you have said correctly, yes it resets everyday. Also, what is shown is a horizontal line forwards until the next day Ie. from 13:00 (7/17) - 11:00 (8/17). Anyhows, could you suggest another route of logic to accomplish this??

Regards


Top
 Profile  
 
 Post subject: Re: Defining the range of a time period for breakout strategy
PostPosted: Fri Jul 20, 2012 9:58 am 
Offline

Joined: Wed Jul 18, 2012 11:06 pm
Posts: 78
Like this


Attachments:
BreakOut-EAGLE__ut2DaMax.mq4 [7.15 KiB]
Downloaded 704 times
Top
 Profile  
 
 Post subject: Re: Defining the range of a time period for breakout strategy
PostPosted: Sun Jul 22, 2012 2:04 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
The issue with indicators like the one you posted is that only show visual signals, you cannot use it in expert advisors. Those indicators are built to show signals and the part to send the signals to eas was not included. You cannot import it into the strategy builder


Top
 Profile  
 
 Post subject: Re: Defining the range of a time period for breakout strategy
PostPosted: Mon Jul 23, 2012 5:17 am 
Offline

Joined: Wed Jul 18, 2012 11:06 pm
Posts: 78
OK, could you suggest another way of achieving this outcome, or something very similar I could maybe work with?


Top
 Profile  
 
 Post subject: Re: Defining the range of a time period for breakout strategy
PostPosted: Mon Jul 30, 2012 3:49 am 
Offline

Joined: Wed Jul 18, 2012 11:06 pm
Posts: 78
Hello?


Top
 Profile  
 
 Post subject: Re: Defining the range of a time period for breakout strategy
PostPosted: Mon Jul 30, 2012 9:07 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
The only solution is to find such indicator but well written (sends signals to an ea).
If you have a commercial license send us an email - we may be able to help


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 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