Forum

StringToShortArray - MQL4

struct s { int i; ushort u[ 6 ]; double d; }; void OnStart () { s s1; ushort u[ 6 ]; string txt=" string to be copied"; Print ( StringToShortArray (txt,u)," characters copied to the static array u[6]"); Print ("contents of u[ 6 ] array: "

File is locked by FileOpen()

I remember mql4 community was closed in favor of mql5. Didn't know they have re-activated it again! So I posted my question on mql5 forums : MQL4: Sharing file between two MT4 on the same PC I checked a couple of topics for the same issue, but they didn't solve my problem. Any help would be

MQL4: Sharing file between two MT4 on the same PC

I've tried to FileOpen() a single file (in the common folder) in two separate MT4 instances, but when the file is opened by the first one, the second one cannot open it and -1 is returned by FileOpen(). Used flags on both functions: FILE_READ|FILE_COMMON Actually, I want to keep the file open for

MQL4 - Compilation Warning: expression has no effect

The code works fine, but I get a compilation warning: expression has no effect. int j,bars= 10 ; bool curr= false ; . . . for (curr?j= 0 :j= 1 ; curr?j<bars:j<=bars; j++)

Hiding True Identity

Hello Guys Unverified profiles have the ability to choose or change their first and last name to any random or preferred nickname at any time; keeping their true identity hidden as desired by some (or most) people. But why verified profiles are obliged to disclose their true identity to public? I