MT5 and speed in action - page 39

 
Igor Makanu:

Alternatively, can we run EA as a service ? - The only inconvenience - there will be no OnTick() event

I haven't tried it as a service and I'm pretty sure I won't in the near future. Still, EA is able to react to hotkeys and some objects on the chart. Plus it can output something for information on the chart.

 
fxsaber:

That's what I meant.

My Russian is not very good.

It's interesting, but if you just minimise the terminal, does it reduce the load?

 
fxsaber:

I see that even my now performance-lined bots are running in such a way that the Terminal CPU is 15%. Now here's a tip!

  • Close Market Watch (CTRL+M) - only traded symbols are in it.
  • Close table with current positions (CTRL+T).
  • Minimize all charts.

Voila, terminal CPU 2.5%! Unload your VPS. If anyone else has any valid recommendations, let me know.


Dear developers, please have the ability to switch the terminal to the minimum resource consumption mode for algotrading.

You can just minimize the terminal, the effect is the same.

 
Aleksey Vyazmikin:

This is interesting, but if you just minimise the terminal, does it reduce the load?

Open task manager with the terminal open.
Determine approximate CPU load, minimize the terminal.
Load numbers should go down.
My load drops to 0 - 1%.

 
Roman:

Open the task manager with the terminal open.
Determine approximate CPU load, minimise the terminal.
The load numbers should go down.
My load drops to 0 - 1%.

This doesn't help Windows 7 for me.

 
fxsaber:

I see that even my now performance-lined bots are running in such a way that the Terminal CPU is 15%. Now here's a tip!

  • Close Market Watch (CTRL+M) - only traded symbols are in it.
  • Close table with current positions (CTRL+T).
  • Minimize all charts.

Voila, terminal CPU 2.5%! Unload your VPS. If anyone else has any valid recommendations, let me know.


Dear developers, please have the ability to switch the terminal to the minimum resource consumption mode for algotrading.

F11 does not help?

I did it for arbitrage, collapsed all unnecessary things

 
Maxim Dmitrievsky:

F11 doesn't help?

The charts don't collapse.

 

Forum on trading, automated trading systems and strategy testing

Libraries: Benchmark

fxsaber, 2020.10.01 23:49

2020.10.02 00:45:14.113 Alert: Time[Test9.mq5 36 in IsInvisible: ::ChartGetInteger(Chart,CHART_IS_MAXIMIZED)] = 878 mсs.
2020.10.02 00:45:14.114 Alert: Time[Test9.mq5 36 in IsInvisible: ::ChartGetInteger(Chart,CHART_IS_MAXIMIZED)] = 943 mсs.
2020.10.02 00:45:14.114 Alert: Time[Test9.mq5 36 in IsInvisible: ::ChartGetInteger(Chart,CHART_IS_MAXIMIZED)] = 297 mсs.
2020.10.02 00:45:14.116 Alert: Time[Test9.mq5 36 in IsInvisible: ::ChartGetInteger(Chart,CHART_IS_MAXIMIZED)] = 1787 mсs.
2020.10.02 00:45:14.116 Alert: Time[Test9.mq5 35 in IsInvisible: ::ChartNext(Chart)] = 2 mсs.
2020.10.02 00:45:14.117 Alert: Time[Test9.mq5 36 in IsInvisible: ::ChartGetInteger(Chart,CHART_IS_MAXIMIZED)] = 980 mсs.
2020.10.02 00:45:14.117 Alert: Time[Test9.mq5 35 in IsInvisible: ::ChartNext(Chart)] = 2 mсs.
2020.10.02 00:45:14.117 Alert: Time[Test9.mq5 36 in IsInvisible: ::ChartGetInteger(Chart,CHART_IS_MAXIMIZED)] = 59 mсs.
2020.10.02 00:45:14.118 Alert: Time[Test9.mq5 36 in IsInvisible: ::ChartGetInteger(Chart,CHART_IS_MAXIMIZED)] = 803 mсs.
2020.10.02 00:45:14.119 Alert: Time[Test9.mq5 36 in IsInvisible: ::ChartGetInteger(Chart,CHART_IS_MAXIMIZED)] = 1059 mсs.

CHART_IS_MAXIMIZED is slow for foreign charts. Bug report ready! It was very easy with the library.

 
fxsaber:

The charts don't collapse.

#include <fxsaber\MultiTester\MTTester.mqh> // https://www.mql5.com/ru/code/26132

#define  WM_SYSCOMMAND 0x0112
#define  SC_MINIMIZE   0xF020

// Сворачивает все окна.
void MinimizeAllCharts()
{
  static const long ChartsHandle = user32::GetDlgItem(MTTESTER::GetTerminalHandle(), 0xE900);
  
  for (long handle = user32::GetWindow(ChartsHandle, GW_CHILD); handle; handle = user32::GetWindow(handle, GW_HWNDNEXT))
    user32::PostMessageW(handle, WM_SYSCOMMAND, SC_MINIMIZE, 0);
}

void OnStart()
{
  MinimizeAllCharts();
}

Hotkey and it's done. How to close Market Watch and Tools - not figured out. Would be useful for anyone who uses a VPS, if shown.

 
fxsaber:

How to close Market Watch and Instruments - not figured out.

Why collapse the charts when you can collapse the whole terminal?

Or all the terminals together. There is already a hotkey - Win+D.