Replies

whaaaaatever.ken
29 Nov 2023, 13:26 ( Updated at: 21 Dec 2023, 09:23 )

Solved...?

I may have solved the problem.
It worked when I changed the .Net framework to 4.x.

It should have worked with 6.0 before....
I don't know the exact cause.

For the time being, I am relieved that it works.


@whaaaaatever.ken

whaaaaatever.ken
29 Nov 2023, 11:15 ( Updated at: 21 Dec 2023, 09:23 )

Symbol not found

I have the same issue.

create a New cBot, and run backtest, I got this.


@whaaaaatever.ken

whaaaaatever.ken
05 Apr 2023, 16:53

RE:

Spotware said:

Dear trader,

Can you please share with us your cBot code so that we can reproduce the behavior? Also please let us know which versions you are comparing.

Best regards,

cTrader Team

Thank you for your reply.
I have included the cbot code below with only the relevant code extracted.
Please try to optimize by varying Num from 0 to 100.
It will take a very long time.
It did not take as long as it did a month ago.

The version of Ctrader is 4.6.5.

 

//////////////////////////////////////////////

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.Robots
{
    [Robot(AccessRights = AccessRights.None)]
    public class NewcBot3 : Robot
    {
        [Parameter(DefaultValue = 0, MinValue = 0, MaxValue = 100, Step = 1)]
        public int Num { get; set; }

        protected override void OnStart()
        {
        }

        protected override void OnBar()
        {
            Print(Symbols.GetSymbol("CADJPY").Bid);
        }
    }
}


@whaaaaatever.ken