1st 4-hour of the WEEK

 

Dear Mladen, Mrtools and other coding expert friends,

Please help to make an INDI that show "the HIGH & LOW of the first 4-hour of the WEEK"like the attached picture.

Thanks and regards,

anton

 
anton1:
Dear Mladen, Mrtools and other coding expert friends,

Please help to make an INDI that show "the HIGH & LOW of the first 4-hour of the WEEK"like the attached picture.

Thanks and regards,

anton

The simplest way to get that data is the following :

int shift = iBarShift(NULL,PERIOD_H4,iTime(NULL,PERIOD_W1,0)+24*3600);

double week4High = iHigh(NULL,PERIOD_H4,shift);

double week4Low = iLow (NULL,PERIOD_H4,shift);
 

Hi mladen,

I am sorry for my poor knowledge about coding. Would you please complete it into an Indi?

Thanks and Regards,

anton

 
anton1:
Hi mladen,

I am sorry for my poor knowledge about coding. Would you please complete it into an Indi?

Thanks and Regards,

anton

anton

Try out this one : anton.mq4

Files:
anton.mq4  2 kb
 

Hhahahaa... Great. Its great.

Mladen,

Thanks a lot.

Best Regards,

anton

 
anton1:
Hhahahaa... Great. Its great.

Mladen,

Thanks a lot.

Best Regards,

anton

Good

Happy trading

 

Hi mladen,

Would you please to add 'block color' like the attached picture.

Thanks,

anton

Reason: