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 WHICKED, Today, 12:45 PM
      0 responses
      1 view
      0 likes
      Last Post WHICKED
      by WHICKED
       
      Started by FrazMann, Today, 11:21 AM
      2 responses
      6 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by rjbtrade1, 11-30-2023, 04:38 PM
      2 responses
      80 views
      0 likes
      Last Post DavidHP
      by DavidHP
       
      Started by Spiderbird, Today, 12:15 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by lorem, Yesterday, 09:18 AM
      5 responses
      18 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X