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/ |
|
How to enter a few pips past previous bar http://www.molanis.com/forum/viewtopic.php?f=8&t=5913 |
Page 1 of 1 |
Author: | Benz [ Sun Jun 02, 2013 7:02 pm ] |
Post subject: | How to enter a few pips past previous bar |
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 |
Author: | molanisfx [ Mon Jun 03, 2013 3:52 pm ] |
Post subject: | Re: How to enter a few pips past previous bar |
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 |
Author: | Benz [ Tue Jun 04, 2013 2:28 am ] |
Post subject: | Re: How to enter a few pips past previous bar |
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? |
Author: | molanisfx [ Tue Jun 04, 2013 10:11 pm ] |
Post subject: | Re: How to enter a few pips past previous bar |
To trade each tick there is an option in the START icon - still back test will not be reliable if you use ASK |
Page 1 of 1 | All times are UTC - 5 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |