Download MetaTrader 5

Text Label Position - page 2

To add comments, please log in or register
fxtrader_
247
fxtrader_  
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);
Vasyl Nosal
18752
Vasyl Nosal  
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);
fxtrader_
247
fxtrader_  
thank you
12
To add comments, please log in or register