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?
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.
Use a different method - why are you trying to modify objects?
Well, let's move it:
#property script_show_inputs//--- input parametersinputuint Count=1000;
//+------------------------------------------------------------------+//| Script program start function |//+------------------------------------------------------------------+voidOnStart()
{
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.
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
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.
The test is therefore based on these values:
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 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.
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?
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?
Renat:
Use a different method - why are you trying to modify objects?
Well, let's move it:
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.
And only the slip brought it closer to the desired mapping.
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 checkedany 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?
Question from the administration: is there a problem with the foursome forum again, or have I been overly chatty?
Thank you