Text Label Position - page 2

 
Hi eevviiff,

are you sure the HLine label showing in your last code?

I try it but the HLine label doesn't show.

int start()
  {
//new bar?
string name="highLine";
double priceH=iHigh(Symbol(),PERIOD_D1,1);
   
            if(ObjectFined(name)==-1)
{
               ObjectCreate(name,OBJ_HLINE,0,0,priceH);
               ObjectSet(name,OBJPROP_COLOR,clrRed);
               ObjectSet(name,OBJPROP_WIDTH,1);
               ObjectSet(name,OBJPROP_STYLE,2);
}
//newbar
ObjectSetDouble(0,name,OBJPROP_PRICE,priceH);
 
FxTrader_:
Hi eevviiff,

are you sure the HLine label showing in your last code?

I try it but the HLine label doesn't show.

My last code was for moderator.

To use it add

name="Dlabel";
if(ObjectFind(name)==-1)
ObjectCreate(name, OBJ_TEXT, 0, Time[FirstVisibleBar()-6], priceH); 
               ObjectSetText(name, " D1 H Alert", 8, "Arial", White); 
ObjectSetDouble(0,name,OBJPROP_PRICE,priceH);
 
thank you
Reason: