How to display an image in the chart?
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:
Any help would be appreciated. Thank you.
You need to set the modifier parameter :
ObjectSetString(0, "logo", OBJPROP_BMPFILE, 0, "\\Images\\30x28.bmp");
If you want, check the code base for my uploads. There is a modified version of CCanvas which also supports bitmaps which are loaded as resources. By this, you don´t need to distribute the bitmap separately, you rather may include it into the EX4/EX5 file.
Is it possible to use an image from the web instead of one that is stored locally using the above method? I tried to simply change the position to "http://www.******.com/test/image.bmp" but no success of course..
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:
Any help would be appreciated. Thank you.