Hour(EURUSD) and Hour(GBPUSD)

 

Hello freinds,

I need your help.

I have an EA that have to do comparision between the Hour close price of EURUSD and Hour close price of GBPUSD.

Unfortunately, the historical data is not so full, and some brokers have broken historical data, so if I will compare the

historical data of H1 with shift=50, then it might be possible to compare the data of 1/8/10 H=12 (EURUSD) with 1/8/10 H=10 (GBPUSD),

and the results will be wronge.

To overcome this problem I will do camparision of the Day and the Hour, too.

I did not find a parameter called: HOUR(Symbol)...

Can somebody Help.

 

TimeHour(iTime(Symbol(),PERIOD_H1,i));


//z

 
zzuegg:

TimeHour(iTime(Symbol(),PERIOD_H1,i));


//z


Thankes

Reason: