Forex
Google

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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
  #1 (permalink)  
Old 03-05-2006, 09:38 AM
halfasleep's Avatar
halfasleep halfasleep is offline
Member
 
Join Date: Nov 2005
Location: Vancouver
Posts: 49
halfasleep is on a distinguished road
same EA on same chart but different time

I would like to know if it's possible to use the same EA for the same pair but on different time ? i.e. the EUR/USD using the same EA but on the 30 min chart, 1hr chart and the 4hr chart using the same server. I hope you guys can understand my question.
__________________
I'd rather be scared to death than bored to death
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-05-2006, 10:25 AM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 15,224
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
Quote:
Originally Posted by halfasleep
I would like to know if it's possible to use the same EA for the same pair but on different time ? i.e. the EUR/USD using the same EA but on the 30 min chart, 1hr chart and the 4hr chart using the same server. I hope you guys can understand my question.
Yes. It is possible.
Magic number my be enough sometimes. But in most cases it is necessary to do some improvement inside the code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-05-2006, 12:56 PM
Mohammed's Avatar
Mohammed Mohammed is offline
Senior Member
 
Join Date: Mar 2006
Posts: 119
Mohammed is on a distinguished road
Lightbulb

Quote:
Originally Posted by halfasleep
I would like to know if it's possible to use the same EA for the same pair but on different time ? i.e. the EUR/USD using the same EA but on the 30 min chart, 1hr chart and the 4hr chart using the same server. I hope you guys can understand my question.
Hi halfasleep,

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-05-2006, 01:18 PM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 15,224
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
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-05-2006, 01:38 PM
Mohammed's Avatar
Mohammed Mohammed is offline
Senior Member
 
Join Date: Mar 2006
Posts: 119
Mohammed is on a distinguished road
Arrow

Quote:
Originally Posted by newdigital
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.
newdigital,

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-06-2006, 08:59 AM
halfasleep's Avatar
halfasleep halfasleep is offline
Member
 
Join Date: Nov 2005
Location: Vancouver
Posts: 49
halfasleep is on a distinguished road
Thanx guys , I'm pretty new at this . What is magic number ?
__________________
I'd rather be scared to death than bored to death
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


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


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