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.
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.
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?
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.
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
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 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.
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.
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 "
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"?