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

Defining the range of a time period for breakout strategy
http://www.molanis.com/forum/viewtopic.php?f=9&t=1652
Page 1 of 1

Author:  nolube [ Thu Jul 19, 2012 7:07 am ]
Post subject:  Defining the range of a time period for breakout strategy

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

Author:  molanisfx [ Fri Jul 20, 2012 9:10 am ]
Post subject:  Re: Defining the range of a time period for breakout strategy

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...

Author:  nolube [ Fri Jul 20, 2012 9:43 am ]
Post subject:  Re: Defining the range of a time period for breakout strategy

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

Author:  nolube [ Fri Jul 20, 2012 9:58 am ]
Post subject:  Re: Defining the range of a time period for breakout strategy

Like this

Attachments:
BreakOut-EAGLE__ut2DaMax.mq4 [7.15 KiB]
Downloaded 746 times

Author:  molanisfx [ Sun Jul 22, 2012 2:04 pm ]
Post subject:  Re: Defining the range of a time period for breakout strategy

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

Author:  nolube [ Mon Jul 23, 2012 5:17 am ]
Post subject:  Re: Defining the range of a time period for breakout strategy

OK, could you suggest another way of achieving this outcome, or something very similar I could maybe work with?

Author:  nolube [ Mon Jul 30, 2012 3:49 am ]
Post subject:  Re: Defining the range of a time period for breakout strategy

Hello?

Author:  molanisfx [ Mon Jul 30, 2012 9:07 am ]
Post subject:  Re: Defining the range of a time period for breakout strategy

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

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/