Corrected this warning (possible loss of data due to type conversion from 'int' to 'ushort' XU EFFECT v7.48.mq5 926 42) but still it work's as i wrote above
And what i can see it works as above 1h but not on all symbols
Code: Select all
Fixed! Here's what was causing the warning and what was changed:
Root cause: FileOpen() in MQL5 declares its third parameter (the delimiter) as ushort, but SafeFileOpen passed an int directly — the compiler warned that narrowing from int → ushort could lose data.
Fix applied (line 926):
diff
- int handle = FileOpen(filename, mode, delimiter);
+ int handle = FileOpen(filename, mode, (ushort)delimiter);