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 zstheorist, Today, 07:52 PM
      0 responses
      6 views
      0 likes
      Last Post zstheorist  
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      150 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Started by mattbsea, Today, 05:44 PM
      0 responses
      6 views
      0 likes
      Last Post mattbsea  
      Started by RideMe, 04-07-2024, 04:54 PM
      6 responses
      33 views
      0 likes
      Last Post RideMe
      by RideMe
       
      Started by tkaboris, Today, 05:13 PM
      0 responses
      6 views
      0 likes
      Last Post tkaboris  
      Working...
      X