//+------------------------------------------------------------------+
//|                                                    OBJ_LABEL.mq5 |
//|                                  Copyright 2026, MetaQuotes Ltd. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2026, MetaQuotes Ltd."
#property link      "https://www.mql5.com"
#property version   "1.00"
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
	string font = "Segoe UI",
			 name = "LABEL",
			 text = "MN1";
	int	 size = 17;
	uint iw = 0, ih = 0;
//---
   TextSetFont(font,-10*size,FW_NORMAL,0);
	TextGetSize(text,iw,ih);
//---
	ObjectCreate	 (0,name,OBJ_LABEL,        0,0,0);
   ObjectSetInteger(0,name,OBJPROP_CORNER,   CORNER_RIGHT_LOWER);
   ObjectSetInteger(0,name,OBJPROP_ANCHOR,   ANCHOR_LOWER);
   ObjectSetInteger(0,name,OBJPROP_XDISTANCE,100);
   ObjectSetInteger(0,name,OBJPROP_YDISTANCE,ih);
   ObjectSetString (0,name,OBJPROP_TEXT,     text);
   ObjectSetString (0,name,OBJPROP_FONT,     font);
   ObjectSetInteger(0,name,OBJPROP_FONTSIZE, size);
   ObjectSetInteger(0,name,OBJPROP_HIDDEN,   false);
	ChartRedraw();

  }
//+------------------------------------------------------------------+
