Errors, bugs, questions - page 656

 

The test is therefore based on these values:

2012.02.27 18:32:35     ChartRedraw() Count=1000 CountObj=100000 CountObjRedrawt=1000 time=36672 mk.c.
2012.02.27 18:25:50     ChartRedraw() Count=1000 CountObj=100000 CountObjRedrawt=1000 time=37938 mk.c.
2012.02.27 18:24:29     ChartRedraw() Count=1000 CountObj=100000 CountObjRedrawt=1000 time=37530 mk.c.

Enough of this, if you want to continue, you need to create a thread, otherwise you'll clutter up the bugs and questions thread.

 
2012.02.27 22:37:03 Terminal CPU: AuthenticAMD AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ with OpenCL 1.1 (2 units, 2009 MHz, 2047 Mb, version 2.0)
2012.02.27 22:37:03 Terminal GPU: NVIDIA Corporation GeForce 8500 GT with OpenCL 1.0 (2 units, 918 MHz, 256 Mb, version 285.62)

2012.02.27 22:42:26 Test 2D (EURUSD,M5) ChartRedraw() Count=1000 CountObj=100000 CountObjRedrawt=1000 time=19920 mk.c.

This is the result when chart is scaled vertically to fit as many objects as possible:

2012.02.27 22:45:39 Test 2D (EURUSD,M5) ChartRedraw() Count=1000 CountObj=100000 CountObjRedrawt=1000 time=29016mk .c.

and even so:

2012.02.27 22:48:31 Test 2D (EURUSD,M5) ChartRedraw() Count=1000 CountObj=100000 CountObjRedrawt=1000 time=57798mk .c.


So the test will show different results for all, even if the users' computers will be identical in terms of hardware.

 
Urain:

And if you first measure a full set of redraws without ChartRedraw and then with it, and make a deduction, is this correct?

No, it won't be correct.

Unfortunately, you can't calculate delays for asynchronous queue, which has a number of optimizing tricks. Use a different method - why try to modify objects?

 
Renat:

No, it will not be correct.

Unfortunately, you can't calculate the delays of an asynchronous queue, which has a number of optimisation tricks. Use another method - why are you trying to modify objects?

I thought that without modifying the objects redrawing the chart might somehow get sabotaged, and this way you have to redraw the chart.
 

Renat:

Use a different method - why are you trying to modify objects?

Well, let's move it:

#property script_show_inputs
//--- input parameters
input uint      Count=1000;
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
   uint st=GetTickCount();
   for(int i=1;i<=Count;i++)
     {
      ChartNavigate(ChartID(),CHART_END,-i);
//      ChartRedraw();  
     }
    Print("Total time for ",Count," cicles = ",GetTickCount()-st, " ms");  
  }
//+------------------------------------------------------------------+

But I'm afraid you won't like it. I, for example, don't like it - the chart twitches and doubles. And I wanted to do better - move it smoothly to the right place...

// What's interesting, it works twice as fast with ChartRedraw() than without it. At the same time, it twitches more.

 
The success test didn't help either.
void OnStart()
  {
   uint st=GetTickCount();
   for(int i=1;i<=Count;i++)
     {
      do while (!ChartNavigate(0,CHART_END,-i));
//      ChartRedraw();  
     }
    Print("Total time for ",Count," cicles = ",GetTickCount()-st, " ms");  
  }

And only the slip brought it closer to the desired mapping.

void OnStart()
  {
   uint st=GetTickCount();
   for(int i=1;i<=Count;i++)
     {
      do while (!ChartNavigate(0,CHART_END,-i));
      Sleep(1);
//      ChartRedraw();  
     }
    Print("Total time for ",Count," cicles = ",GetTickCount()-st, " ms");  
  }

But then the meaning of the stress test was lost...

 

build 597

after installing a new hard drive, mt5 terminal stopped saving username and password, now every time it starts it asks for them again, "save personal settings and data at startup" is checked

any suggestions on how to fix it?

 

Question from the administration: is there a problem with the foursome forum again, or have I been overly chatty?

 
tara:

Question from the administration: is there a problem with the foursome forum again, or have I been overly chatty?

It was a minor upgrade, it's all working now.
 

Thank you

Reason: