Read many .txt Files are very slow on MC

Questions about MultiCharts and user contributed studies.
Morgan
Posts: 17
Joined: 29 Oct 2014
Has thanked: 1 time
Been thanked: 2 times

Read many .txt Files are very slow on MC

Postby Morgan » 21 Apr 2024

Hi, MC Team:

I use several charts to write their own marketposition status into .txt files (by bars time to separate file names with different folders)

Then I import ELCollection.dll to use ListN.Get to load the marketposition status from those files to calculate to get final decision to trade real orders.

However I found when my file numbers become more, the speed is very slow to spend much time waiting the process finished to get final score (optimization is very very hard to proceed of course)

So,

1. Whether we have more new/efficient way to read outside .txt files from MC now?

2. If I upgrade hardware, is it possible to improve this situation?
Any suggestion for which hardware parts I can upgrade? (CPU/SSD Hardisk/RAM...etc, professional server? )
Currently I use very good notebook (Intel-i9 CPU , 64GB DDR5 RAM , 1T SSD) but still very slow to load those many files.

3. In this case, any other way I can solve/improve this problem? (Cloud Architecture? Improve Scrpits?...)

Look forward to getting your help or suggestion.

Thanks & Regards
Attachments
File1.png
Write marketposition into files
(118.28 KiB) Not downloaded yet
File4.png
Read files using ELCollection fun
(148.63 KiB) Not downloaded yet
File3.png
Load files from above folders/files
(261.07 KiB) Not downloaded yet
File2.png
Separate them with different folders (by charts/signals)
(156.47 KiB) Not downloaded yet

User avatar
Kate MultiCharts
Posts: 596
Joined: 21 Oct 2020
Has thanked: 9 times
Been thanked: 148 times

Re: Read many .txt Files are very slow on MC

Postby Kate MultiCharts » 26 Apr 2024

Hello Morgan,

In PowerLanguage there are no ready-made solutions for reading files, like there are in MultiCharts .NET.
In regular MultiCharts it’s possible with external DLLs (like ELCollection.dll, for example), but as they are not parts of MultiCharts, we do not provide technical assistance with them.
In general, an SSD could improve the performance when working with files.

faraz
Posts: 147
Joined: 25 Feb 2011
Has thanked: 26 times
Been thanked: 58 times

Re: Read many .txt Files are very slow on MC

Postby faraz » 01 May 2024

MC should consider adding few functions to communicate through 3rd party applications for user friendly coding.

I request all to vote for this feature "Read from file" function addition in MC
https://www.multicharts.com/pm/public/m ... es/MC-2341

Thanks


Return to “MultiCharts”