Errors, bugs, questions - page 1252

 
Not a bug, just a warning about a significant loss of precision in representing a 1.2 constant as float. In general, float should not be used in math operations if the result is in any way meaningful. Switch to double.
Документация по MQL5: Основы языка / Типы данных / Вещественные типы (double, float)
Документация по MQL5: Основы языка / Типы данных / Вещественные типы (double, float)
  • www.mql5.com
Основы языка / Типы данных / Вещественные типы (double, float) - справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
 
stringo:

Actually, there are a few nuances.

For example, swaps for volumes less than 1 lot were incorrectly considered in the 975 build tester. This was fixed in the 1010 build.

stringo:

Actually, there are a few nuances.

For example, swaps for volumes less than 1 lot were counted incorrectly in the 975 build. The 1010 build has corrected this

Apparently so much "corrected" that it is broken.

Tested EA in 975 and in 1010 and the discrepancies there are clearly not on the swap value!

In attached files results...

P.S. Also, strange that no one else sees the difference.
Am I the only one trying to make money on these trading scripts ) ?

Files:
Deals975.txt  20 kb
Deals1010.txt  20 kb
 
crOss:
Apparently so much "corrected" that broken.

Tested the EA in 975 and in 1010 and the discrepancies there are clearly not by the swap value!

See attached files for results...

P.S. Also, strange that no one else sees the difference.
Am I the only one trying to make money on these trading scripts ). ?

Try to update from MetaQuotes-Demo to 1021 build and check again.
 

Newer builds have a problem with agents overflowing the stack during optimisation.

For example, the following code:

#property stacksize 2048

int OnInit() {     int z[300000];   return 0; }

Agents throw an error: "critical runtime error 504 in OnInit function (out of stack in module ...)".

Although, the Expert Advisor works in the normal mode without any problems.

The size of stacksize has no effect whatsoever. You can set it to whatever size you want but it won't make any difference.

As far as I understand, the stack memory size is now strictly limited to 1 Mb.

 
stringo:
Show an example of your code to illustrate the problem
The problem is that you have to keep looking for these problems. More precisely how to get around the problems you have created.

Example - yes any numeric global variable, which affects the result and depends on extern variable.
When you set a new property, the result will be of the old one.
Of course, you can avoid this problem by initializing a global variable in Init.
Why do we need usability? There declared. somewhere in the gob initialized..... all is well.
 

Hello, you have a memory leak!!!!!!!!!!

2014.12.05 14:35:47.701 Bruteforce_iMA_1.12 EURUSD,M1: 238934880 bytes of leaked memory

this is how it happens with static. It's fine without it.
Why is a new structure created every time? It'sstatic.

I don't know your quirks withstatic
because you change its properties(lifetime and creationtime ) whenever you want and it depends on the program used.


I just need one structure inside function with lifetime of the whole program
How to get it, please advise.
(I'll have to bypass it with global variable, but why do I need global variable if I want to use it inside only one function? Very convenient)

struct z_pl_z_mn
{
   bool Z_pl1[];
   bool Z_mn1[];
   bool Z_0[];
   int Z_pl1_result_x[];
   int Z_mn1_result_x[];
   int Z_pl1_result_y[];
   int Z_mn1_result_y[];
   
   z_pl_z_mn(int size)
   {
      ArrayResize(Z_pl1, size);
      ArrayResize(Z_mn1, size);
      ArrayResize(Z_0, size);
      ArrayResize(Z_pl1_result_x, size);
      ArrayResize(Z_mn1_result_x, size);
      ArrayResize(Z_pl1_result_y, size);
      ArrayResize(Z_mn1_result_y, size);
   }
};

int g_shift_start_chart = 100;
int g_shift_stop_chart = 10;

void some_function ()
{
   static z_pl_z_mn temp_data(g_shift_start_chart - g_shift_stop_chart + 1);
   ZeroMemory(stat_simple);
}
 

Build 1024

W8.1 64

In the tester, the inscription on the Start/Stop button systematically "freezes" to Stop. It is not clear whether the test is currently running or not. And the button works fine, but the inscription on it does not change.

 

I was looking through my profile, decided to delete friend requests. after about the 10th deletion, the following thing popped up ....

And now I can not go to the site from my home computer, cookies deleted..... all the same trying to go to the site pops up this stuff .... I am using my login and password from my VPN, help me, I think I may be blocked by ipi

 
IvanIvanov:

I was looking through my profile, decided to delete friend requests. after about the 10th deletion, the following thing popped up ....

And now I can not go to the site from my home computer, cookies deleted..... all the same trying to go to the site pops up this stuff .... I am using my login and password from my VPN, help me, I think I may be blocked by ipi

I.P.P. is blocked automatically. Contact syssdesk if you delete it too fast.)
 
server:
Automatic protection - blocking by IPY, write to servicedesk, deleted too fast)
What do you mean fast, the site's slow or something :-))))))) I had to reboot my router to get my IP changed :-))))
Reason: