Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Changing EnterLongStopLimit

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

    Changing EnterLongStopLimit

    After submitting a GTC EnterLongStopLimit() order which was not filled I want to change its stop and limit at the following scenarios. How can I do that?

    Scenario A: The stop was never triggered.
    Scenario B: The stop was triggered but the order was not filled because of the limit.

    Thanks
    Last edited by kiss987; 05-20-2016, 08:58 AM.

    #2
    Hello kiss987,


    You can use IOrder objects to check the the current state of your orders. You can submit and update your stop-loss and profit target orders through the use of IOrder and IExecution objects in the OnOrderUpdate() and OnExecution() methods. Here is the IOrder Help Guide.


    Here is a reference sample that shows how IOrder is used as well as the OnExecution() and OnOrderUpdate() methods.
    Strategy Using OnOrderUpdate() and OnExecution() methods to submit protective orders - NinjaTrader Support Forum

    Comment


      #3
      Thank you for your reply

      What I mean is, suppose I've submitted a EnterLongStopLimit order and after awhile, before the price has reached the stop, I want to change the stop and the limit values, can I simply submit a new EnterLongStopLimit order and the values will be changed or should I cancel the first order and only then I can submit a new EnterLongStopLimit.

      Comment


        #4
        Hello kiss987,

        Thanks for your post.

        You can resubmit the same order with the new values to change to the new level.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        81 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        68 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        55 views
        0 likes
        Last Post CarlTrading  
        Working...
        X