Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BUG? Unmanaged Strategy -> Historical

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

    BUG? Unmanaged Strategy -> Historical

    Hi, I wanted to bring this up to see if I'm just missing something, or if this is a bug...

    When you have a strategy with the following settings:

    CalculateOnBarClose = false;
    RealtimeErrorHandling = RealtimeErrorHandling.TakeNoAction;
    Unamanaged = true;
    IgnoreOverFill = true;

    and you are in a simulated historical position just right after you enable the strategy (and live data is streaming in), you can't exit the position instantly (you have to wait until the bar close).

    For example, you start the strategy, you're in a LONG position (from a previous SubmitOrder call). The strategy is still reporting your in Historical mode, and the LONG position is simulated.

    If you try to exit this simulated position using a SubmitOrder. with an OrderType of OrderType.Sell, it will force you to wait until the close of the current bar even if it's a market order.

    This is problematic for me because the strategy is designed to not place new orders on until it knows the previous position is actually closed.

    Jeremy
    Jeremytang
    NinjaTrader Ecosystem Vendor - Shark Indicators

    #2
    Hello Jeremytang,

    Thank you for your post.

    I will review these details and follow up with you shortly on this matter.

    Comment


      #3
      My mistake

      Hi Patrick,

      Looks like I'm not seeing the behaviour any more - you can ignore this inquiry.

      The issue I'm having is needing to submit an order intra-bar, when CalculateOnBarClose = true... (for a manual trading interface). I realize this is probably not supported, but nonetheless, I can submit orders intra-bar, so long as I'm not in some historical (simulated) position.
      Jeremytang
      NinjaTrader Ecosystem Vendor - Shark Indicators

      Comment


        #4
        Hello Jeremy,

        Thank you for your response.

        I was unable to re-create this on my end. Does it only occur with CalculateOnBarClose = true?

        If you need to submit orders intrabar you can add a smaller time frame to the strategy to simulate intrabar fills. For a reference sample on this item please visit the following link: http://www.ninjatrader.com/support/f...ead.php?t=6652

        Please let me know if I may be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        646 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        367 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        569 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X