Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
strategy backtest trade assumptions
Collapse
X
-
strategy backtest trade assumptions
While doing Ninjatrader backesting, is it possible to configure such that whenever OnBarUpdate() generates EnterLong() or EnterShort(), the backtesting P&L assumes that a "market order" was filled at the "Open" of the very next bar?Tags: None
-
I'm pretty sure that this is exactly what happens when CalculateOnBarClose=True.Originally posted by uday12 View PostWhile doing Ninjatrader backesting, is it possible to configure such that whenever OnBarUpdate() generates EnterLong() or EnterShort(), the backtesting P&L assumes that a "market order" was filled at the "Open" of the very next bar?
And, you're in luck, the Strategy Analyzer window (where you do all your backtesting) always assumes CalculateOnBarClose=True. I mean, the property grid in the Straegy Analyzer window doesn't even show this property.
However, if you want to experiment with the settings in the Historical Fill Processing section, changing 'Fill type' from Default to Liberal may affect what you're looking for.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
30 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, Yesterday, 02:41 AM
|
0 responses
13 views
0 likes
|
Last Post
by CarlTrading
Yesterday, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
22 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
34 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment