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 argusthome, 03-08-2026, 10:06 AM
            0 responses
            61 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            40 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            21 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            23 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            51 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X