Running Cbot reset "Linked Chart" unexpectedly

Created at 20 Jan 2020, 03:35
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!
HO

HOMERUN

Joined 18.11.2015

Running Cbot reset "Linked Chart" unexpectedly
20 Jan 2020, 03:35


Click the cBots to start it reset chart group that was set

 

I want to keep the chart group as is so is there anyway to avoid this?


@HOMERUN
Replies

PanagiotisCharalampous
20 Jan 2020, 09:02

Hi HOMERUN,

Can you please provide us the cBot code as well as exact steps to reproduce this behavior?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

HOMERUN
20 Jan 2020, 09:06

Hi,

It can be anything.

Simple script that do nothing also.

using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class DoNothing : Robot
    {
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }

        protected override void OnStart()
        {
            // Put your initialization logic here
        }

        protected override void OnTick()
        {
            // Put your core logic here
        }

        protected override void OnStop()
        {
            // Put your deinitialization logic here
        }
    }
}

 


@HOMERUN

HOMERUN
20 Jan 2020, 09:08

Reproduce:

- put cBot on that chart

- click the start button on cBot

 

Then the cBot start running but it also change my chart group to default.


@HOMERUN

PanagiotisCharalampous
20 Jan 2020, 09:10

Hi HOMERUN,

Thanks. This is by design. cBots cannot run on linked charts since you cannot change the symbol for the chart on which the cBot is running.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous