Vertical line with Style -DASHDOTDOT not showing why?

 

(1) Vertical line with Style -DASHDOTDOT not showing why?

(2) Also, not showing the data and time ~

  // Plot vertical lines.......
    if (StringFind(prop,"V",0) >= 0)  { 
      if (!CandlesMustExist  ||  exist1 >= 0)   {
        objname = UniqueID+"-"+i+"-va";
        ObjectCreate(objname,OBJ_VLINE,0,dt1,0);
        ObjectSet(objname,OBJPROP_COLOR,LineColor);
        ObjectSet(objname,OBJPROP_WIDTH,width);
        ObjectSet(objname,OBJPROP_STYLE, STYLE_DASHDOTDOT);
        ObjectSet(objname,OBJPROP_TIMEFRAMES,vis);
        if (StringFind(prop,"^",0) >= 0)    ObjectSet(objname,OBJPROP_BACK,true);
      }  
      if (StringFind(prop,"VV",0) >= 0)  {
        if (!CandlesMustExist  ||  exist3 >= 0)   {
          objname = UniqueID+"-"+i+"-vb";
          ObjectCreate(objname,OBJ_VLINE,0,dt3,0); 
          ObjectSet(objname,OBJPROP_COLOR,LineColor);
          ObjectSet(objname,OBJPROP_WIDTH,width);
          ObjectSet(objname,OBJPROP_STYLE, STYLE_DASHDOTDOT);
          ObjectSet(objname,OBJPROP_TIMEFRAMES,vis);
          if (StringFind(prop,"^",0) >= 0)    ObjectSet(objname,OBJPROP_BACK,true);
    } } }
 
Does the code ever make_it to ObjectCreate() ?
 
paul.seldon:

(1) Vertical line with Style -DASHDOTDOT not showing why?

(2) Also, not showing the data and time ~

Did you check your list of Objects ? Ctrl + B if the Object exists you can't create it again, heck first, if it does exist you will need to move it . . .
 

Yes, it shows the solid lines. No matter I changed.

I will attach the src file at below.

I hope this could help myself better.

Files:
ny15_2359.mq4  74 kb
 
paul.seldon:

Yes, it shows the solid lines. No matter I changed.

I will attach the src file at below.

I hope this could help myself better.

I think you can only set the style on the thinnest line. Change the width and the style should work . . . assuming you are correctly setting the style.
 
RaptorUK:
I think you can only set the style on the thinnest line. Change the width and the style should work . . . assuming you are correctly setting the style.


I see. Thanks -

Reason: