Computer memory full by cAlgo

Created at 05 Dec 2022, 11:25
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
HS

hslagter

Joined 28.04.2020

Computer memory full by cAlgo
05 Dec 2022, 11:25


The computer's memory fills up with cAlgo.exe and eventually crashes after using "_bars = MarketData.GetBars(timeframe, _symbol. Name);' It turns out that the reserved memory for GetBars is no longer released. How can I unreserved getbars? Another possibility is to define and reuse GetBars too general, so that only one GetBars is used. Due to the worse economy, I let the software investigate all possibilities on deals. For this I load multiple indicators from different Timeframes and Symbols.


@hslagter
Replies

Spotware
06 Dec 2022, 09:11

Dear trader,

In order for us to investigate this further, please provide us with the cBot code and send us some troubleshooting information the next time this happens.

Best regards,

cTrader Team


@Spotware

hslagter
06 Dec 2022, 12:41 ( Updated at: 21 Dec 2023, 09:23 )

RE:

Spotware said:

Dear trader,

In order for us to investigate this further, please provide us with the cBot code and send us some troubleshooting information the next time this happens.

Best regards,

cTrader Team

Here is more information. I started the cBot with a memory usage of.... after half an hour this has increased to... See the screenshots. In the parameters you can disable the HMA, Stochastic, etc. after which the same test does not give a problem. I have modified the Windows swap file and in VMware the RAM memory, but I can't find a solution there. If I disable HMA etc., Histo_trend(TimeFrame timeframe), string HMA_trend(TimeFrame timeframe), etc. are no longer called. The same process in MQL5 is no problem. It is a version that I am editing, so there may be some beauty flaws or unnecessary assignments in it, which no longer have a function.

It works on version 4.4.19

Caption
Caption

@hslagter

Spotware
07 Dec 2022, 14:43

Dear trader,

Can you please advise the version of cTrader you are using?

Best regards,

cTrader Team


@Spotware

hslagter
07 Dec 2022, 17:33 ( Updated at: 07 Dec 2022, 17:35 )

RE:

Spotware said:

Dear trader,

Can you please advise the version of cTrader you are using?

Best regards,

cTrader Team

It works on version 4.4.19. I tried with "_bars=null;". Unfortunately no result.


@hslagter

hslagter
08 Dec 2022, 09:11

RE: cTrader I tried 4.5.1

Spotware said:

Dear trader,

Can you please advise the version of cTrader you are using?

Best regards,

cTrader Team

 


@hslagter

hslagter
08 Dec 2022, 20:05

RE: Thanks

Spotware said:

Dear trader,

Can you please advise the version of cTrader you are using?

Best regards,

cTrader Team

I don´t know what you did, but it works fine now. I can have several brokers operating. Thanks.


@hslagter