Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Back testing issue

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

    Back testing issue

    Hi,

    I am trying to find a way around an issue I have with back testing vs. live trading.

    If I am short and get a long signal, I want to exit at the market. Because I am using Unmanaged orders, I just change the profit order to a price well above the market and it effectively becomes a market order.

    While this is true in live trading; I noticed in back testing, I am actually getting a fill at the limit price (almost 20 ticks above the market) which is above even the high of the bar.

    I move my profit target from 1.4120 (6E) to 1.4164 and I get an execution at 1.4164 even though the high of that bar is 1.4148. In live trading I would get a fill at the close of the signal bar plus a tick or so; this constitues almost 20 ticks slippage.

    I am looking for the following answers a) do I have a setting or something basic set wrong that could cause this b) is there a simple way around this?

    I have already thought of lots of ways around the issue but they all involve changing code that works in live trading to accomodate a back test.

    Any suggestions will be appreciated.

    Best Regards,
    Scott

    #2
    Fill type=Liberal

    Comment


      #3
      Thanks that fixed it. Are there other implications to using fill type = liberal such as limit orders getting filled if the market traded at the price, etc?

      Comment


        #4
        It seems I have a special case and I am going to have to create my own fill algorithm to combine the two different types to get what I want.

        Thanks.

        Comment


          #5
          Hello,

          Thanks for the assist Baruch!

          Yes you can do this if it is needed. However you are able to do so however it is largly unsupported and is a sandbox for you to "play" in.

          Let me know if I can be of further assistance.
          BrettNinjaTrader Product Management

          Comment


            #6
            Brett, thanks for the information and offer.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            656 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            371 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            109 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            574 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            579 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X