WindowRedraw - Chart Operations - MQL4 Reference

MQL4 Reference Chart Operations WindowRedraw

WindowRedraw

Redraws the current chart forcedly.

void  WindowRedraw();

Parameters

None.

Returned value

None.

Note

Redraws the current chart forcedly. It is normally used after the objects properties have been changed.

Example:

  //---- set new properties for some objects
  ObjectMove(object_name1, 0, Time[index], price);
  ObjectSet(object_name1, OBJPROP_ANGLE, angle*2);
  ObjectSet(object_name1, OBJPROP_FONTSIZE, fontsize);
  ObjectSet(line_name, OBJPROP_TIME2, time2);
  ObjectSet(line_name, OBJPROP_ANGLE, line_angle);
  //---- now redraw all
  WindowRedraw();