//+------------------------------------------------------------------+
//|                                                        spred.mq4 |
//+------------------------------------------------------------------+
#property indicator_chart_window
int objekt(string Trade)
   {
    ObjectCreate("objekt",OBJ_LABEL,0,0,0);
    ObjectSetText("objekt",Trade, 10,"Times New Roman",MediumSeaGreen);
    ObjectSet("objekt", OBJPROP_CORNER, 1);
    ObjectSet("objekt", OBJPROP_XDISTANCE, 20);
    ObjectSet("objekt", OBJPROP_YDISTANCE, 40);
   }
//------------------------------------------------------  
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
//---
int spred=MarketInfo(Symbol(),MODE_SPREAD);
string s=DoubleToStr(spred,0);
objekt(s);
Sleep(10000);
//---  
  }
//+------------------------------------------------------------------+