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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
72 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
39 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
63 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
63 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment