Forum

WebRequesting non-standard port?

Hello guys, may I ask you a little question: Is it possible to send a webrequest to a specific port? (MQL4) And how can I set up metatrader 4 to communicate with a localhost? Is it possible to send a request to a "http://localhost:10000/" ? WebRequest returns ERR_WEBREQUEST_INVALID_ADDRESS and I'm

MQL4 StrategyTester relevancy and different timeframe

Hello guys, I wonder, how relevant and how well are tests done by StrategyTester in MT4, whether I can rely on that tests (I test on ticks) And I'd also like ask, whether I can test on Week timeframe on MT4 somehow, thanks

File is always empty...

Hello guys, I've tried to do some statistics/testing with EA and write it out into file but file always end up empty. Here is the opening and writing the info into it - it opens the file but does not write anything into it, what's the problem? int OnInit () { ZeroMemory (TouchCount);

The quotation of XAUUSD?

Hello guys, I wonder, how is quoted XAUUSD? What size is 1 lot of XAUUSD? It's 100,000 units in price

Solving issue with Crossing MA strategy

Hello guys, I wonder, how would you solve this issue with MA crossing strategy when two MAs are basically laying on the same line and crossing each other alternatively? My expert advisor is making profit (in tester of course) but this is a very bad drawback that I have to solve and I'm not sure what

Permissions

Hello guys, I'm having a big issue with permissions on Windows 10/8.1 ... I wanted to import data, but it fails with: 2015.11.28 23:27:42.191 HistoryCenter: create folder 'history\downloads\USDJPY' failed, check permissions I'm frustrated with this issue. I can not install MetaTrader without

Paralelism, EA on many accounts on multi cores

Hello guys, I'm bit worried about how does MetaTrader and Expert Advisor works on multicore systems. I have an idea to run 1 MT4 (or EA) on one CPU. So if I want to run a 100 accounts thus I have to have 100 threads available. What shall I do, if I want to run metatrading system. How many EAs am I

Function like Print?

Is there any way how to define function like "Print" in order to pass a number of variables? I'm advanced in C, but I can't see any option how to do it in MQL4. Is it possible? Thanks in advance :)

Splitting expert advisor into multiple files?

Hello guys, may I ask you one little question: do you split your EA code within multiple files? If yes, how? Can I move implementation into .mqh files and include them? I am a C/C++ programmer but I'm quite not sure what to do in this MetaEditor

Metaeditor from MT4 is closing by itself repeatedly.

Hello guys, I'm having a little bit weird issue: I want to write an EA but Metaeditor keeps closing after a while with no error message or visible crash... I can't figure out what's going on... did this happen to anybody else? Thanks in advance