Download MetaTrader 5

compare between 2 time array ; how to define?

To add comments, please log in or register
Mehrdad Shiri
4512
Mehrdad Shiri  

hi ;

how to compare 2 time array;

for ( int w==0; time1[w]<=time2[0]; w++ )
Alain Verleyen
Moderator
31183
Alain Verleyen  
TIMisthebest:

hi ;

how to compare 2 time array;

What's you goal ?
Mehrdad Shiri
4512
Mehrdad Shiri  
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
31183
Alain Verleyen  
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
4512
Mehrdad Shiri  
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
31183
Alain Verleyen  
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
4512
Mehrdad Shiri  
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
31183
Alain Verleyen  
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
4512
Mehrdad Shiri  
angevoyageur:
I am sorry but I don't understand anything on your issue.

oh;

time1[] & time2[] ; are date time

Alain Verleyen
Moderator
31183
Alain Verleyen  
TIMisthebest:

oh;

time1[] & time2[] ; are date time

Yes, I understand that, and then ?
Mehrdad Shiri
4512
Mehrdad Shiri  
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