Download MetaTrader 5

OBJ_RECTANGLE properties OBJPROP_FILL and OBJPROP_TOOLTIP

To add comments, please log in or register
AnkaSoftware
178
AnkaSoftware  

Hi,

    For an object of type OBJ_RECTANGLE, am unable to set the fill and tool tip property

            ObjectSetInteger( chartID, objName, OBJPROP_FILL, false );

            ObjectSetString( chartID, objName, OBJPROP_TOOLTIP, callOut );

 

Regards

Vivek 

              

Blahtech Limited
4304
James Cater  

You need to use OBJPROCK_BACK on MQL4. They have improved this for MQL5 which treats BACK and FILL differently for RECTANGLE

#ifdef __MQL4__
   ObjectSetInteger(0, name, OBJPROP_BACK, fill);
#else
   ObjectSetInteger(0, name, OBJPROP_BACK, true);
   ObjectSetInteger(0, name, OBJPROP_FILL, fill);
#endif


Tooltips should work

To add comments, please log in or register