I'm running my strategy on a base period value of 30-60 seconds on 3-5 days of data. Doesn't matter on the chart or not. In the strategy I use my 3 custom indicators. I define the indicators in State == State.Configure, and I also add here AddDataSeries(Data.BarsPeriodType.Tick, 1);
AddDataSeries(BarsPeriodType.Second,1).
I define the series in State == State.DataLoaded like so:
= new Series<double>(this, MaximumBarsLookBack.Infinite);
= new Series<double>(this);
I simplified and optimized the code as much as I could. I am not a programmer.
All indicators used in the strategy are loaded onto the chart at the same time quite quickly and do not load memory.
Problem: When I turn on the strategy on one tool, there is a jump of 2-3 GB of download in RAM. When I turn off the strategy, there is also a jump in RAM consumption. For 2-3 instruments, memory consumption is about 10-15GB.
It also clogs disk space. About 40 GB of free memory on the C drive has become filled with something. Once, when all the memory on the disk was full, the computer turned off, and after turning on the free disk space, it became as much as it was. As soon as I started enabling the strategies again, the disk space began to decrease again.
Please tell me what should I pay attention to first of all in order to remove possible errors?

Comment