mqlwrite methods