Interfacing R with Metatrader for investment strategy design and management