Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > Metatrader 4


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
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 12-08-2006, 11:29 AM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,159
matrixebiz is on a distinguished road
So if I use 1111 and you use 1111 we are still ok? adn we are on the same platform. Sorry, just confused a bit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 12-08-2006, 11:33 AM
Kalenzo's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 696
Kalenzo is on a distinguished road
Quote:
Originally Posted by matrixebiz
So if I use 1111 and you use 1111 we are still ok? adn we are on the same platform. Sorry, just confused a bit
Yes, if we both open accounts in the same broker, and we both be using the same magic numbers at the same broker, they will work fine. Magic number is only for inside use of one metatrader installation. It will also work if you will install metatrader twice in separated folders and run both installations with the same broker with the same magic.
__________________
You need proffesional mql coder? Contact me! I will help you!
........................................
http://www.fxservice.eu/
........................................
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 12-08-2006, 11:37 AM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,159
matrixebiz is on a distinguished road
Quote:
Originally Posted by Kalenzo
Yes, if we both open accounts in the same broker, and we both be using the same magic numbers at the same broker, they will work fine. Magic number is only for inside use of one metatrader installation. It will also work if you will install metatrader twice in separated folders and run both installations with the same broker with the same magic.
Ok, got it now thanks. It's just to help my installation of MT4 on my own machine.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 12-09-2006, 04:39 AM
Senior Member
 
Join Date: Oct 2006
Posts: 104
antone is on a distinguished road
Quote:
Originally Posted by Kalenzo
You mean - you have ea that controls orders eg, by magic number 11111 and you want to open manually another trade and set the magic for that manual order to 11111 so the ea could control it?
i manually take orders.. so how do i do it?

yes, so how do i use the magic number?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 12-09-2006, 08:27 AM
Kalenzo's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 696
Kalenzo is on a distinguished road
Quote:
Originally Posted by antone
i manually take orders.. so how do i do it?

yes, so how do i use the magic number?
It is impossible to input magic number for manual trade. If you want to manage choosen trades by ea, you should use order comment instead magic number.
__________________
You need proffesional mql coder? Contact me! I will help you!
........................................
http://www.fxservice.eu/
........................................
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 12-10-2006, 02:33 AM
Senior Member
 
Join Date: Oct 2006
Posts: 104
antone is on a distinguished road
Quote:
Originally Posted by Kalenzo
It is impossible to input magic number for manual trade. If you want to manage choosen trades by ea, you should use order comment instead magic number.
thanks for your reply..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 09-22-2007, 01:57 AM
Member
 
Join Date: Dec 2006
Posts: 30
Nomura is on a distinguished road
Can MetaTrader do it ?

Quote:
Originally Posted by Kalenzo View Post
You mean - you have ea that controls orders eg, by magic number 11111 and you want to open manually another trade and set the magic for that manual order to 11111 so the ea could control it?
Kalenzo,
It is good for semi-manual traders who want eas to manage orders with MM only. Can MetaTrader do it ?
Thanks in advance.
Nomura
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 09-25-2007, 09:32 PM
lepiricus's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 210
lepiricus is on a distinguished road
How to code a magic number?

Hello,

I am trying to build my 1st EA and I got alot of help from here
Expert Advisor Builder for MetaTrader 4

Its nothing fancy, and sucks something fierce but I am just building it to learn

I would like to put a magic number function in the code. Does anyone have a basic code I could use to associate a magic number with the EA's trades.

I couldn't find how to do it from that site.

Thanks!
__________________
All your pips are belong to us!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 11-02-2007, 08:43 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,159
matrixebiz is on a distinguished road
Magic Numbers in EA's

I have an EA on GBP/JPY running three charts within the same platform: 5M, 15M and 30M
The EA is assigning different Magic Numbers for each chart which is good so open and close of an order is handled correctly.
Now my question is, once all the trades are closed how can I tell which chart or Magic Number closed the trade ??
The history detailed report doesn't list the Magic Number that controlled each trade. Does it? maybe I need to have an option triggered to show me the Magic number ??
What I need to know of course is if I have a loosing trade which TF chart made that trade.
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 11-02-2007, 10:00 PM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 704
wolfe is on a distinguished road
Quote:
Originally Posted by matrixebiz View Post
I have an EA on GBP/JPY running three charts within the same platform: 5M, 15M and 30M
The EA is assigning different Magic Numbers for each chart which is good so open and close of an order is handled correctly.
Now my question is, once all the trades are closed how can I tell which chart or Magic Number closed the trade ??
The history detailed report doesn't list the Magic Number that controlled each trade. Does it? maybe I need to have an option triggered to show me the Magic number ??
What I need to know of course is if I have a loosing trade which TF chart made that trade.
Thanks
I'm assuming you have the same EA attached to 3 different charts with 3 different time frames, all the same currency pair. Right?

You could probably code the EA to have a Print statement to the journal after an OrderClose() function telling you which time frame was closed. That's my thought.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
Electra, magic number

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
Magic Number question Yoda_Glenn Expert Advisors - Metatrader 4 1 02-22-2007 08:26 AM
MT4 Magic Number DeadEye96 Expert Advisors - Metatrader 4 2 09-19-2006 10:05 PM
How do I modify the magic number on an order? Aaragorn General Discussion 7 07-17-2006 05:46 PM
magic number caldolegare Metatrader 4 4 03-19-2006 05:28 AM


All times are GMT. The time now is 07:41 PM.



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