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 Wed May 22, 2024 10:33 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: anything better than "MarketInfo"
PostPosted: Sun Aug 28, 2011 5:26 pm 
Offline

Joined: Thu Jun 23, 2011 5:06 pm
Posts: 54
I use the following MQL code to keep me out of the market when the spread is greater than 1pip (allowing slippage of 3):

"MarketInfo(Symbol(),MODE_ASK)-MarketInfo(Symbol(),MODE_BID)<=1.0"

My Question is: why am I still observing my EA take trades when spreads are higher than 4 pips? :?

I like this "MarketInfo" approach as I feel its a more organic method (than the TIME Icon) to keep me out of markets. Can anyone suggest anything better than "MarketInfo" above?


Top
 Profile  
 
 Post subject: Re: anything better than "MarketInfo"
PostPosted: Sun Aug 28, 2011 8:06 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Please post your ea to take a look. No way to now why the expert advisor open trades without looking at the ea.
MarketInfo tends to be the best thing for that


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