use switch in meta loader