Skip to content

EA MtApi5 get locked/frozen under mutli-symbol optimization mode during backtesting #261

Open
@joecklau

Description

Situation:

When running backtesting on MtApi5 with multiple symbols optimization mode, once the last tick of a symbol within the date-range is proceeded, MtApi5 will stay frozen. No connection/command will be able to sent to MtApi5 at this status.

Expected behaviour:

When trying backtesting multiple symbols optimization mode on other default sample EA, once all ticks of a symbol are proceeded, the ticks of next symbols will be started proceeded until the last symbol is also proceeded.

How to reproduce the situation:

  • Ensure the market watch has several/multiple symbols selected.
  • Optimization = "All symbols selected in market watch"
  • Set Date to custom period, pick a few days for fewest data to reach "the last tick" status.
  • For input, any BacktestingLockTicks mode can get the same result, but I usually picked "LOCK EVERY TICK"
  • For Agents, I disabled all other cores but leaving only one core enabled for the testing as I use 1 port only. (I guess only 1 agent/core can be supported for backtesting on MtApi5 consider the port connection setting?)

Then start the backtesting, wait a for a moment until the last tick of 1st symbol is reached. Then it will stay in frozen status.

What's also tested:

I tried re-connecting to the MtApi5 by the dotnet dll via the port, but unlike normal situation which was be ok to reconnect, it will be null response when it's under the frozen status.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions