Skip to content

Backtest issue with ctrader-cli.exe #8

@ys2310

Description

@ys2310

I'm not sure if this is the right place to report an issue but this is for the Windows ctrader-cli.exe
This issue happens with stock symbols.

ctrader-cli.exe backtest C:/Linux_Test1.algo --ctid=test@email.com --account=1234567 --pwd-file=C:/ctrader-cli.pwd --symbol="SALVATORE FERRAGAMO" --period=m1 --data-mode=Ticks --start=11/11/2025 --end=09/01/2026 --balance=100000 --commission=30 --environment-variables --full-access --exit-on-stop

Backtesting cBot with parameters:

| Name                 | Value                     | Source               |

| Symbol | SALVATORE FERRAGAMO | cmd arg |
| Period | m1 | cmd arg |
| Start | 11/11/2025 00:00 | cmd arg |
| End | 09/01/2026 00:00 | cmd arg |
| Balance | 100000 | cmd arg |
| DataMode | Ticks | cmd arg |
| Commission | 30 | cmd arg |
| Spread | 0 | default value |

10/01/2026 06:20:11.377 | Establishing connection using test@gmail.com...
10/01/2026 06:20:13.101 | The connection has been established.
Login to 1234567...

Sequence contains no matching element
System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.ThrowHelper.ThrowNoMatchException()
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   at cTrader.Console.Infrastructure.StateMachine.Strategies.UserEdition.ServerConnectingStateStrategy.TryToConnect()
   at cTrader.Console.Infrastructure.StateMachine.Strategies.UserEdition.ServerConnectingStateStrategy.DoEnter()
   at cTrader.Console.Infrastructure.StateMachine.Strategies.ConsoleStateStrategyBase.Enter()
   at cTrader.Console.Infrastructure.StateMachine.ConsoleApplicationLifecycleStateMachine.OnMovedToLifecycleState(IConsoleApplicationLifecycleStateStrategy newStateStrategy)
   at cTrader.Console.Infrastructure.StateMachine.ConsoleApplicationLifecycleStateTransition.InternalMoveTo(ConsoleApplicationLifecycleState state)
   at cTrader.Console.Infrastructure.StateMachine.ConsoleApplicationLifecycleStateTransition.<>c__DisplayClass6_0.<MoveTo>b__0()
   at cTrader.Console.Infrastructure.Dispatcher.ConsoleThreadDispatcher.<>c__DisplayClass12_0.<ExecuteInternalAsync>g__ExecuteAction|0()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions