There is a sandbox around the file functions. It has an easy check, that the file name does not contain a double dot (..), which could be used to escape from the sandbox (..\..\..\far_away_folder\myfile.txt). So replace the dots by some other character.
There is a sandbox around the file functions. It has an easy check, that the file name does not contain a double dot (..), which could be used to escape from the sandbox (..\..\..\far_away_folder\myfile.txt). So replace the dots by some other character.
Do you mean by changing the pair name in the platform, is that possible?
Probably not all symbols are 6 characters followed by dot dot . . . if they are then yes it will work for all cases, but a permanent solution would be to remove the invalid characters, the dots.
The article considers the creation of an indicator for assessing the seasonality quality using MQL5. It allows analyzing both the seasonality of a single symbol and the spread of two instruments. The indicator helps identify statistically significant seasonal movements, use weighting factors, and generate reports for a given month.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
There is a sandbox around the file functions. It has an easy check, that the file name does not contain a double dot (..), which could be used to escape from the sandbox (..\..\..\far_away_folder\myfile.txt). So replace the dots by some other character.
Ok thanks for the correction!
I get this error. ERR_WRONG_FILE_NAME (4101)
12:38:50 Spread_Recordera_1_: invalid filename for FileOpen function
12:38:50 Spread_Recordera_1_ EURUSD..,H1: FileOpen failed, trying to open: Spread_Recording/EURUSD..-Spread_Recorder-8-1-2014.log error# 4101
I have seen that the demo account symbol name is "EURUSD.m" and the real account symbol is named "EURUSD.." can this might cause the error?
It could be, error 4101 is "Wrong file name." . . . try this mod, it's not a solution it's just for testing:
There is a sandbox around the file functions. It has an easy check, that the file name does not contain a double dot (..), which could be used to escape from the sandbox (..\..\..\far_away_folder\myfile.txt). So replace the dots by some other character.
Do you mean by changing the pair name in the platform, is that possible?
It could be, error 4101 is "Wrong file name." . . . try this mod, it's not a solution it's just for testing:
This worked! why is this just for "testing"?
"Spread_Recording\\"+ ...Do you mean by changing the pair name in the platform, is that possible?
No, it is not possible. You should replace dots in the file name.
This worked! why is this just for "testing"?
Great
Thanks for all the help! you re awesome!
Spread
The forum
The articles
CodeBase
============
Forum on trading, automated trading systems and testing trading strategies
Current spread and swap monitor
Sergey Golubev, 2026.05.25 16:52
Evaluating the Quality of Forex Spread Trading Based on Seasonal Factors in MetaTrader 5