i dont know why russian developers use english names for variables and functions and russian comments
makes NO sense to me
if someone only understands russian, a russian comment is useless, because the name of the variable is a riddle to the user.
if someone only speaks english, the russian comment is useless.
since 30 years its good old style to write code and comments only in english, no matter what the first language of the developer is
// Path to the terminal string PuthTerminal = TerminalPath() + "\experts\files"; // Name of the ini file for the tester string FileOptim = "optimise.ini"; string FileOptim1 = "\optimise.ini"; // Calculation of the starting date datetime DayStart = TimeLocal()-86400*TestDay; // Optimization starting date string DateStart = TimeToStr(DayStart,TIME_DATE); // Optimization ending date string DateStop = TimeToStr(TimeLocal(),TIME_DATE); // Tester report file name string FileReport = "FileReport_" + Symbol() + "_" + DateStop + ".htm"; string FileReport1 = "\FileReport_" + Symbol() + "_" + DateStop + ".htm"; // Limitation for the minimum amount of trades per day double MinTr = TestDay - 2; // Limitation for maximal amount of trades per day double MaxTr = (60 / Period()*TestDay) + 2; // The amount of attempts to copy the report file int KvoPptk = 10; // The amount of lines for sorting int StepRes = 12;
look here https://www.mql5.com/en/articles/1467
I wrote a simple script to convert unrecognizable russian comment in MetaTrader files into readable russian letters.
http://www.lutanho.net/trading/convert_russian_chars.html
which converts the text in your posting into
string PuthTerminal = TerminalPath()+"\experts\files"; //Путь к терминалу string FileOptim = "optimise.ini"; //Имя ini файла для тестера string FileOptim1 = "\optimise.ini"; datetime DayStart = TimeLocal()-86400*TestDay; //Расчет даты старта string DateStart = TimeToStr(DayStart,TIME_DATE); //Дата напчала оптимизации string DateStop = TimeToStr(TimeLocal(),TIME_DATE); //Дата окончания оптимизации string FileReport = "FileReport_"+Symbol()+"_"+DateStop+".htm"; //Имя файла отчета тестера string FileReport1 = "\FileReport_"+Symbol()+"_"+DateStop+".htm"; double MinTr = TestDay-2; //Ограничение на минимальное количество сделок в день double MaxTr = (60/Period()*TestDay)+2; //Ограничение на максимальное количество сделок в день int KvoPptk = 10; //Количество попыток скопировать файл отчета int StepRes = 12; //Количество строк для сортировки
The ouput can be translated with an online translator, i.e. Google Translate which translates the text to
string PuthTerminal = TerminalPath () + "\ experts \ files"; / / The path to the terminal string FileOptim = "optimise.ini"; / / The name of the ini file for the tester string FileOptim1 = "\ optimise.ini"; datetime DayStart = TimeLocal () -86400 * TestDay; / / Calculate the start date string DateStart = TimeToStr (DayStart, TIME_DATE); / / Date napchala optimization string DateStop = TimeToStr (TimeLocal (), TIME_DATE); / / End of optimization string FileReport = "FileReport_" + Symbol () + "_" + DateStop + ". htm"; / / The name of the report file tester string FileReport1 = "\ FileReport_" + Symbol () + "_" + DateStop + ". htm"; double MinTr = TestDay-2 / / restrictions on the minimum number of transactions per day double MaxTr = (60/Period () * TestDay) +2; / / Limit the maximum number of transactions per day int KvoPptk = 10, / / The number of attempts to copy the report file int StepRes = 12 / / The number of rows to sort
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Many of the Russian mgl files uses a description text language that can not be translated into English by Google Translate or Yahoo Babel Fish. Here is an example:
Google Translate detects the language as "Occitan". Is there a free online site that offers translation from this description language above to english ??