first bar of 5min chart

 

newbie trying to learn mql4 here.

I want to write an EA that will take the high low of the first bar of the day in a 5 min chart to draw a fibo retractment, and then trade based on those lines.  

Have been struggling with finding the first bar of the day.  Any guidance will be greatly appreciated.

Thanks in advance~

 
datetime  bod = date();
int      iBod = iBarShift(_Symbol, PERIOD_M5, bod);
double   hBod = iHigh(_Symbol, PERIOD_M5, iBod);

          Please help with one trade per day code - Day Trading - Expert Advisors and Automated Trading - MQL5 programming forum #3.2 (2020)