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 Option Whisperer, Today, 09:55 AM
        0 responses
        4 views
        0 likes
        Last Post Option Whisperer  
        Started by geddyisodin, 04-25-2024, 05:20 AM
        8 responses
        58 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by halgo_boulder, 04-20-2024, 08:44 AM
        2 responses
        22 views
        0 likes
        Last Post halgo_boulder  
        Started by mishhh, 05-25-2010, 08:54 AM
        19 responses
        6,189 views
        0 likes
        Last Post rene69851  
        Started by gwenael, Today, 09:29 AM
        0 responses
        6 views
        0 likes
        Last Post gwenael
        by gwenael
         
        Working...
        X