Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with strategy - unsynchronized

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problem with strategy - unsynchronized

    I have a very simple strategy consisting of
    Rule 1:
    IF Close[0] == Close[0]
    THEN Enter Long position

    Rule 1:
    IF Close[0] == Close[0]
    THEN Enter Short position

    Strategy is Managed, with CalculateOnBarClose = true.

    The strategy is generally reversing on every candle, I made it just for test purposes. It works OK in backtest and Market Replay, but I have problem trading it with real IB paper account (not simulation).

    The problem is that the strategy does not stay synchronized. I have "Wait until flat before executing live" checked, and Sync account position = False.

    Soon after the strategy starts it places Long order. The order is normally visible in Positions tab and in IB TWS, but in the Strategy tab it still has position: -

    How is it possible that the strategy doesn't recognize its own order and it is not synchronized?
    There are no other strategies running.

    Can somebody please explain how this works and how it could happen?

    thank you,

    Mark

    #2
    Hello Mark,

    Thank you for your note and welcome to the forums!

    Soon after the strategy starts it places Long order. The order is normally visible in Positions tab and in IB TWS, but in the Strategy tab it still has position:
    Did you mean to say that the strategy doesn't have a position shown?

    What color is the strategy in the Strategies Tab when you enable it?

    Can you please attach your strategy so that I can test this on my end?
    Reply -> Go Advanced -> Click the paperclip icon in the top tool bar.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      thanks for quick response, I think found the problem.

      It wasn't in strategy or NinjaTrader, I defined a new testing instrument with the same mapping for Interactive Brokers (TFTEST for Russel 2000 with TF symbol for IB), and this seem to cause all the problems.

      When I modified the symbol map for this testing instrument it seems to be working fine.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      648 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      369 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      572 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      574 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X