Problem with getting custom indicator
Problem with getting custom indicator
17 Sep 2014, 20:56
Hi,
I have developed a custom indicator ( MyPriceAcion ) and would like to use it in my bot.
I added the reference (Manage References) to the indicator and this code :
MyPriceAcion myPriceAcion;
compile ok.
but when I add:
protected override void OnStart()
{
myPriceAcion = Indicators.GetIndicator<MyPriceAction>();
}
I get:
Error CS0246: The type or namespace name 'MyPriceAction' could not be found (are you missing a using directive or an assembly reference?)
Could someone tell me what is wrong ?
Regards,
Cezary
Replies
centracube
25 Nov 2014, 05:12
RE:
Cezary said:
My mistake :)
Its solved
How did you solve your issue?
@centracube
YuriTrader
14 Feb 2015, 18:17
( Updated at: 21 Dec 2023, 09:20 )
In similar situation I got exactly the same " Error CS0246 ".
I solved this problem by adding
using cAlgo.Indicators;
to the top of my cBot.
By doing that one line You allow cBot to use custom indicators.
@YuriTrader
Cezary
17 Sep 2014, 21:11
My mistake :)
Its solved
@Cezary