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 Nicholewatkinsi, Today, 10:53 PM
            0 responses
            3 views
            0 likes
            Last Post Nicholewatkinsi  
            Started by dward123, 01-02-2024, 09:59 PM
            4 responses
            174 views
            0 likes
            Last Post Lancer
            by Lancer
             
            Started by ETFVoyageur, Today, 04:00 PM
            2 responses
            19 views
            0 likes
            Last Post ETFVoyageur  
            Started by AaronKTradingForum, Today, 03:44 PM
            1 response
            13 views
            0 likes
            Last Post AaronKTradingForum  
            Started by Felix Reichert, 04-26-2024, 02:12 PM
            11 responses
            80 views
            0 likes
            Last Post Felix Reichert  
            Working...
            X