Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Worst strategy result ever

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

    Worst strategy result ever

    Hi,

    You might get a chuckle out of this. Luckily it wasn't real money.

    Best Regards,
    Scott
    Attached Files

    #2
    Scott,




    Thanks for sharing!
    MatthewNinjaTrader Product Management

    Comment


      #3
      This is hilarious

      Comment


        #4
        Have you tried reversing the trade criteria?

        I am just curious; so far my experience has been that reversing trade criteria does not often reverse the results.

        Comment


          #5
          koganam, why didn't I think of that?

          Comment


            #6
            Hi,

            I found the issue and depending on your point of view, it is a bug or a "feature" in the NinjaTrader default fill code. I missed a price conversion from the integer I use as an internal key and the instrument price (6E, so by a factor of 10,000).

            I was putting limit orders out at what was supposed to be below the market but as it turned out was quite a bit above the market (as in 13704 vs 1.3704). The default fill basically says (to the extend default fills ever say anything, a normally quiet bunch they are) if that is what you want, there you go. Of course my modest stop of a few ticks was hit immediately.

            To my way of thinking, the default fill should determine if the order is above the market, it is simply a marketable limit order and will fill as a market order would. I had previously fixed this with a custom fill type but forgot to change it during the back test.

            It is something you may want to consider changing. Of course I understand there may be cases where you don't know what the market is and therefore have to rely on the order itself but it would seem if you can do this for a market order, you can do it for a marketable limit order.

            Best Regards,
            Scott

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            146 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            71 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            125 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            79 views
            0 likes
            Last Post PaulMohn  
            Working...
            X