What does "Operation is not valid due to the current state of the object" mean

Created at 24 Apr 2020, 15:33
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!
SH

Shares4UsDevelopment

Joined 14.10.2018

What does "Operation is not valid due to the current state of the object" mean
24 Apr 2020, 15:33


Ticks _ticks = MarketData.GetTicks() in OnStart results in an error: "Operation is not valid due to the current state of the object.". 
What does cTrader mean by that?
Which object? Which state? How To overcome?

 

Some More info

 

   at cTrader.Automate.Small.V1.Dispatchers.WaitingStrategy.BeginWait[TMessage](Func`2 predicate)
   at cTrader.Automate.Small.V1.MessageDispatcher.BeginWait[TMessage](Func`2 predicate)
   at cTrader.Automate.Small.V1.MessageDispatcher.SendMessageWithResponse[TRequestMessage,TResponseMessage](TRequestMessage requestMessage, Func`2 predicate)
   at cTrader.Automate.Small.V1.MarketApi.SmallChartSourceController.LoadHistory(String symbolName, TimeFrame timeFrame)
   at cTrader.Automate.Small.V1.MarketApi.SmallMarketData.GetInternal[T](String symbolName, TimeFrame timeFrame)
   at cTrader.Automate.Small.V1.MarketApi.SmallMarketData.GetTicks()


@Shares4UsDevelopment
Replies

PanagiotisCharalampous
24 Apr 2020, 15:43

Hi Ton,

Can you please share a cBot and steps to reproduce this behavior e.g. cBot parameres, symbol, broker etc.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

Shares4UsDevelopment
24 Apr 2020, 18:17

RE:

I'ts an internal cAlgo error, can't strip the bot to an acceptable sample


@Shares4UsDevelopment

PanagiotisCharalampous
27 Apr 2020, 08:58

Hi Ton,

You can send it to us at community@spotware.com.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous