Errors from my Cbot
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)
Replies
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:
- click on Algo m enu
- click on your bot/indicator
- once code is shown, at top of screen click “References”
- add your reference

@firemyst
duynguyenhl.bio
25 Jan 2025, 02:17 ( Updated at: 14 Feb 2025, 18:17 )
Use ‘MACD’ instead of ‘Macd’
@duynguyenhl.bio