Open Every 30 minutes

 

Hi.


I need some help, again, sorry.


How must I change the following code lines in order to obtain that the line starts every 30 minutes?:


for(i = limit - 1; i >= 0; i--)
{
if( TimeHour(Time[i]) != TimeHour(Time[i+1]) ) { int t = i ; }
opn[i] = iOpen(NULL,0,t);
}


I attach the program.


Thanks in advance for your help.


gus

Files:
 
gus:

Hi.


I need some help, again, sorry.


How must I change the following code lines in order to obtain that the line starts every 30 minutes?:


for(i = limit - 1; i >= 0; i--)
{
if( TimeHour(Time[i]) != TimeHour(Time[i+1]) ) { int t = i ; }
opn[i] = iOpen(NULL,0,t);
}


I attach the program.


Thanks in advance for your help.


gus


I already solved the problem.
Thanks.
gus
Reason: