Topics
24 Jun 2021, 12:11
 1050
 10
Replies

kris392001
30 Jun 2021, 10:13

Thanks for the prompt Panagiotis, this is good news :).  Is there a roadmap/schedule for cTrader Desktop version releases?

On a side note are there any plans for an Optimisation API to allow runtime optimisation?

Cheers

Chris


@kris392001

kris392001
24 Jun 2021, 12:51

Hi Panagiotis,

Ahhh :) Thanks for your patience. There is the following error:

24/05/2021 21:01:00.229 | Crashed in OnBar with NotSupportedException: Chart operations are not supported in optimization.

So I'm guessing if I enclose any chart operations in a RunningMode.Optimization check, that should fix the issue?

Cheers

Chris


@kris392001

kris392001
24 Jun 2021, 12:44

Hi Panagiotis,

Unfortunately, as shown in the screenshoot, the log is blank. :(

I'll send the projects.

Cheers

Chris


@kris392001

kris392001
24 Jun 2021, 12:34

Hi Panagiotis,

I take it by Logs you mean the journals found in Documents/cTrader or cAlgo? In cTrader ther are no current journals and in cAlgo there are no journals at all.

Is there another location?

Cheers

Chris


@kris392001

kris392001
24 Jun 2021, 12:25

Hi Panagiotis,

Thanks for the quick reply. As I'm trying to build a framework with reuseable modules most of the code is in a separate assembly. Can I send you a Visual Studio solution via email?

Cheers

Chris


@kris392001

kris392001
18 Jun 2021, 17:07

Thanks, pointed me in the right direction. A null check for the Strategy instance solved the problem.

        private double SetRisk(double value)
        {
            if (Strategy != null)
                Strategy.RiskPercentage = value / 100;
            return value;
        }

 


@kris392001