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

Order cancellation

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

    Order cancellation

    Dear Sir,

    I have the following problem: when I am in a MarketPosition short and have a limit order active. before the market reach my limit price the system cancel my order with the following info:

    {Order='11e5519f0b8e460a9baae20351024e9c/Replay101' Name='MRShort' State=Cancelled Instrument='$USDCAD' Action=BuyToCover Limit price=1.04375 Stop price=0 Quantity=0.1M Type=Limit Tif=Gtc OverFill=False Oco='' Filled=0 Fill price=0 Token='11e5519f0b8e460a9baae20351024e9c' Gtd='1/1/0001 12:00:00 AM'}

    can you please help me understand the reason for the cancelation of the limit order.

    Regards,

    Assaf

    #2
    Hello Assaf,

    Thank you for your note.

    What method is used for the Limit Order? Is it an Exit() or Enter() method?

    What is set for the liveUntilCancelled bool?

    I look forward to your response.

    Comment


      #3
      thanks, it was the liveUntilCancelled.
      please advice also in the following issue: when having a connection lost, I am losing the pointers to my active orders become null and the Position is not flat. in this case I need to handle the situation maybe some kind of recovery. first to know that the reason of losing the active orders is due to connection lost and when the connection restart handle recovery.

      Assaf

      Comment


        #4
        Hello Assaf,

        Thank you for your response.

        Please go to Tools > Options > Strategies > NinjaScript, and then please take a screenshot of the settings here and attach to your response.

        For information on the Strategies tab please visit the following link: http://www.ninjatrader.com/support/h...tegies_tab.htm

        I look forward to your response.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by elirion, Today, 09:32 PM
        0 responses
        1 view
        0 likes
        Last Post elirion
        by elirion
         
        Started by cre8able, Today, 09:15 PM
        1 response
        3 views
        0 likes
        Last Post bltdavid  
        Started by cummish, Today, 08:43 PM
        0 responses
        6 views
        0 likes
        Last Post cummish
        by cummish
         
        Started by Option Whisperer, Today, 07:58 PM
        4 responses
        18 views
        0 likes
        Last Post Option Whisperer  
        Started by ETFVoyageur, 05-07-2024, 07:05 PM
        13 responses
        87 views
        0 likes
        Last Post ETFVoyageur  
        Working...
        X