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

Orders don't get filled with Market Replay

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

    Orders don't get filled with Market Replay

    Hello,

    I test a strategy with Market Replay, with ^SP500, on each incoming tick. All entry orders reach "Working" state, but no one is filled.

    What could be the reason and how to fix this?

    Thanks,

    Valentin

    #2
    Hello Valyo,

    Thank you for writing in.

    Are you submitting limit orders with your strategy? If this is the case, they will remain in a working state until filled. Limit orders fill at the limit price or better.

    Can you provide sample syntax of your order submission?
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Hello Zachary,

      The strategy is with limit orders. They remain in a working state until the end of the session and then they are cancelled (ExitOnClose = true).

      I replaced limit orders with EnterLong / EnterShort and the result was the same - the orders were not filled.

      The syntax is:

      Code:
      EnterLongLimit(orderQuantity, limitPrice);
      EnterShortLimit(orderQuantity, limitPrice);
      and

      Code:
      EnterLong(orderQuantity);
      EnterShort(orderQuantity);

      Comment


        #4
        Hello Valyo,

        Please send me your log and trace files so that I may look into what occurred.

        You can do this by going to the Control Center-> Help-> Mail to Platform Support.

        Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.

        Please reference both my name and a link to this thread in the body of the email.
        Zachary G.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by Valyo View Post
          Hello,

          I test a strategy with Market Replay, with ^SP500, on each incoming tick. All entry orders reach "Working" state, but no one is filled.

          What could be the reason and how to fix this?
          I don't think you can trade an index in replay.

          Comment


            #6
            Hello Valyo,

            sledge is correct. I apologize for not looking over the instrument you were trying to trade with. You cannot trade on indexes.
            Zachary G.NinjaTrader Customer Service

            Comment


              #7
              OK, thanks.

              It is strange, because I can download market replay data with ^SP500 index.

              Comment


                #8
                Hello Valyo,

                You are able to download Market Replay data for the ^SP500, yes, but indexes are not tradeable instruments.
                Zachary G.NinjaTrader Customer Service

                Comment


                  #9
                  Yes, I understand. Thank you.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by andrewtrades, Today, 04:57 PM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by chbruno, Today, 04:10 PM
                  0 responses
                  5 views
                  0 likes
                  Last Post chbruno
                  by chbruno
                   
                  Started by josh18955, 03-25-2023, 11:16 AM
                  6 responses
                  436 views
                  0 likes
                  Last Post Delerium  
                  Started by FAQtrader, Today, 03:35 PM
                  0 responses
                  7 views
                  0 likes
                  Last Post FAQtrader  
                  Started by rocketman7, Today, 09:41 AM
                  5 responses
                  19 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Working...
                  X