Is it possible to backtest strategy with "Enter on Bar Open" using Strategy Analyzer?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Backtest Strategy - Strategy Analyzer
Collapse
X
-
No.
(Btw, welcome to the forums!)
I mean, um, you won't find any terminology like that, sooo ... as to the wording of
your question -- the answer is a soft "no".
Why a 'soft' no?
Because, NinjaTrader defines "on bar close" and "on bar open" as the exact
same event -- or more precisely, it is the first tick of a new bar that is precisely
recognized, and it is that tick that drives the "on bar close" event -- the first tick
of a new bar is, by definition, doing double duty in the internal code.
Strategy Analyzer executes your strategy in such a way that your OnBarUpdate is
called in "on bar close" mode -- in fact, this mode is the only mode supported by
Strategy Analyzer.
[This discussion presumes you're well aware of the Calculate mode setting and
what it means and how it is used. My point is, Strategy Analyzer ignores the
Calculate setting and always runs your Strategy in OnBarClose mode -- but,
technically, even this can be altered somewhat if you enable TickReplay.]
Anyways, the final answer is "yes", except that NinjaTrader prefers terminology
that refers to "on bar close", not "on bar open".Last edited by bltdavid; 02-01-2022, 06:11 AM.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
61 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
39 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
21 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
23 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
51 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment