Forum

How can I treat a parameter of MT4 EA settings in the source code

Hello, I would like to know how can I treat a parameter from metatrader 4 platform definition instead of treat the error. In the MetaTrader 4 we have a parameter that can set up the EA only to work with Long or Short positions, or the both. Well, I would like to treat this parameter in my code to

Error to use a function inside a DLL - Unresolved import function call

I created a dll called spintaxx.dll in C# using Visual Studio 2017, my project there was compiled correctly using RGiesecke.DllExport to access externally. The problem is when I create my EA and try to call the function it doesn't work, say that the function cannot be find. Error in ExpertAdvisor

MT4-Read a CSV file and load the info in a struct

I need to read a CSV file like the lines bellow and load in the a structure to access bellow. What is the best form ( function maybe) to read and save the data in this structure, I have many lines to read. The file is stored in "..\MQL4\Files\file.csv" directory. I have a CSV file with many lines

EA download file http - Problem to use a library (libcurl.dll)

I need to make the download of a file in my EA in background mode. Then I searched how I could to do it, and found that could to use a library of curl application called libcurl.dll. Then I downloaded and put it in my program, but the problem I don't know how can I test it, or how can I use the

How much is reliable agree in historical test - EURUSD M1 chart

I create an EA to work in EURUSD currency and realize many tests with historical tests, the base used to tests was from jan/2010 to dec/2014. In the tests I observes any stranges results, for example the results more recents, 2014 the strategy was good, otherwise, in 2010 was not so good. I am

OrderModify sometimes returning ERROR 130

How code below I am sending the function OrderModify to platform and some times the platform is returning code ERROR 130, this error is abour STOP LOSS values , for me is this OK, I cant understand why is returning it some times. Can help me to resolve it ? Inside a loop with 'for' if (OrderSymbol()

History data of currency AUDUSD

Hello, I need of the history data tick by tick of the pair currency AUDUSD, someone can help me with it? thanks []'s Leandro