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
  #21 (permalink)  
Old 11-03-2007, 12:24 AM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,159
matrixebiz is on a distinguished road
Quote:
Originally Posted by wolfe View Post
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.
Ok, thanks. Yes it is EA dependant. If the EA doesn't have the code telling it to print the MagicNumber on the trade then it won't display it in the history.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 12-06-2007, 11:51 AM
Junior Member
 
Join Date: Nov 2007
Posts: 24
marine1983 is on a distinguished road
Magic number

Hi i'm a bit confused as to when to change the magic number. Do i change them when I attach the same EA to different charts, or should I leave them all the same. Or does this number only matter when you have 2 diffrent EA's running on the same charts?

Thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 02-20-2008, 01:25 PM
Member
 
Join Date: Sep 2007
Posts: 68
Ronald Raygun is on a distinguished road
Is this function possible?

I'm trying to develop an EA which--when opened--will open every currency pair available and trade according to the rules.

Given that my broker has somewhere in the neighborhood of 50 pairs available to trade, I don't really want to have to constantly click and open and click and open, etc.


On the other hand, can someone please explain the magicnumber principle?

I have always thought that the magicnumber is required if a terminal has more than 1 ea. Other programmers are telling me that if the EAs are on different symbols or different timeframes, but NEVER on the same symbol and timeframe, that I don't need to worry about setting a magic number.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 02-20-2008, 01:44 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,318
Blog Entries: 106
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
I moved your post to this thread where you can find the answer i hope.
The other thread related to this subject is this one Automatic Magic Function Required
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 02-21-2008, 06:32 AM
Member
 
Join Date: Sep 2007
Posts: 68
Ronald Raygun is on a distinguished road
Thank you for your efforts NewDigital, I'm familiar with both threads, however, neither seem to answer my question fully, perhaps I wasn't clear enough.

I know what MagicNumber DOES: it helps an EA identify which trade belongs to it.

I don't know when a MagicNumber is NEEDED.

Is it needed when...
  • ...multiple EAs are attached on a terminal?
  • ...there are several EAs for one pair?
  • ...two or more EAs use the same timeframe?
  • ...any combination of the above?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 02-21-2008, 08:21 AM
Administrator
 
Join Date: Sep 2005
Posts: 16,318
Blog Entries: 106
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
I am always trying to use different magic numbers for any case you described. Sometimes the coders say: "use same magic number with my EA". If the coder did not say like that so I will use dffrent magic number for any EA/pair/timeframe combination.

For example:
- Codersguu said that his MaChannel (elite section) can be used with same magic number if trading on one copy of Metatrader on few charts but for MaChannel only on Metatrader;
- davidke20 said the same about his 10p3v0.03 (public EA);
- project1972 said the same about his Alpha and Electra EAs (elite section).
All those cases are about testing just one EA with many charts.

I understand magic number as personal protection: if I use different magic number for any case so I am sure that EA will know exactly which order should be modified or closed for example.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27 (permalink)  
Old 04-11-2008, 02:25 AM
Member
 
Join Date: Apr 2007
Posts: 54
scalpmaster is on a distinguished road
How to halt other EAs when one is running in the same account?

Say I want to maximize my capital & time in the same account by having more than one EA attached but I do not want more than one to run which might blow up my account, is there a way to do it? Otherwise the account is just sitting there, waiting for only one EA signal to occur.

Once that EA has finished it's run(taken profit or stoploss), all attached EAs
becomes eligible again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28 (permalink)  
Old 04-11-2008, 05:56 AM
MiniMe's Avatar
Senior Member
 
Join Date: Nov 2006
Location: Montréal
Posts: 1,186
MiniMe is on a distinguished road
Quote:
Originally Posted by scalpmaster View Post
Say I want to maximize my capital & time in the same account by having more than one EA attached but I do not want more than one to run which might blow up my account, is there a way to do it? Otherwise the account is just sitting there, waiting for only one EA signal to occur.

Once that EA has finished it's run(taken profit or stoploss), all attached EAs
becomes eligible again.
a simple way of doing that is to give all the experts the same magic number , then check the open trades NOT by the currency but WITH the magic number so if there is an open trade dont open a new trade till that one close ... add that code to all the expert " a funciton to check the open trades "

Simple and it works
__________________
Risk comes from not knowing what you're doing
Never argue with an idiot. They drag you down to their level then beat you with experience
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29 (permalink)  
Old 04-11-2008, 09:36 AM
Member
 
Join Date: Apr 2007
Posts: 54
scalpmaster is on a distinguished road
Quote:
Originally Posted by MiniMe View Post
a simple way of doing that is to give all the experts the same magic number , then check the open trades NOT by the currency but WITH the magic number so if there is an open trade dont open a new trade till that one close ... add that code to all the expert " a funciton to check the open trades "

Simple and it works
How to "check the open trades NOT by the currency but WITH the magic number so if there is an open trade dont open a new trade till that one close ... add that code to all the expert " a funciton to check the open trades"?

What does that code look like?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #30 (permalink)  
Old 04-11-2008, 12:23 PM
Member
 
Join Date: Apr 2007
Posts: 54
scalpmaster is on a distinguished road
Besides Magic Number, What other methods can be used for halting EAs?
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 01:17 AM.



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