Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    Shawn B.NinjaTrader Customer Service

    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.
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Rapine Heihei, 04-23-2024, 07:51 PM
        2 responses
        30 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by Shansen, 08-30-2019, 10:18 PM
        24 responses
        943 views
        0 likes
        Last Post spwizard  
        Started by Max238, Today, 01:28 AM
        0 responses
        9 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by rocketman7, Today, 01:00 AM
        0 responses
        7 views
        0 likes
        Last Post rocketman7  
        Started by wzgy0920, 04-20-2024, 06:09 PM
        2 responses
        28 views
        0 likes
        Last Post wzgy0920  
        Working...
        X