Forex



Go Back   Forex Trading > Discussion Areas > Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 01-31-2007, 04:09 AM
Senior Member
 
Join Date: Dec 2006
Posts: 109
dwmcqueen is on a distinguished road
Checking the Spread

Would checking the amount of pips in the Spread in an EA be as simple as checking the difference between the bid and ask?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 01-31-2007, 05:15 AM
Member
 
Join Date: Jun 2006
Posts: 56
timbobo is on a distinguished road
http://docs.mql4.com/common/MarketInfo/

Spread value in points - double MarketInfo(Symbol(),MODE_SPREAD)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 01-31-2007, 04:59 PM
Senior Member
 
Join Date: Dec 2006
Posts: 109
dwmcqueen is on a distinguished road
The example has that as an int return. Will specifying a double allow for the return of something like 0.5?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 01-31-2007, 09:47 PM
Member
 
Join Date: Jun 2006
Posts: 56
timbobo is on a distinguished road
Quote:
Originally Posted by dwmcqueen
The example has that as an int return. Will specifying a double allow for the return of something like 0.5?
Spread is integer but MarketInfo can return many other information - some of these values are double (like prices), so by default MarketInfo is double too.

http://docs.mql4.com/constants/marketinfo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 01-31-2007, 09:49 PM
Senior Member
 
Join Date: Dec 2006
Posts: 109
dwmcqueen is on a distinguished road
Thanks for the clarification. So, at minimum, the spread will be 1 pip.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 01-31-2007, 11:50 PM
Member
 
Join Date: Jun 2006
Posts: 56
timbobo is on a distinguished road
Quote:
Originally Posted by dwmcqueen
Thanks for the clarification. So, at minimum, the spread will be 1 pip.
I never heard about broker with so small spread. So it will be 2, 3 (more common for majors), 4, ..., 7, ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 02-01-2007, 04:47 AM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
omelette is on a distinguished road
Quote:
Originally Posted by timbobo
I never heard about broker with so small spread. So it will be 2, 3 (more common for majors), 4, ..., 7, ...
No Metatrader broker anyway. However, InteractiveBrokers offers 0.5 spread on majors most of the time...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 02-02-2007, 11:42 AM
Junior Member
 
Join Date: Jul 2006
Location: Spain
Posts: 20
Oidunno is on a distinguished road
Just a thought..

Depending on how your using the spread info, you may need to watchout for broker spread widening.. newstime/illiquidity etc. I remember something in Cybertrader code about not relying on MarketInfo/spread return and actually running a bid/ask subtraction calc. I think MarketInfo/spread returns the brokers published spread.
May be wrong.. Not a programmer. Can reduce your room with tight sl/tp.
If your working in this area.. and have time..what might be an interesting little gismo for newstraders and scalpers would be a background script/ind/ea that logged changes to the spread with timestamp to a small csv file (or gave an alert?). Make interesting viewing and comparison for ascessing broker spread behaviour in volatile market conditions..I don't trade news, but it would be interesting to track..?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Meh Spread Indicator lowphat Indicators - Metatrader 4 14 06-08-2009 07:15 AM
Spread monitoring james2ko Indicators - Metatrader 4 19 05-28-2009 11:26 AM
Spread logger nezinu Expert Advisors - Metatrader 4 6 05-18-2009 07:50 AM
MT4 : Spread Betting smeden General Discussion 1 11-25-2006 04:02 PM
Checking for open position caldolegare Metatrader 4 1 01-26-2006 08:00 PM


All times are GMT. The time now is 02:57 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.