small code to check / need your help / tracing rectangle at predefined hours

 

Hi,

I am trying to create a simple indicator.

Everyday at 12 am I want the the system to draw a rectangle from the low of 11 am to the high of 3 pm.

I am stuck honestly as nothing is appearing on my screen, can somone give me a short insight on what I could be doing wrong ? Many thanks in advance, below the code:

#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
  
  for(int x=1;x<=100;x++)
   {
   int    counted_bars=IndicatorCounted(), token;
   
   if (Hour()==11)
   int h=TimeHour(CurTime());
   ObjectCreate("Analysis zone"+token,OBJ_RECTANGLE,0,Hour(),Low[h],Hour()+2,High[h+2]);
   ObjectSet("Analysis zone"+token,OBJPROP_SCALE,1.0);
   ObjectSet("Analysis zone"+token,OBJPROP_COLOR,Red);
   }
 
Before you start getting fancy may I suggest you just put numbers in to the object calls and see if you can get a rectangle where you think it should. Then you would know the creation commands work or not.
 
The demo version of LondonBreakOut might satisfy your needs as an indicator.
Files: