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/

30 Pips
http://www.molanis.com/forum/viewtopic.php?f=8&t=5341
Page 1 of 1

Author:  Pit [ Fri Oct 12, 2012 9:08 am ]
Post subject:  30 Pips

Hi

Ea wants a rule

Long
Ask> 30 - 50 pips from open then Ea long.

Short
Ask <30-50 pips of open then short.

Test but can not get the error.

Thanks for the help

Pit

Attachments:
30Pips.mol [4.5 KiB]
Downloaded 745 times

Author:  RJo [ Fri Oct 12, 2012 3:21 pm ]
Post subject:  Re: 30 Pips

Your MQL block shows MarketInfo("EURUSD",MODE_ASK)>=(0.003*iOpen("EURUSD",0,0))

Your START icon shows Micro (0.00000 for EURUSD), so 0.003 is 0.00300 (300 pips).

Make sure sure your dealer doesn't use a symbol suffix i.e., EURUSDm. If so, add the suffix manually.

You can get rid of all the MarketInfo stuff and just use Ask>=... (optional).

Author:  Pit [ Fri Oct 12, 2012 11:54 pm ]
Post subject:  Re: 30 Pips

Hello
Thanks for your answer.

Ask open and have changed.

But do not get signals with strategy tester.

What could be wrong.

System change pips 30th

MarketIinfo(Symbol(),Mode_ASK)>=(0.0003*iOpen(Symbol(),0,0))

Offline test maybe there is the problem?


Thanks Pit

Attachments:
30Pips.mol [4.5 KiB]
Downloaded 768 times

Author:  RJo [ Sun Oct 14, 2012 7:05 pm ]
Post subject:  Re: 30 Pips

Bid and Ask are not stored by MT4 in historical chart data.

Author:  Pit [ Mon Oct 15, 2012 7:24 am ]
Post subject:  Re: 30 Pips

Hello
Thanks hm so you can test only online.

Pit

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