Automate can't find namespace of a referenced indicator
Created at 07 Jun 2022, 01:20
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?
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