MetaTrader 4 Platform Update Build 670: Virtual Hosting, Web Requests and Working with Signals from MQL Applications - page 6
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have a script that use dll. This library use another dll written in C# (ex4 import first dll and first dll import second dll). I copy this two dlls into AppData\Roaming\...\MQ4\Libraries directory and it's works great. Sometimes, in prev versions of mt4, i must copy it to Program Files\MT4\MQL4\Libraries directory, but in build 670 it doesn't work. I'm getting FileNotFound Exception when I ivoke a class from a C# dll. Where I should put dll files?
Please read the documentation : https://docs.mql4.com/runtime/imports
Thanks angevoyageur for reply. I have read documentation carefully and I put libraries to all possible directories. The same effect. May be I'm doing something incorrectly or I don't understand it. I think that it should works identically in build 670 and in prev versions. In attachment is mq4 file and 2 dlls to test. This test ea display window with button. If button is clicked, than it call function from other dll. In mt4 build 646 it show message box, but in 670 it throws exception: file not found. One of dlls is written in c++ so require visual c++ redistributable packages 2013 x86 (http://www.microsoft.com/en-us/download/details.aspx?id=40784). Can someone try to run it on version 670?
Thanks angevoyageur for reply. I have read documentation carefully and I put libraries to all possible directories. The same effect. May be I'm doing something incorrectly or I don't understand it. I think that it should works identically in build 670 and in prev versions. In attachment is mq4 file and 2 dlls to test. This test ea display window with button. If button is clicked, than it call function from other dll. In mt4 build 646 it show message box, but in 670 it throws exception: file not found. One of dlls is written in c++ so require visual c++ redistributable packages 2013 x86 (http://www.microsoft.com/en-us/download/details.aspx?id=40784). Can someone try to run it on version 670?
I have found a solution. New version MT4 load dependency library from directory where is terminal.exe (e.g. C:\Program Files (x86)\MetaTrader 4). To successfully load this library, MT4 must be run with administrator privileges.
Seems like there is a bug in function iMAOnArray when it is used in MT4 Strategy Tester. The calculation of EMA and SMMA is wrong. The EMA and SMMA line will be a nearly straight line with very small changes compared to the SMA and LWMA lines, which follow the price as they should.
Here is a test indicator to reproduce the problem. Run it in Strategy Tester and check the Brown (EMA) and Gold (SMMA) color lines. Red line is the price, Blue is SMA and Green is LWMA.
hi, why can i download the terminal when i click the download button, this is the page that shown
Try this ..
https://download.mql5.com/cdn/web/metaquotes.software.corp/mt4/mt4setup.exe