Compairing two diffrent pairs

 

Hey everybody. I would neet some help with my EA.
Thats what i need to get coded and i dont know how:
I would like to place the EA on a 15min chart (eg. USDGBP) and compare two other charts, to get an alert, in a message

box. I thought something like this:
I dont know how to programm the bold parts. does somebody have an idear how to programm it?

If ( (Eurusd.open-Eurusd.bid)*point > 10 && (Eurjpy.open - eurjpy.bid)*point > 10 )

{

Some kind of message (if possible a message box alert) = "ALERT";

}

Thanks for any help.

Sincerly

Ivo

 

Please have a look on Timeseries access and MarketInfo() also MessageBox()

 
brother3th wrote >>

Please have a look on Timeseries access and MarketInfo() also MessageBox()

Thanks alot.

This is what i was looking for.

Reason: