extract Mq4Colors and EventExtensions from MainTemplate