Forex



Go Back   Forex Trading > Discussion Areas > Metatrader 4
Forex Forum Register More recent 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
  #21 (permalink)  
Old 11-03-2007, 02:24 AM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #22 (permalink)  
Old 12-06-2007, 12:51 PM
Junior Member
 
Join Date: Nov 2007
Posts: 26
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #23 (permalink)  
Old 02-20-2008, 02:25 PM
Member
 
Join Date: Sep 2007
Posts: 69
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #24 (permalink)  
Old 02-20-2008, 02:44 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,083
Blog Entries: 243
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #25 (permalink)  
Old 02-21-2008, 07:32 AM
Member
 
Join Date: Sep 2007
Posts: 69
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #26 (permalink)  
Old 02-21-2008, 09:21 AM
Administrator
 
Join Date: Sep 2005
Posts: 20,083
Blog Entries: 243
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #27 (permalink)  
Old 04-11-2008, 03:25 AM
Member
 
Join Date: Apr 2007
Posts: 62
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #28 (permalink)  
Old 04-11-2008, 06:56 AM
MiniMe's Avatar
Senior Member
 
Join Date: Nov 2006
Location: Montréal
Posts: 1,451
MiniMe is an unknown quantity at this point
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
__________________

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
  #29 (permalink)  
Old 04-11-2008, 10:36 AM
Member
 
Join Date: Apr 2007
Posts: 62
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #30 (permalink)  
Old 04-11-2008, 01:23 PM
Member
 
Join Date: Apr 2007
Posts: 62
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!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
Electra, forex magic number, magic, magic number


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


All times are GMT. The time now is 07:05 AM.



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