|
|||||||
| 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 |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Quote:
Magic number my be enough sometimes. But in most cases it is necessary to do some improvement inside the code. |
|
||||
|
Quote:
Sure you can do that. You can use the same EA at any timeframe you want. But every EA has its manual and recommended timeframes. I think there's no need to use Magic Number or any to make modification in the EA code. You have only to change the T/F, S/L and T/S of the EA from the input window. The only thing you have to be sure that the code of the EA uses 0 for Timeframe parameter and not hard coded Timeframe. EX: iMA(NULL,0,Ema_Period,0,MODE_EMA,PRICE_CLOSE,0); The bold 0 is the Timeframe parameter. But if the code wrote like this: iMA(NULL,60,Ema_Period,0,MODE_EMA,PRICE_CLOSE,0); It will not work at any Timeframe buy H1 Timeframe For example the EMA CROSS EA of coders' guru works fine in any timeframe (except M1 and I didn't try it in W1 or MN). Hope everything is clear now.
__________________
There is a fine line between freedom of expression and hate literature. |
|
|||
|
If he wants to use the same EA simultaniously in one MetaTrader (for example, EA on EURUSD M15 and the same EA on EURUSDM5 using one Metatrader on the same time) so it needs to be improved in some cases. Because I have experience when the EA could not recognize which ticket (order) should be moved by trailing stop etc.
Besides, some EAs were coded to open the one order per pair (not per chart). But sometimes the magic numbers are enough. And you are right Mohammed: there are EAs which do not need any improvements. Daytrading EAs for example no need any improvements in this case. |
|
||||
|
Quote:
If the EA has been designed to open one only trade we have to respect the programmer limits. And the Magic member in the almost of the Expert Advisors is hrad coded (example #define MAGICMA 13) so, it's useful only to distinguish between multi EAs or the order opened manually.
__________________
There is a fine line between freedom of expression and hate literature. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help! Need Time Filter / Time mgt | smeden | Expert Advisors - Metatrader 4 | 10 | 04-13-2008 05:31 AM |
| MT4 Time difference to GMT time ?? | icm63 | Metatrader 4 | 2 | 04-25-2007 07:37 AM |
| ox chart | danho | Metatrader 4 | 2 | 04-14-2006 08:53 AM |