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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      333 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      211 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      196 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      287 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      242 views
      0 likes
      Last Post CarlTrading  
      Working...
      X