Download MetaTrader 5
To add comments, please log in or register
Have you developed an application? Publish it in Code Base!
fxtrader_
247
fxtrader_ 2016.03.07 16: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);
Vasyl Nosal
18346
Vasyl Nosal 2016.03.07 20: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);
fxtrader_
247
fxtrader_ 2016.03.07 21:32  
thank you
/ /12
To add comments, please log in or register