fxsaber: And you open your mq4 in the 1430 editor and compile it into ex4.
I did so. But: a) it's impossible to start debugging, b) when you give the work to customer together with sources, everything should compile for him without tambourine.
FormatDelimiter(DoubleToString(this.ProfitFactor(),2))+delimiter+ //преобразуем в строковый параметр для записи в файл
code approximate - not mine - made a freelancer and refused further support, so I can not understand how to correct.
The situation arises if there is a profit, but no loss, it turns out the division by zero, but it should not be solved by such an atrocious number in the standard function.... no?
FormatDelimiter(DoubleToString(this.ProfitFactor(),2))+delimiter+ //преобразуем в строковый параметр для записи в файл
code approximate - not mine - made a freelancer and refused further support, so I can not understand how to correct.
The situation arises if there is a profit, but no loss, it turns out the division by zero, but it should not be solved by such an atrocious number in the standard function.... no?
#define MNOGO 123
FormatDelimiter(DoubleToString(MathMin(this.ProfitFactor(), MNOGO),2))+delimiter+ //преобразуем в строковый параметр для записи в файл
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.
Greetings. Nduk on android.
Hello!
The bug will be fixed shortly. Thank you for your feedback.
And it doesn't compile in MKL:
A100:
Covers all possible cases (except: Can't specify default parameter type). If not, give an exampleС учетом особенностей MQL (objects are passed by reference only; typename - возвращает строку)
But I didn't take into account that objects are only passed to the function by reference.
// 'Func' - cannot to apply function template
The error could be a build < 1375. In 1430 it's already fixed for sure
What spread values does theCopySpread() function producefor the corresponding chart period?
It is not clear whether it is the average, minimum or maximum, and the help of the function does not say anything about it.
And you open your mq4 in the 1430 editor and compile it into ex4.
I can't understand, this number is saved to a file
179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368,00
double m_profit_factor; // 27) прибыльность
m_profit_factor=TesterStatistics(STAT_PROFIT_FACTOR);
double ProfitFactor(void) const {return m_profit_factor;};
FormatDelimiter(DoubleToString(this.ProfitFactor(),2))+delimiter+ //преобразуем в строковый параметр для записи в файл
code approximate - not mine - made a freelancer and refused further support, so I can not understand how to correct.
The situation arises if there is a profit, but no loss, it turns out the division by zero, but it should not be solved by such an atrocious number in the standard function.... no?
I can't understand, this number is saved to a file
179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368,00
double m_profit_factor; // 27) прибыльность
m_profit_factor=TesterStatistics(STAT_PROFIT_FACTOR);
double ProfitFactor(void) const {return m_profit_factor;};
FormatDelimiter(DoubleToString(this.ProfitFactor(),2))+delimiter+ //преобразуем в строковый параметр для записи в файл
code approximate - not mine - made a freelancer and refused further support, so I can not understand how to correct.
The situation arises if there is a profit, but no loss, it turns out the division by zero, but it should not be solved by such an atrocious number in the standard function.... no?