V4.3.11 - Loading 1 ticks data gives "Process was unexpectedly terminated"

Created at 31 Aug 2022, 20:30
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!
srlcarlg's avatar

srlcarlg

Joined 25.07.2022

V4.3.11 - Loading 1 ticks data gives "Process was unexpectedly terminated"
31 Aug 2022, 20:30


Hello,

After update to cTrader v4.3.11, I'm getting the error "Process was unexpectedly terminated" from my indicators that, for precision purposes, need to load 1 Ticks Data in memory.
I already tried a clean install (installed latest .NET Framework 4.8.1/Runtime 6.0.8 too) but the error still persists.

Compiling in .NET 4.x or .NET 6.0 has the same result.
I have not tested compiling in SDK because loading 1 ticks data in cTrader v4.3.9 and earlier works normally.

A curious thing is that placing MarketData.GetBars(TimeFrame.Tick2) the data is loaded normally

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;

namespace cAlgo
{
    [Indicator(IsOverlay = true , AccessRights = AccessRights.None)]
    public class NewIndicator : Indicator
    {
        protected override void Initialize()
        {
            Bars ticksData = MarketData.GetBars(TimeFrame.Tick); // Given error
            //Bars ticksData = MarketData.GetBars(TimeFrame.Tick2); // No error
            
            Print($"Loaded {ticksData.TimeFrame} Data");
            var loadedCount = ticksData.LoadMoreHistory();
            Print($"Loaded {loadedCount} Ticks, Current First Tick Date: {ticksData.OpenTimes.FirstOrDefault()}");
        }

        public override void Calculate(int index)
        {
            // Do Nothing
        }
    }
}

cTrader 4.3.11

cTrader 4.2.22

At the moment, I switched back to cTrader v4.2.22 (by broker) and the indicators are working as expected with 1 ticks data, just like in v4.3.9 (which I no longer have access to because of update)

I'm not sure if this is really an issue of new version of cTrader because I haven't tested this on another computer to see if the problem is with what I'm using.


@srlcarlg