Questions from Beginners MQL4 MT4 MetaTrader 4 - page 191

 

The software is running out of memory.

Out of memory error pops up after 3-4 days of expert work.

I don't know how to catch it.

I have placed a bunch of printers, monitor all the arrays for overflow.


I have an idea to speed up the program. I want to speed up the program, for example, I want it to make 10 thousand passes instead of one. But in order to filter blocks gradually, we need to control the memory load.

We can do it with MT4, but the accuracy there is up to one megabyte.


If you want to use dll, there is theGetProcessMemoryInfo function in winApi(https://docs.microsoft.com/ru-ru/windows/win32/api/psapi/nf-psapi-getprocessmemoryinfo?redirectedfrom=MSDN_).

It is supposed to be able to trace up to a byte.


Help to import the function into mql4 program

GetProcessMemoryInfo function (psapi.h) - Win32 apps
GetProcessMemoryInfo function (psapi.h) - Win32 apps
  • 2018.12.05
  • karl-bridge-microsoft
  • docs.microsoft.com
Retrieves information about the memory usage of the specified process.
 

What is the maximum number of addresses to send SendNotification()?


 
Sergey Likho:

The software is leaking memory.


Of course it's leaking.

 for (int i=0; i
 
Алексей Тарабанов:

Naturally, it leaks. for (int i=0; i

I don't understand what you mean by the loop.

 

Sergey Likho:

But in order to gradually weed out the blocks, you need to monitor the RAM load.

You can do it from MT4, but it's accurate to the nearest megabyte.

What function can control RAM load from MT4?

 

Hello

Can you help me with this problem?

Activation in mt4 crashes after rebooting computer

This is what it says 2019.12.22 13:13:07.295 cannot load 'C:\Users\Lenovo\AppData\Roaming\MetaQuotes\Terminal\CCB2DB5AB48D780F7883A0CBD7F76A\MQL4\Experts\Market\SRB Grid.ex4'


 

Hello!

I have a problem.

MT4 is missing, i.e. whole periods are not displayed. For example, in the attached screenshot on franc on H4 whole 10 days are missing. I tried to upload quotes via Service-Archive Quotes, the quotes are loaded normally but it does not help. I have tried restarting the terminal too. I have to download quotes for more than one symbol.

How to help?

I would be very grateful for advice.

1

 
odyn:

Hello!

I have a problem.

MT4 is missing, i.e. whole periods are not displayed. For example, in the attached screenshot on franc on H4 whole 10 days are missing. I tried to upload quotes via Service-Archive Quotes, the quotes are loaded normally but it does not help. I have tried restarting the terminal too. I have to download quotes for more than one symbol.

How to help?

I would be very grateful for tips.


Try PKM on chart --> Refresh. On each timeframe.

Or, on each TF, hold down the Home key until everything has booted up.

 
Artyom Trishkin:

Try PCM on the chart --> Refresh. For each timeframe.

Or on each TF hold the Home key until everything loads.

HELPED!!! Thanks, good man!!!

 

Greetings

Could you please tell me if it is possible to set font thickness on text objects?

FoundTextSetFont (Sets font for text output by drawing methods)https://docs.mql4.com/ru/objects/textsetfont

, which has flags to set font thickness, but can't figure out how to use it.

Reason: