OBJ_RECTANGLE properties OBJPROP_FILL and OBJPROP_TOOLTIP

 

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 

              

 

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

Reason: