Forum

how to get the path to the data folder

Hi guys, Do you know any registry key or other procedure to get the path to the data folder used by MT4 (the one in APPDATA...)

I have to apologize my readers, MQLmagazine is not coming in august too -> see here why :(

I was reluctant to do this, but I was advised to go public with this issue and tell you guys the cause for which we are delaying so much. Thing is, a lot of complex researches, that involved me getting into advanced mathematics, are staying because of the issues encountered with Strategy Tester. I

iBarShift issue

Build 216. Is it normal that an exact iBarShift to return a bar number even if it's not there? I am looking for a specific date, something @14:45 for instance, on the H1, with exact=true, and it returns a bar number on H1, though all hourly bars begin @:00 . Is that normal or is a bug? I had to redo

Some build 616 errors

1) Attempting to hide a focused editbox ( standard library ) will not work. Furthermore, the object will be visible even if the dialog window in which is located is minimized. 2) Pretty often, double clicking a label will put it in a selected status. It can be moved by mouse (though it jumps back to

MQLmagazine.com's may edition is online!

MQLmagazine.com's may edition is online! This edition contains a lot of code. As I promised in march, we are coming with an implementation of a CEP engine. Since Strategy Tester was released in the meanwhile, we add also a complex example of a portfolio expert using moving averages, and, to make

Execution in gaps

I don't know this from live experience, so I ask about what happens with pending orders during gaps. For instance now EURUSD is @ 1.3050 Say I have pending orders... SELL STOP or BUY LIMIT , at 1.3025. Market opens at 1.3000 Are my orders filled? Is only the sell filled and the buy is not? What

importing DLL functions

I am having trouble importing DLL functions that expect a pointer to a string. Something like this: #import " user32.dll " int GetWindowTextA ( int hwnd , string & lpstring , int nMaxCount ) ; #import So, after finding out the hwnd, I call the function and pass the lpstring, after I previously

Error messages...

Given stderror.mqh and https://docs.mql4.com/trading/errors I could spot some differences... ERR_NOT_ENOUGH_RIGHTS (7) is missing from documentation ERR_MALFUNCTIONAL_TRADE (9) is missing from documentation ERR_BROKER_BUSY (137) is missing from documentation ERR_TRADE_EXPIRATION_DENIED (147) is

About five months ago... NOW WITH VIDEO 1400 x 800

... I decided to break off completely and not write anything about MT5 anymore. Staggering bugs unsolved... And I said... ok, let the time pass, they will solve them in the meanwhile. I returned full of hopes this year, to see that the things are exactly, shamefully, in the same place. The mechanism