Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change Limit Price

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

    Change Limit Price

    I am having an issue getting limit price changes to take effect. My initial order looks like this:

    workingOrder = EnterLongLimit(0, true, quantity, GetCurrentBid(), "pL");

    When it does not fill, I try to adjust the order by only changning the limit price like this:

    EnterLongLimit(NewLimitPrice);

    Since this should operate on the existing order, I should not have to specify the other fields, right? I am concerned that if I issue the full command again, and already have a partial fill, that it will try to buy more quantity than I want.

    Also I assume that I do not need to set "workingOrder = " for the adjustment order since I already have a handle to the Iorder object.

    Where am I going wrong?
    Thanks.



    #2
    Hi RogBear,

    Since you provide a signal name "pL" to your original order, any price changes to the order must reference the same signal name. Otherwise, NT thinks it's a new order and allows or not based on EntryHandling and EntriesPerDirection properties.

    If you are working with IOrders, it's best is to assign the object with its new values.

    workingOrder = EnterLongLimit(0, true, quantity, GetCurrentBid(), "pL");

    //Some price change condition:
    workingOrder = EnterLongLimit(NewLimitPrice, "pL");
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thank you very much for the clarification!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      30 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      117 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      69 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      227 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      309 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X