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

Problem of reissue ExitLongLimit

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

    Problem of reissue ExitLongLimit

    This is a description what I did (in output.txt:
    Line 1: EnterLongLimit (1, 1253, TLFdBnd)
    Once I enter the trade, I send out a stop and target order.
    Line 11: ExitLongStop (0, True, 1, 1251, BigStop, TLFdBnd)
    Line 13: ExitLongLimit (0, True, 1, 1253.5, TLFdFixPrf, TLFdBnd)
    Then I cancel the target order (ExitLongLimit on Line 13) by calling
    CancelOrder ("TLFdFixPrf") and the status of the cancel shown in Line 21

    Later on, I try to reset the stop target:
    Line 25: ExitLongLimit (0, True, 1, 1253.5, TLFdFixPrf, TLFdBnd)
    I got an error on Line 27 = 'There already is a matching, terminal exit order in place'

    I am not sure why I get an error on Line 27.
    Attached Files

    #2
    Hello,

    I am not sure. Try using TraceOrder = true; to debug it:


    I will have someone else take a look at this on Monday to see if they have any other advice for you.
    DenNinjaTrader Customer Service

    Comment


      #3
      The TraceOrder is set to true.

      Comment


        #4
        xewoox,

        Known issue. In the meantime please use this workaround, do not cancel the order if you intend to resubmit. Instead just modify it to a price that will not fill any time soon and modify it back down when you are ready to use it again.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ETFVoyageur, Today, 12:52 AM
        0 responses
        2 views
        0 likes
        Last Post ETFVoyageur  
        Started by Board game geek, Yesterday, 02:20 AM
        2 responses
        21 views
        0 likes
        Last Post Board game geek  
        Started by jackiegils, Yesterday, 11:05 PM
        0 responses
        5 views
        0 likes
        Last Post jackiegils  
        Started by cre8able, 05-09-2024, 09:15 PM
        2 responses
        17 views
        0 likes
        Last Post cre8able  
        Started by Trader146, Yesterday, 09:17 PM
        0 responses
        10 views
        0 likes
        Last Post Trader146  
        Working...
        X