//+------------------------------------------------------------------+
//|                                                 personalnote.mq4 |
//|                                                    Andrew Archer |
//|                                                                  |
//+------------------------------------------------------------------+
#property copyright "Andrew Archer"
#property link      ""

#property indicator_chart_window
//---- input parameters
extern string    Note="Change me to whatever you want.";
extern color     NoteColor=Red;
extern int       NoteSize=8;
extern int       NoteCorner=3;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
ObjectDelete("NoteToMe");
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   ObjectDelete("NoteToMe");
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int    counted_bars=IndicatorCounted();
//----
   if(ObjectFind("NoteToMe") != 0)
   {
      ObjectCreate("NoteToMe", OBJ_LABEL, 0, 0,0);
      ObjectSetText("NoteToMe", Note, NoteSize, "Arial", NoteColor);
      ObjectSet("NoteToMe",OBJPROP_XDISTANCE,10);
      ObjectSet("NoteToMe",OBJPROP_YDISTANCE,10);
      ObjectSet("NoteToMe",OBJPROP_CORNER,NoteCorner);
   }
   else
   {
   ObjectSetText("NoteToMe", Note, NoteSize, "Arial", NoteColor);
   ObjectSet("NoteToMe",OBJPROP_CORNER,NoteCorner);
   ObjectSet("NoteToMe",OBJPROP_XDISTANCE,10);
      ObjectSet("NoteToMe",OBJPROP_YDISTANCE,10);
   }
//----
   return(0);
  }
//+------------------------------------------------------------------+