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 NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
81 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
150 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
79 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
52 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
59 views
0 likes
|
Last Post
|
Comment