Communication between 2 EAs

 
Hi,						
Is there a way to communicate 						
between 2 EAs?						
I mean: an EA works in H4 and at the same time another EA works in DAILY						
Can the first EA retrieve data from the second and how? 						
 Example : the H4 EA needs to know if the DAILY candle is red or green 						
Thanks						

 
grgmql:

The EA on H4 can just access and check the Daily time-frame. No need for the EAs to communicate.

 
Keith Watford:

The EA on H4 can just access and check the Daily time-frame. No need for the EAs to communicate.

Yes thanks. But which  MQL4 order can do this?
 

Analyze open and close from the daily candle with the current bar number.

 
Marco vd Heijden:

Analyze open and close from the daily candle with the current bar number.

Ok, but (running in time-frame H4) if I code Open[0] I get the Open of the H4 candle and my question is : how code the Open[0] of the Daily candle ?
 

Yes use

double open_D1=iOpen(Symbol(),PERIOD_D1,0);
double close_D1=iClose(Symbol(),PERIOD_D1,0);
 
Marco vd Heijden:

Yes use

Ok it is exactly what I was looking for.
Thank you very much
Reason: