Previous Ticks in an Indicator
            
                 13 Nov 2020, 13:14
            
                    
In live bot (not backtesting nor optimizing):
public override void Calculate(int index)
{
                Ticks SymbolTicks = MarketData.GetTicks();
. . . . .
throws:
Not handled collection is not empty.    
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.Dispatchers.MessageHandlingStrategy.SendMessageWithResponse[TRequestMessage,TResponseMessage](TRequestMessage requestMessage, Func`2 predicate)    
at cTrader.Automate.Small.V1.SymbolsApi.SmallSymbolsProvider.TryInitialize()    
at cTrader.Automate.Small.V1.SymbolsApi.SmallSymbolsProvider.GetSymbols()    
at cTrader.Automate.Small.V1.MarketApi.SmallMarketData.GetSymbolWithSubscription(String symbolName)    
at cTrader.Automate.Small.V1.MarketApi.SmallMarketData.GetInternal[T](String symbolName, TimeFrame timeFrame)    
at cTrader.Automate.Small.V1.MarketApi.SmallMarketData.GetTicks(String symbolName)    
at cTrader.Automate.Small.V1.MarketApi.SmallMarketData.GetTicks()    
at cAlgo.AD.Calculate(Int32 index) in
How do you get your Past Ticks in an indicator?

Shares4UsDevelopment
13 Nov 2020, 14:25
RE:
Restarting cTrader did not help.
Copying the bot (duplicate function) did not help.
Copying the source of the bot and pasting it in a new bot, deleting the original bot and renaming the new Bot to the original name solved the problem .
Don't no Why! but it just worked.
@Shares4UsDevelopment