Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Overfitting

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

    Overfitting

    Hello,

    What is overfitting, and how to avoid overfitting?

    #2
    Hello AdeptistJune,

    An Overfill is when an order that is part filled or filled is attempted to be cancelled.

    It's not possible to cancel a filled order so this results in an overfill error.

    Avoid overfilling by checking an order is .Working or .Accepted before attempting to cancel, do not use multiple exit orders for the same entry, do not call an exit and entry method on the same pass of OnBarUpdate().


    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      No,

      I'm talking about curve fitting. I was optimizing 40 input parameters and someone said I was overfitting.

      Comment


        #4
        Hello,

        I'm not to sure on that. Have you asked the person what they were meaning by this?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          It was in another thread. The thread was not about this topic but overfitting was mentioned, and I didn't want to mess up the thread with a conversation that was off-topic.

          Comment


            #6
            Overfitting occurs when you have too many parameters and essentially optimize too much so you "learn the noise" instead of the signal. In general, the fewer the parameters the better.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            47 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            23 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            33 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            51 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            42 views
            0 likes
            Last Post CarlTrading  
            Working...
            X