Forex



Go Back   Forex Trading > Discussion Areas > Metatrader 4 > Metatrader 3






Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 02-01-2006, 03:08 PM
Nicholishen's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 531
Nicholishen is on a distinguished road
MT3 Questions

I recently realized that broker (particularly interbank fx) spreads can diverge more than 10 pips. I am scalping using MT3, and I attempted to code an algorithm to stay out of the market in such times. As the code is fairly simple, i seem to have problems with the following:

Code:
define: spread(2);

tt= spread * Point;
spr =ask - bid;

if spr != tt then 
	{
	sd++;
	 
	Print ("SPREAD DIFF ", spr);
	FileWrite(h1,bid,ask,spread,TimeToStr(CurTime),sd);
	}
	
Comment("BID (",bid,")    Ask (",ask,")   Spread (",spr,")");
When the result of spr is .0002 and tt = .0002 the expression for some reason still results as true. Any ideas to why?

Last edited by Nicholishen; 02-01-2006 at 03:13 PM.
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 02-01-2006, 04:10 PM
Member
 
Join Date: Nov 2005
Posts: 56
4xCoder is on a distinguished road
You may be running into a floating point issue. I haven't wriiten MT3 in a long time but try something like below to see if it fixes the problem.

tt= spread ;
spr =(ask - bid)/Point;

if Abs(spr-tt) < .5 then
end
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 08-18-2008, 05:48 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,215
matrixebiz is on a distinguished road
Anyone have a link to download MT3?
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 08-18-2008, 07:47 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,017
Blog Entries: 235
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
MT3 Alpari broker (for demo accounts only) http://www.alpari.ru/files/mtsetup.exe
__________________
My blog on TSD
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 08-24-2008, 12:37 PM
>Apocalypto<'s Avatar
Junior Member
 
Join Date: Apr 2008
Location: Melboune, Australia
Posts: 2
>Apocalypto< is on a distinguished road
MT3 Custom indicators.

Where the indicators on MT3 transferable to MT4?

The script language stays the same right? I am wondering as if MT5 is made will my MT4 indicators be able to run on it?

Cheers
Joseph
__________________
EUR/USD Trader..........
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 08-25-2008, 02:25 AM
Linuxser's Avatar
User Root
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 4,407
Blog Entries: 56
Linuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond repute
Quote:
Originally Posted by >Apocalypto< View Post
Where the indicators on MT3 transferable to MT4?

The script language stays the same right? I am wondering as if MT5 is made will my MT4 indicators be able to run on it?

Cheers
Joseph
MT3 to MT4 is not compatible. MT4 to MT5 we will see but seems they aren't. .
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 08-27-2008, 12:00 PM
>Apocalypto<'s Avatar
Junior Member
 
Join Date: Apr 2008
Location: Melboune, Australia
Posts: 2
>Apocalypto< is on a distinguished road
Quote:
Originally Posted by Linuxser View Post
MT3 to MT4 is not compatible. MT4 to MT5 we will see but seems they aren't. .
Thanks for the reply,

I looked at MT5 seems they have a new script. So all the MT4 custom indicators will be no more?

Is there an easy way to transfer MT4 indicators to MT5?

Cheers
Joseph,
__________________
EUR/USD Trader..........
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 08-27-2008, 11:40 PM
Linuxser's Avatar
User Root
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 4,407
Blog Entries: 56
Linuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond repute
Quote:
Originally Posted by >Apocalypto< View Post
I looked at MT5 seems
We can't say a word till the MQL5 will be released. Today we don't know anithing about.
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
  #9 (permalink)  
Old 09-11-2008, 11:17 AM
MT4free.com's Avatar
Junior Member
 
Join Date: Aug 2008
Posts: 25
MT4free.com is on a distinguished road
hi

all the major brokers will have to buy the mt5 ...so i gess alot of broker will have abig problam to spent more then 100K on an "update".

let see what will happen.
__________________
VISIT US AT:
http://WWW.MT4free.com
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
  #10 (permalink)  
Old 09-12-2008, 05:31 AM
Junior Member
 
Join Date: Mar 2008
Posts: 21
Dzietski is on a distinguished road
Quote:
Originally Posted by MT4free.com View Post
all the major brokers will have to buy the mt5 ...so i gess alot of broker will have abig problam to spent more then 100K on an "update".

let see what will happen.

when is mt5 likely to be released?
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

Tags
forex

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
Basic questions ... cardio Questions 91 08-30-2009 05:56 PM
Questions on simple EA dwmcqueen Metatrader 4 1 01-04-2007 02:55 PM
2 questions on codergurus course hayseed Setup Questions 3 12-07-2006 11:56 PM
Beginner questions. Thanks Locutus General Discussion 2 10-11-2006 08:26 PM


All times are GMT. The time now is 01:21 AM.



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