MQL4 - automated forex trading   /  

Forum

Login | Register | Language: ru cn en
Update to MetaTrader 4 build 722 and Test the VPS for Free

Text Translation

Back to topics list To post a new topic, please log in or register
avatar
322
wackena 2010.01.02 22:16
 

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:

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;                                               //Êîëè÷åñòâî ñòðîê äëÿ ñîðòèðîâêè


Google Translate detects the language as "Occitan". Is there a free online site that offers translation from this description language above to english ??

 
MetaTrader 4 on Mac OS
Apple products have become very popular. MetaQuotes Software Corp. attentively follows the progress of the IT industry and has already released the special mobile applications for iOS-based devices - MetaTrader 4 for iPhone and MetaTrader 5 for iPhone. There are many topics on the MQL4.community forum, where people are seeking a solution for running MetaTrader 4 under the Mac OS operating system. In this article, you will find out how to work in MetaTrader 4 via the Apple's popular operating system.
avatar
337
meikel 2010.01.02 22:51 #
 

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

 
avatar
178
FinGeR 2010.01.03 00:31 #
 

 // 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 http://articles.mql4.com/506



avatar
54
lutade 2012.09.15 14:19 #
 

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
 
Back to topics list  

To add comments, please log in or register