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 Tue May 21, 2024 12:58 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Help needed
PostPosted: Tue Nov 12, 2013 6:32 pm 
Offline

Joined: Mon Nov 11, 2013 10:26 pm
Posts: 3
Hi Molanis team,

I want the EA to BUY when close price minus open price is higher or equal to +32,
and SELL when the close price minus open price is lower or equal to -32.

How to set this in TA? Please help. Thanks you.


Top
 Profile  
 
 Post subject: Re: Help needed
PostPosted: Tue Nov 12, 2013 10:09 pm 
Offline
Site Admin

Joined: Fri Oct 16, 2009 3:40 pm
Posts: 451
You can create an indicator with the indicator builder that does close price minus open price
Then import it into the strategy builder in a TA and create a condition like indicator > 0.032

Or you can use the mql icon to create the whole condition


Top
 Profile  
 
 Post subject: Re: Help needed
PostPosted: Tue Nov 12, 2013 10:24 pm 
Offline

Joined: Mon Nov 11, 2013 10:26 pm
Posts: 3
admin wrote:
You can create an indicator with the indicator builder that does close price minus open price
Then import it into the strategy builder in a TA and create a condition like indicator > 0.032

Or you can use the mql icon to create the whole condition



Thanks for reply.

Unfortunately, i did not have the indicator builder. If using mql, what is the code? Can you help me?


Top
 Profile  
 
 Post subject: Re: Help needed
PostPosted: Wed Nov 13, 2013 9:18 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Usually we do not give code to people because you need to know some mql to use it - most of the time they keep saying that it does not work because they made mistakes using it.

Since this is your first post you get a free pass. Here you go:

iClose(Symbol,0,1)-iOpen(Symbol,0,1) > 0.032

(for pairs like EURUSD). If you want to use code you need to read http://docs.mql4.com/series/iOpen and http://docs.mql4.com/series/iClose


Top
 Profile  
 
 Post subject: Re: Help needed
PostPosted: Wed Nov 13, 2013 5:54 pm 
Offline

Joined: Mon Nov 11, 2013 10:26 pm
Posts: 3
molanisfx wrote:
Usually we do not give code to people because you need to know some mql to use it - most of the time they keep saying that it does not work because they made mistakes using it.

Since this is your first post you get a free pass. Here you go:

iClose(Symbol,0,1)-iOpen(Symbol,0,1) > 0.032

(for pairs like EURUSD). If you want to use code you need to read http://docs.mql4.com/series/iOpen and http://docs.mql4.com/series/iClose



Thank you very much.


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