View Single Post
  #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.
Reply With Quote