high low previous day in a certain hour range? mt4 help!

 

Hello, I currently have this code that shows the high and low of the previous day but I need it to show the high and low of the previous day but at a specific time it would be from 23:00 to 14:00, how could I do it? I have no knowledge of programming!

const string h0="H0", h0S = "H0Str", h1="H1", h1S = "H1Str", l0="L0", l0S = "L0Str", l1="L1", l1S = "L1Str";
//+------------------------------------------------------------------+
int OnInit(){
   
   myFct(h1, h1S, clrGreen, "");
   myFct(l1, l1S, clrGreen, "");
   return(INIT_SUCCEEDED);
}
void OnDeinit(const int reason){
   
   ObjectDelete(h1);
   ObjectDelete(l1);
   ObjectDelete(h1S);
   ObjectDelete(l1S);
}
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,const int prev_calculated,const datetime &time[],const double &open[],const double &high[],const double &low[],const double &close[],const long &tick_volume[],const long &volume[],const int &spread[]){
      double high0 = iHigh(_Symbol, PERIOD_D1, 0), 
             high1 = iHigh(_Symbol, PERIOD_D1, 1),
              low0 = iLow(_Symbol, PERIOD_D1, 0) ,  
              low1 = iLow(_Symbol, PERIOD_D1, 1);
      datetime time0 = iTime(_Symbol, PERIOD_D1, 0), 
               time1 = iTime(_Symbol, PERIOD_D1, 1), 
                   t = Time[0];
     
      ObjectMove(0, h1, 0, time1, high1);
      ObjectMove(0, l1, 0, time1, low1);
      ObjectMove(0, h1S, 0, t, high1);
     ObjectMove(0, l1S, 0, t, low1);
return(rates_total);
}
//+------------------------------------------------------------------+
void myFct(string name, string name2, color clr, string txt){
   ObjectCreate(0, name, OBJ_HLINE, 0, 0, 0);
   ObjectSetInteger(0, name, OBJPROP_COLOR, 0, clr);
   ObjectCreate(0, name2, OBJ_TEXT, 0, 0, 0);
   ObjectSetText(name2, txt, 12, NULL, clr);
   ObjectSetInteger(0, name2, OBJPROP_ANCHOR, ANCHOR_CENTER);
}


 
alfredo marrero I have no knowledge of programming!
  1. Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
              General rules and best pratices of the Forum. - General - MQL5 programming forum 2019.05.06
              Messages Editor

  2. Help you with what? You haven't stated a problem, you stated a want.
         How To Ask Questions The Smart Way. 2004
              Prune pointless queries.

    You have only four choices:

    1. Search for it. Do you expect us to do your research for you?

    2. Beg at:

    3. MT4: Learn to code it.
      MT5: Begin learning to code it.

      If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.

    4. or pay (Freelance) someone to code it. Top of every page is the link Code Base.
                Hiring to write script - General - MQL5 programming forum 2019.08.21

    We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
              No free help 2017.04.21

  3. -Find bar of the same time one day ago - MQL4 programming forum 2017.10.06

  4.       double high0 = iHigh(_Symbol, PERIOD_D1, 0),

    On MT4: Unless the current chart is that specific symbol(s)/TF(s) referenced, you must handle 4066/4073 errors before accessing candle/indicator values.
              Download history in MQL4 EA - Forex Calendar - MQL4 programming forum - Page 3 #26.4 2019.05.20
    The function linked to, opens a hidden chart for the symbol/TF in question (if not already open), thus updating history, and temporarily placing the symbol on Market Watch (if not already there), so SymbolInfoDouble(symbol, SYMBOL_BID) or MarketInfo(symbol, MODE_BID) don't also return zero on the first call.