How to write a c# dll for metatrader