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 Sun May 19, 2024 11:00 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: New Indicator
PostPosted: Sat May 26, 2012 4:21 am 
Offline

Joined: Sun Feb 12, 2012 12:47 pm
Posts: 3
I am trying to make a simple indicator which will plot a line of the high and low of the H1 candle from the London Open (6am-7am candle). For the life of me, I cannot see how this is accomplished. Could you advise on the way to do this? This indicator will be part of my EA based on trading these high / low levels.

Thanks


Top
 Profile  
 
 Post subject: Re: New Indicator
PostPosted: Mon May 28, 2012 9:10 am 
Offline
Site Admin

Joined: Fri Oct 16, 2009 3:40 pm
Posts: 451
The indicator builder does not have a time icon so you cannot tell it to plot only for a session. You can plot the continuous line. In the strategy builder you can add the time filter and create an ea or signal for the indicator.


Top
 Profile  
 
 Post subject: Re: New Indicator
PostPosted: Wed May 30, 2012 7:36 pm 
Offline

Joined: Sun Feb 12, 2012 12:47 pm
Posts: 3
How would I go about creating a signal for the high and low of the 6am candle? Enclosed is where I am at with the EA. It enters at 8am or 9am (London time) if it breaks below/above the candle. However, the reason I need a signal of the high and low is for the stop. I would like to close the trade after the H1 close above/below the 6am-7am candle, so if I am long, trades closes if the H1 closes below the 6am low and visa versa. Any advise on how to structure this?

Thanks for your help. George


Attachments:
6AM London Open Rev 02.mol [8.8 KiB]
Downloaded 467 times
Top
 Profile  
 
 Post subject: Re: New Indicator
PostPosted: Fri Jun 01, 2012 8:21 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Not sure if you posted the right ea. The one you posted does not have any time filters so I'm not sure why you say " It enters at 8am or 9am" The logic you posted could work at any moment.
The way you use a time filter is to add a time icon that connects from START to AND thus the logic in the same "branch (connected by the same AND)" will work only under the time filter defined in the time icon. Time icons should be used with and AND and TA, TA+, MQL, BUYP, SELLP
If you want to open 8 to 9, you connect the time icon to the AND and inside the time icon you set every day to start at 8 and finish at 9. You need to trade every tick. Remember that 8 to 9 are server hours and not your local time - you need to find the server time. The ea will print it on the screen so you can get it from there. For example maybe your server time that is equivalent to 8 to 9 London is 13 to 14.


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