Text Label Position

Back to topics list  | 1 2 To post a new topic, please log in or register
avatar
87
FxTrader_ 2016.03.07 17:51 #
 
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);
avatar
872
eevviill 2016.03.07 21:43 #
 
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);

 

avatar
87
FxTrader_ 2016.03.07 22:32 #
 
thank you
Back to topics list   | 1 2  

To add comments, please log in or register