Download MetaTrader 5
To add comments, please log in or register
Subscribe to signals right in MetaTrader. It is easy!
Mehrdad Shiri
4447
Mehrdad Shiri 2013.05.05 00:04 

hi ;

how to compare 2 time array;

for ( int w==0; time1[w]<=time2[0]; w++ )
Alain Verleyen
Moderator
30178
Alain Verleyen 2013.05.05 00:10  
TIMisthebest:

hi ;

how to compare 2 time array;

What's you goal ?
Mehrdad Shiri
4447
Mehrdad Shiri 2013.05.05 00:14  
angevoyageur:

thank for fast reply;

 there is 2 time array ; like below , i want to compare them  and use for a loop

for ( int w==0; time1[w]<=time2[0]; w++ )

how to compare

time1[w]<=time2[0]
Alain Verleyen
Moderator
30178
Alain Verleyen 2013.05.05 00:28  
TIMisthebest:

thank for fast reply;

 there is 2 time array ; like below , i want to compare them  and use for a loop

how to compare

Obviously you want to compare them, but for what purpose ? If I understand what you are trying to do, maybe I can help you.
Mehrdad Shiri
4447
Mehrdad Shiri 2013.05.05 00:31  
angevoyageur:
Obviously you want to compare them, but for what purpose ? If I understand what you are trying to do, maybe I can help you.
in that domain in my indicator, i look for find max /min value of a parameter .
Documentation on MQL5: Array Functions / ArrayMaximum
Documentation on MQL5: Array Functions / ArrayMaximum
  • www.mql5.com
Array Functions / ArrayMaximum - Documentation on MQL5
Alain Verleyen
Moderator
30178
Alain Verleyen 2013.05.05 00:36  
TIMisthebest:
in that domain in my indicator, i look for find max /min value of a parameter .

And how this parameter is related to time1/time2 arrays ?

Mehrdad Shiri
4447
Mehrdad Shiri 2013.05.05 00:38  
angevoyageur:

And how this parameter is related to time1/time2 arrays ?

there is no related between parameter and 2 array time ; time1[] & time2[]

Alain Verleyen
Moderator
30178
Alain Verleyen 2013.05.05 00:39  
TIMisthebest:

there is no related between parameter and 2 array time ; time1[] & time2[]

I am sorry but I don't understand anything on your issue.
Mehrdad Shiri
4447
Mehrdad Shiri 2013.05.05 00:42  
angevoyageur:
I am sorry but I don't understand anything on your issue.

oh;

time1[] & time2[] ; are date time

Alain Verleyen
Moderator
30178
Alain Verleyen 2013.05.05 00:46  
TIMisthebest:

oh;

time1[] & time2[] ; are date time

Yes, I understand that, and then ?
Mehrdad Shiri
4447
Mehrdad Shiri 2013.05.05 00:51  
angevoyageur:
Yes, I understand that, and then ?

in coding for

<=

between 2 array time ;

there is error .

how to define 

for ( int w==0; time1[w]<=time2[0]; w++ )
/ /12
To add comments, please log in or register