Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Limit Orders in Simulation

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

    Limit Orders in Simulation

    I've written an Add-on that is using limit orders to enter and exit trades. In my simulation testing, it looks like the limit orders are being filled when the limit price is hit, not when it is exceeded. Are the order fill assumptions different in simulation trading than they are for backtesting strategies?

    #2
    Hello SystemTrading,

    Thank you for your note.

    There would be some differences between sim trading and a backtest in the Strategy Analyzer, yes. I'd take a look at this section of our help guide first:



    When running the strategy in Simulation, is Fill Limit Orders on Touch checked in the Strategy Parameters? If so, uncheck this option.

    Thanks in advance; I look forward to assisting you further.

    Kate W.NinjaTrader Customer Service

    Comment


      #3
      My program is an Add-on, not a Strategy. So, I do not have that option. I am placing orders using the Account.Submit() method. Are limit orders placed with that method going to be filled when the price is hit?

      Comment


        #4
        Hello SystemTrading,

        Thank you for your clarification.

        Under Tools > Options > Trading, is Enforce Immediate Fills checked or unchecked? If it's checked, uncheck that box and test.

        Please let us know if we may be of further assistance to you.
        Kate W.NinjaTrader Customer Service

        Comment


          #5
          I have that option unckecked and it looks like the orders are being filled when the limit price is first touched. Is that the expected behavior?

          Comment


            #6
            Hello SystemTrading,

            Thank you for your reply.

            To clarify, in simulation Limit orders use bid/ask to trigger, so they'll trigger when that passes the limit price.

            Please let us know if we may be of further assistance to you.
            Kate W.NinjaTrader Customer Service

            Comment


              #7
              Thank you for the clarification!

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by zoelloy11, Today, 11:35 AM
              0 responses
              2 views
              0 likes
              Last Post zoelloy11  
              Started by Graci117, 06-19-2024, 01:39 PM
              4 responses
              35 views
              0 likes
              Last Post Graci117  
              Started by VivaSlimCA, Today, 11:25 AM
              0 responses
              3 views
              0 likes
              Last Post VivaSlimCA  
              Started by RISKYBUSINEZZ, Today, 10:53 AM
              0 responses
              3 views
              0 likes
              Last Post RISKYBUSINEZZ  
              Started by yossefbn, 03-20-2024, 11:39 PM
              4 responses
              51 views
              0 likes
              Last Post RISKYBUSINEZZ  
              Working...
              X