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 Apr 28, 2024 2:58 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: How to enter a few pips past previous bar
PostPosted: Sun Jun 02, 2013 7:02 pm 
Offline

Joined: Mon Oct 31, 2011 5:02 am
Posts: 10
Hi
Trying to enter the market a few pips past the previous bars low extreme. I have included the following code but doesn't work. Could you please advise?

&& (iLow(Symbol(),0,1)> MarketInfo(Symbol(),MODE_ASK)-0.0005))

The rest of the code is as per Molanis build.
Thanks
Dean


Top
 Profile  
 
 Post subject: Re: How to enter a few pips past previous bar
PostPosted: Mon Jun 03, 2013 3:52 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Try using the mql icon with (iLow(Symbol(),0,1)> MarketInfo(Symbol(),MODE_ASK)+0.0005)
You buy at the ask and not below it
There could be issues with the logic since some Brokers require a minimum of 15 to 20 pips between the order and the market price
You cannot really backtest it since you do not have the Ask price available for backtesting - you only have open,close,high and low - you may want to use open instead of ask


Top
 Profile  
 
 Post subject: Re: How to enter a few pips past previous bar
PostPosted: Tue Jun 04, 2013 2:28 am 
Offline

Joined: Mon Oct 31, 2011 5:02 am
Posts: 10
Thanks for your reply. Didn't think about broker criteria. Could it be coded to enter at market once all conditions are met? therefore monitoring or running the EA each tick?


Top
 Profile  
 
 Post subject: Re: How to enter a few pips past previous bar
PostPosted: Tue Jun 04, 2013 10:11 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
To trade each tick there is an option in the START icon - still back test will not be reliable if you use ASK


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