Error when run on cloud, but no error found in backtesting
Error when run on cloud, but no error found in backtesting
04 Mar 2025, 17:10
Hi, I backtested my bot and work pretty well, but once I run instance on cloud then realised that it has an error showing up in the log like:
Error | Crashed in OnStart with MissingMethodException: Method not found: 'cAlgo.API.Indicators.AverageDirectionalMovementIndexRating cAlgo.API.Internals.IIndicatorsAccessor.AverageDirectionalMovementIndexRating(Int32, cAlgo.API.MovingAverageType)'.
Here is my code related to that:
// Input MA type and Periods
[Parameter("MA Type for ADX", Group = "Moving Average for ADX")]
public MovingAverageType MATypeADX { get; set; }
[Parameter("ADX Periods", Group = "Average Directional Movement Index Rating", DefaultValue = 14)]
public int ADXPeriods { get; set; }
private AverageDirectionalMovementIndexRating ADX;
//Onstart session
protected override void OnStart()
{
ADX = Indicators.AverageDirectionalMovementIndexRating(ADXPeriods, MATypeADX);
}
I am just wondering it may not cause from my code otherwise I should get the same error message when I do the backtest. So, I suspect some other factors then.
Best Regards,
SKTN
firemyst
12 Mar 2025, 03:58
Read other threads in this forums about issues with the cloud
@firemyst