http://fx-kirin.com/python/call-pythonnumpy-function-within-metatrader-4
Example to call numpy function from dll with MT4.