Problem create a graphical objects at the corner of main window

 
//+------------------------------------------------------------------+
//|                                                       Corner.mq4 |
//|                        Copyright 2013, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright 2013, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   ObjectDelete("Price_A");
   ObjectDelete("Spread_A");
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()

   double Bid_Price = NormalizeDouble(MarketInfo(Symbol(), MODE_BID), Digits);
   
   string sp_string = "";
   double spread_B = (Ask - Bid) / Point;
   sp_string = DoubleToStr(spread_B, Digits - 4);

  {
   ObjectCreate("Price_A", OBJ_LABEL, 0, 0, 0);
   ObjectSet("Price_A", OBJPROP_CORNER, 1);
   ObjectSet("Price_A", OBJPROP_XDISTANCE, 10);
   ObjectSet("Price_A", OBJPROP_YDISTANCE, 15);
   ObjectSetText("CornerName",DoubleToStr(Bid_Price, Digits),20,"Arial",White);
    
   ObjectCreate("Spread_A", OBJ_LABEL, 0, 0, 0);
   ObjectSet("Spread_A", OBJPROP_CORNER, 1);
   ObjectSet("Spread_A", OBJPROP_XDISTANCE, 100);
   ObjectSet("Spread_A", OBJPROP_YDISTANCE, 15);
   ObjectSetText("Spread_A",sp_string,20,"Arial",White);
   
   

//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
Want to add bid price and spread at the corner of the main window. Please give advise
 
FXEWEN: Please give advise
  1. State a question or a problem - No mind readers here.
  2. ObjectSet("Price_A", OBJPROP_YDISTANCE, 15);
    ObjectSetText("CornerName",DoubleToStr(Bid_Price, Digits),20,"Arial",White);
    

 
FXEWEN:
Want to add bid price and spread at the corner of the main window. Please give advise


clock displaying time in main chart  

See how it is done with this indicator 

 

Successful set a text inside the chart. Do below code display the current bid price

double Bid_Price = NormalizeDouble(MarketInfo(Symbol(), MODE_BID), Digits);
Already edit

ObjectSet("Price_A", OBJPROP_YDISTANCE, 15);
ObjectSetText("Price_A",DoubleToStr(Bid_Price, Digits),20,"Arial",White);
Reason: