Automate can't find namespace of a referenced indicator

Created at 07 Jun 2022, 01:20
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!
BD

bdfx

Joined 22.09.2016

Automate can't find namespace of a referenced indicator
07 Jun 2022, 01:20


Automate refuses to save and build a robot which references an indicator named "AverageSentiment" found at  ctrader.com/algos/indicators/show/2600   I made a clean reinstall of cTrader, now at version 4.2.8.5761, to see if that would resolve the problem, but the error persists. Attached  screen shots show that the indicator builds in Net 6 workspace and displays properly on a trading chart. I made a simple bot referencing the indicator to demonstrate the error on build: CS0246.

Do you have any suggestions on how to fix this issue?


@bdfx
Replies

amusleh
07 Jun 2022, 09:25

Hi,

As I can see your indicator class is inside "cAlgo.Indicators" namespace which is not added to your cBot, you have to add "using cAlgo.Indicators;" to your cBot namespaces and then you will be able to use the indicator class. 


@amusleh

bdfx
07 Jun 2022, 18:28

Thanks, Ahmad for your help. Problem solved.


@bdfx