Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Market Replay
Collapse
X
-
I was wondering about how Market Replay increases replay speeds. Does it skip frames and just use a keyframe to draw charts from or does it still fill in all the ticks inbetween? I am wondering this because I want to know if I can forward test my strategy at 50x to get quick results.Josh P.NinjaTrader Customer Service
Comment
-
I did a simple test with Bars.PercentComplete in Market Replay and this is the behavior I am experiencing.
At 1x speed I can get this code to output perfectly. It spits out the percent of the bar from 99% till the bar becomes 100%.
The problem is when Market Replay is sped up to 50x. It will stop printing these outputs and act like it completely skipped them. I suspect because of the way Market Replay increases speed (it seems to jump on steady intervals of 50secs at 50x) it causes Bars.PercentComplete to probably go from 90% straight to 100% thus never satisfying the inbetween condition at 99%. Any workaround ideas for this?Code:if(Bars.PercentComplete*100 >= 99) { Print("Time: "+Time[0]+" "+Bars.PercentComplete*100); }Josh P.NinjaTrader Customer Service
Comment
-
In my replays I think the Bars.FirstBarOfSession is not working properly. I have my chart set to session begin at 6:30AM. I confirmed that the Bars was getting the proper session begin time via Print(Bars.SessionBegin);. When I do a simple print on Bars.FirstBarOfSession though it returns false even if it is the first bar of the session.
I did Print(Now+" "+Bars.FirstBarOfSession); in OnBarUpdate() and this is what it returns to me "7/26/2007 6:30:02 AM False". 6:30:02AM is definitely in the first bar and yet the bool is still returning false.Josh P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
21 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
121 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
176 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
92 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
134 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|

Comment