What is overfitting, and how to avoid overfitting?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Overfitting
Collapse
X
-
Tags: None
-
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().
Hello. Why does my strategy not reverse positions as soon as I put in StopLoss or TrailStop methods? The active position has to be closed by either two
Chelsea B.NinjaTrader Customer Service
-
No,
I'm talking about curve fitting. I was optimizing 40 input parameters and someone said I was overfitting.
Comment
-
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
-
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, 05-11-2026, 05:56 AM
|
0 responses
58 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
34 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
195 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
360 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
281 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
Comment