Bitmaps not on foreground

 

Hello,

i want my bitmaps on foreground. Thought, just set a flag and that's it. Unfortunately, it is not.

   bool              CreateBitmap(string name,
                      datetime              time=0,            // anchor point time
                      double                price=0,           // anchor point price
                      const string          file="",           // bitmap file name
                      const int             width=60,          // visibility scope X coordinate
                      const int             height=40,         // visibility scope Y coordinate
                      const long            chart_ID=0,        // chart's ID
                      const int             sub_window=0,      // subwindow index
                      const int             back=0,        // in the background
                      const long            z_order=0)         // priority for mouse click
     {
      //--- set anchor point coordinates if they are not set
      ObjectDelete(0,name);
      //--- reset the error value
      ResetLastError();
      //--- create a bitmap
      if(!ObjectCreate(chart_ID,name,OBJ_BITMAP,sub_window,time,price))
        {
         Print(__FUNCTION__,could not create bitmap. EC = ",GetLastError());
         return(false);
        }
      //--- set the path to the image file
      if(!ObjectSetString(chart_ID,name,OBJPROP_BMPFILE,file))
        {
         Print(__FUNCTION__,
               ": failed to load the image! Error code = ",GetLastError());
         return(false);
        }
      ObjectSetInteger(chart_ID,name,OBJPROP_XSIZE,width);
      ObjectSetInteger(chart_ID,name,OBJPROP_YSIZE,height);


      
      ObjectSetInteger(chart_ID,name,OBJPROP_BACK,0);
      ObjectSetInteger(chart_ID,name,OBJPROP_ZORDER,z_order);
      return(true);
     }

Bitmaps visible, but below chart. I could set chart into background but then my indicator line is above chart, which should be the case.

Isn't it possible to selectively place bitmap objects below/above chart ?

Thank you

 
chinaski:

Do not double post!!

I have deleted your duplicate topic!

 
chinaski:

Hello,

i want my bitmaps on foreground. Thought, just set a flag and that's it. Unfortunately, it is not.

Bitmaps visible, but below chart. I could set chart into background but then my indicator line is above chart, which should be the case.

Isn't it possible to selectively place bitmap objects below/above chart ?

Thank you

Keith Watford:

Do not double post!!

I have deleted your duplicate topic!

Fist posted for MT4. Then i realized same applies for MT5. As MT4 and MT5 are different threads, i did the double post.

Besides deleting unloved posts, what about a fix ?

Thank you