Missing reference to custom indicators

Created at 21 Aug 2022, 16:24
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!
BE

benjaminwolf123454321

Joined 12.08.2022

Missing reference to custom indicators
21 Aug 2022, 16:24


Hey,

 

I try to debug my cBot in Visual Studio 2022.

Unfortunatly, VS 2022 shows "Type or namespace TSV not found". TSV is a custom indicator. 

Same problem with all other Custom indicators, I tried.

in cTrader, i can save, compile and run the cBot. I also added the reference to the custom indicators in cTrader. That works. But in VS2022 it shows errors. 

Because of that, Iam unable to build the project and debug it. 

 

Is there any help for that? Thank you very much.

 

Here is a little test project which only uses a TSV indicator. In cTrader it works. In VS2022 it shows the missing reference error

 

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;

using cAlgo.Indicators;
namespace cAlgo.Robots
{
    [Robot(AccessRights = AccessRights.None)]
    public class NewcBot : Robot
    {
        TSV tsv;
        [Parameter(DefaultValue = "Hello world!")]
        public string Message { get; set; }

        protected override void OnStart()
        {
          
        }
    }
}


@benjaminwolf123454321
Replies

PanagiotisCharalampous
22 Aug 2022, 09:50

Hi Benjamin,

We are looking at this issue. In the meanwhile, you can add a reference to the project manually.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous