32 Bit bmp image does not display on MT5 chart

 

Hi good day


I trust that everyone is well. I have been struggling with this issue to get a 32 bit bmp image displayed on my MT5 chart. The code for my indicator compiles without errors or warnings but I just cannot get the image displayed. Am I missing something? I have added it as a resource as well and the below line of code under OnInit. Included Canvas and Controls mqh files later and defined them in the code yet it does not display. Can someone please hit me over the head to clear this conundrum for me because I feel I am missing something. 

Declared below as a #resource

/*+------------------------------------------------------------------+
 |                                            Avenger Indicator V2.0 |
 |                      Claassen Capital Markets - Copyright © 2023  |
 |                                                                   |
 +------------------------------------------------------------------+*/
#property copyright "Claassen Capital Markets © 2023"
#property link      "https://www.claassencapitalmarkets.com"

#property indicator_chart_window
#property indicator_buffers 5
#property indicator_plots 4
#property indicator_color1 clrYellowGreen
#property indicator_color2 clrLightCoral
#property indicator_color3 clrMagenta
#property indicator_color4 clrGoldenrod
#resource "\\Images\\avenger.bmp"


The code after OnInit:

// Create the logo

ObjectCreate(0, "logo", OBJ_BITMAP, 0, 0, 0);
ObjectSetString(0, "logo", OBJPROP_BMPFILE,0, "\\::MQL5\\Images\\avenger.bmp");
ObjectSetInteger(0, "logo", OBJPROP_CORNER, CORNER_RIGHT_LOWER);
ObjectSetInteger(0, "logo", OBJPROP_XDISTANCE, 80);
ObjectSetInteger(0, "logo", OBJPROP_YDISTANCE, 300);
ObjectSetInteger(0,"test",OBJPROP_BACK,true);


I am fairly new to coding in MQL5 but have learned a lot so far but just cannot seem to get pass this issue. Guidance or directing to correct articles, yes I checked a lot of them the issue persists, will be highly appreciated.

Thank you in advance.

 
Yonique Claassen:
ObjectSetString(0, "logo", OBJPROP_BMPFILE,0, "\\::MQL5\\Images\\avenger.bmp");

Try this :

ObjectSetString(0, "logo", OBJPROP_BMPFILE,0, "::Images\\avenger.bmp");