Errors from my Cbot

Created at 23 Jan 2025, 17:01
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!
GO

godfredsmith63

Joined 23.01.2025

Errors from my Cbot
23 Jan 2025, 17:01


I keep getting this two errors, anyone here to help me resolve it.

 

Error CS0246: The type or namespace name 'Macd' could not be found (are you missing a using directive or an assembly reference?) (C: \Users\godfriOneD rive\Documents cAlgo\SourcesRobots\BlaqMagic\BlaqMagic (BlaqMagic.cs, line: 12, column: 17)


Error CS1061: 'Indicators ccessor does not contain a definition for 'Macd' and no accessible extension method "Macd' accepting a first argument of type lindicatorsAccessor could be found (are you missing a using directive or an assembly reference?) (C:Users godfriOneDrive\Documents\cAlgo\SourcesIRobots
\BlaqMagic-IBlaqMagic-IBlaqMagic.cs, line: 21, column: 31)


@godfredsmith63
Replies

duynguyenhl.bio
25 Jan 2025, 02:17 ( Updated at: 14 Feb 2025, 18:17 )

Use ‘MACD’ instead of ‘Macd’


@duynguyenhl.bio

firemyst
26 Jan 2025, 06:42 ( Updated at: 14 Feb 2025, 18:19 )

If you're not using the standard MACD from cTrader in your code, you need to add a reference to the file you are using in cTrader:

  1. click on Algo m enu
  2. click on your bot/indicator
  3. once code is shown, at top of screen click “References”
  4. add your reference

@firemyst