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 rbeckmann05, Yesterday, 06:48 PM
        1 response
        12 views
        0 likes
        Last Post bltdavid  
        Started by llanqui, Today, 03:53 AM
        0 responses
        6 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        10 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        15 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Working...
        X