Hi,I'm trying to display a .bmp file in a chart (not relative to a time/price, but to its coordinates from the top-left corner).I have tried this script https://docs.mql4.com/constants/objectconstants/enum_object/obj_bitmap_label but haven't managed to get it working. I got my file, called "30x28.bmp" in the Images folder from the data folder.This is my current try:
ObjectCreate(0, "logo", OBJ_BITMAP_LABEL, 0, 0, 0);
ObjectSetString(0, "logo", OBJPROP_BMPFILE, "\\Images\\30x28.bmp");
Any help would be appreciated. Thank you.
You need to set the modifier parameter :
ObjectSetString(0, "logo", OBJPROP_BMPFILE, 0, "\\Images\\30x28.bmp");
modifier: 0-state ON, 1-state OFF
To add comments, please log in or register