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 Mon Apr 29, 2024 1:00 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: 30 Pips
PostPosted: Fri Oct 12, 2012 9:08 am 
Offline

Joined: Sat May 12, 2012 10:47 am
Posts: 34
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 705 times
Top
 Profile  
 
 Post subject: Re: 30 Pips
PostPosted: Fri Oct 12, 2012 3:21 pm 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
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).

_________________
I'm not a programmer, but I play one on TV.


Top
 Profile  
 
 Post subject: Re: 30 Pips
PostPosted: Fri Oct 12, 2012 11:54 pm 
Offline

Joined: Sat May 12, 2012 10:47 am
Posts: 34
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 731 times
Top
 Profile  
 
 Post subject: Re: 30 Pips
PostPosted: Sun Oct 14, 2012 7:05 pm 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
Bid and Ask are not stored by MT4 in historical chart data.

_________________
I'm not a programmer, but I play one on TV.


Top
 Profile  
 
 Post subject: Re: 30 Pips
PostPosted: Mon Oct 15, 2012 7:24 am 
Offline

Joined: Sat May 12, 2012 10:47 am
Posts: 34
Hello
Thanks hm so you can test only online.

Pit


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