Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterLongLimit does not execute

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

    #16
    Thank you for the note, I will give that a try. So please explain to me what the example in the documentation do https://ninjatrader.com/support/help...rlonglimit.htm

    if the close is above the SMA, it will enter a bid with a limit order to get long. If it is not filled when the bar closes, it will re-evaluate the condition on the next OBU cycle and send a new order if the condition is true again?

    Comment


      #17
      Hello Boonfly8,

      With the example in the documentation, once the condition is true the order is placed. Once the submission bar closes, if the condition is still true, the order would remain working and would not be cancelled. The order would not be cancelled and no new order would be sent. If the condition is not true the order would be cancelled automatically. No new order would be sent.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #18
        Originally posted by NinjaTrader_ChelseaB View Post
        Hello Boonfly8,

        With the example in the documentation, once the condition is true the order is placed. Once the submission bar closes, if the condition is still true, the order would remain working and would not be cancelled. The order would not be cancelled and no new order would be sent. If the condition is not true the order would be cancelled automatically. No new order would be sent.
        That's perfect! But when I had that in (my first post), nothing executes. I see the symbols (arrows) when the condition is true on the chart but no executions.

        Comment


          #19
          Hello Boonfly8,

          I would recommend you debug your script with prints.

          Its likely the order is not being filled and is being cancelled after the condition is no longer true.

          Print the values of all variables used in the condition that places the entry along with the time, and print the order object from OnOrderUpdate() along with the time.

          This will let you know if the order is being cancelled. You can then check the price of the order and see if this is a valid price on a 1 tick chart between the time it was submitted and when it was cancelled.
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          64 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          139 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          75 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          50 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X