Skip to content

OrderFlowBot 3.0 not working on NinjaTrader 8.1.6.0 — LockRecursionException + NullReference in OnBarUpdate #96

@bbasu2011-cell

Description

@bbasu2011-cell

Hi there, I’m running into a compatibility issue with OrderFlowBot 3.0 on NinjaTrader 8.1.6.0. The strategy installs fine and appears in the Strategies menu, but it doesn’t execute trades. I’m seeing the following errors:

  • System.Threading.LockRecursionException: Recursive read lock acquisitions not allowed in this mode

  • Error on calling 'OnBarUpdate': Object reference not set to an instance of an object

Setup:

NinjaTrader 8.1.6.0

OrderFlowBot 3.0

Strategy added to bin/Custom/AddOn/OrderFlowBot

Strategy appears and enables in NT

Instrument is running, but no trades are executed

I suspect NT 8.1.6.0 changed threading/event handling rules that break the bot’s internal event handlers and cumulative delta updates.

Questions:

Is OrderFlowBot 3.0 compatible with NT 8.1.6.0?

Has anyone patched the lock recursion or cumulative delta issues?

Is there a recommended NT version for full compatibility?

Thanks in advance — happy to help test or patch if needed.

Metadata

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