Getting Method not found errors on indicators
Getting Method not found errors on indicators
12 Oct 2013, 00:07
I'm using version 1.10.34111
I just noticed that one of my bots no longer works and is giving me this error.
"Crashed in OnTick with MissingMethodException: Method not Found: 'cAlgo.API.Indicators.WellesWilderSmoothing.get_Result()'"
I'm using Visual Studio to build my robots and everything has worked fine until recently. I noticed that you changes some DLL files that I usually reference. I used to reference cAlgo.Indicators.dll and cAlgo.API.dll. It looks like cAlgo.Indicators has been renamed to Frontend.Indicators, so I updated my references in VS and everything compiles. I run my bots in cAlgo by setting my bot as a base class of a bot in cAlgo. This way of doing things used to work fine in the past. Here's my code.
//#reference: C:\fxbots\resources\CarbonFx.dll using System; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Requests; using cAlgo.Indicators; using CarbonFx.cAlgo.Robots; namespace cAlgo.Robots { [Robot(TimeZone = TimeZones.UTC)] public class CarbonTrendChannel2 : TrendChannelHedge1 { [Parameter("Version", DefaultValue = "")] public string Version { get; set; } [Parameter("Channel Period", DefaultValue = 20)] public int mChannelPeriod { get; set; } [Parameter("MA Period", DefaultValue = 100)] public int mMAPeriod { get; set; } protected override void OnStart() { base.Label = this.Version; base.ChannelPeriod = mChannelPeriod; base.MAPeriod = mMAPeriod; base.RobotName = "debug"; base.SettingKeyName = "testing"; base.OnStart(); } } }
Spotware
14 Oct 2013, 10:49
RE:
pennyfx said:
There is no method get_Result() in the definition of WellesWilderSmoothing Indicator.
The correct syntax would be:
cAlgo.API.dll is the only reference you need in visual studio.
@Spotware