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 sephichapdson, Today, 11:36 PM
      0 responses
      1 view
      0 likes
      Last Post sephichapdson  
      Started by bortz, 11-06-2023, 08:04 AM
      47 responses
      1,612 views
      0 likes
      Last Post aligator  
      Started by jaybedreamin, Today, 05:56 PM
      0 responses
      9 views
      0 likes
      Last Post jaybedreamin  
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      19 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      6 views
      0 likes
      Last Post Jon17
      by Jon17
       
      Working...
      X