New MetaTrader 5 Platform Build 5260: Enhancements in Algo Forge, extended OpenBLAS support, and new inheritance rules in MQL5 - page 5

 
fxsaber #:
It has always been this way and it is correct. You can address your BMPs in abbreviated form, and other people's - by full name. The window shows the full name.

I am referring to the On/Off flag. When setting the BMP for On state, it actually applies it to the off state.

Even if it has been like that, it is not correct, and I am certain, it hasn't been like that for quite some time.
 
Dominik Egert #:

Something is a bit broken when it comes to chart objects at the moment.

Setting the parameters of the OBJ_BITMAP_LABEL is not working properly:


EDIT:

Only when setting the params like shown, it is as expected, but not as it should be done. 

As a sidenote, I know reporting bugs via Screenshots is a very bad habit, but I want to see how my reports are being treated before putting in the full effort of reducing the amount of work on MQs side. - Please bear with me for now.

The problem is not the screenshot, it's what you are reporting is not clear, at least for me.

 
@Dominik Egert #Something is a bit broken when it comes to chart objects at the moment. Setting the parameters of the OBJ_BITMAP_LABEL is not working properly:

There is no bug. You are using it incorrectly. The ObjectSetString()'s 4th parameter is not a "bool", it is an "int" (0 for "On", 1 for "Off").

bool  ObjectSetString(
   long                            chart_id,          // chart identifier
   string                          name,              // object name
   ENUM_OBJECT_PROPERTY_STRING     prop_id,           // property
   int                             prop_modifier,     // modifier
   string                          prop_value         // value
   );

The following sample code is taken from the example in: Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_BITMAP_LABEL

//--- set the images for On and Off modes
   if(!ObjectSetString(chart_ID,name,OBJPROP_BMPFILE,0,file_on))
     {
      Print(__FUNCTION__,
            ": failed to load the image for On mode! Error code = ",GetLastError());
      return(false);
     }
   if(!ObjectSetString(chart_ID,name,OBJPROP_BMPFILE,1,file_off))
     {
      Print(__FUNCTION__,
            ": failed to load the image for Off mode! Error code = ",GetLastError());
      return(false);
     }
 
Good day to all, it seems the toolbar issue on undocked charts has still not been fixed. Hiding toolbar at every MT5 start is taking quite some time.
 
Fernando Carreiro #:

There is no bug. You are using it incorrectly. The ObjectSetString()'s 4th parameter is not a "bool", it is an "int" (0 for "On", 1 for "Off").

The following sample code is taken from the example in: Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_BITMAP_LABEL

Fernando, thank you for pointing out my failure to RTFM. - Here, it is actually working as intended:



 

Good morning,

I have a problem with Metatester after the update.
On Metatrader, I clearly see my 56 available threads. However, when I try to share them on Metatester, this number drops to 28, as if only one processor was detected.

Could you please advise me on how to solve this problem?

Thanks in advance.



Auto-translation applied by moderator.

On the English forum, please write in English. Either use the automatic translation tool, or post in one of the other language forums.