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 DannyP96, 05-18-2026, 02:38 PM
|
1 response
31 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
117 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
69 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
227 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
309 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment