NexusFi: Find Your Edge


Home Menu

 





Market replay vs real time.


Discussion in NinjaTrader

Updated
    1. trending_up 1,495 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 7 posts
    2. attach_file 0 attachments




 
Search this Thread

Market replay vs real time.

  #1 (permalink)
 calhawk01 
baltimore marylnd
 
Experience: Beginner
Platform: ninja
Trading: es
Posts: 91 since May 2013
Thanks Given: 5
Thanks Received: 11

Hi

I have a high frequency strategy that I'm testing. It utilizes bid ask data. Multi instrument strategy. It tries to seek arbitrage opportunities between two instruments. So for today's data. According to market replay in ninja trader i had 588 orders generated and executed. But in real time data (I have CQG) only 12 trades were generated and executed! My settings are identical for market replay and real time

Settings
Market replay = 1 min data series. COBC = false

Real time = 1 min data series. COBC = false

So in theory, since I believe market replay data is actually aggregated on 1 sec data, I was actually expecting more orders generated and executed in real time. But it actually generated significantly less trades!!! Why?

Could it be filtered data vs unfiltered data? Anyone know who the provider is for aggregating market replay data?

Any other reasons this could be happening??

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
Better Renko Gaps
The Elite Circle
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
35 thanks
Bigger Wins or Fewer Losses?
24 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #2 (permalink)
 calhawk01 
baltimore marylnd
 
Experience: Beginner
Platform: ninja
Trading: es
Posts: 91 since May 2013
Thanks Given: 5
Thanks Received: 11

anyone?

Started this thread Reply With Quote
  #3 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,395



calhawk01 View Post
Hi

I have a high frequency strategy that I'm testing. It utilizes bid ask data. Multi instrument strategy. It tries to seek arbitrage opportunities between two instruments. So for today's data. According to market replay in ninja trader i had 588 orders generated and executed. But in real time data (I have CQG) only 12 trades were generated and executed! My settings are identical for market replay and real time

Settings
Market replay = 1 min data series. COBC = false

Real time = 1 min data series. COBC = false

So in theory, since I believe market replay data is actually aggregated on 1 sec data, I was actually expecting more orders generated and executed in real time. But it actually generated significantly less trades!!! Why?

Could it be filtered data vs unfiltered data? Anyone know who the provider is for aggregating market replay data?

Any other reasons this could be happening??

Hi @calhawk01,

My guess is that Market Replay adds a lot of noise to a smooth market in real-time. I am not sure any high frequency strategy can be effectively testing on Replay due to the 1 sec buckets. We would need to know more about the trigger conditions to get you any closer, but my feeling is this might need to wait for NT8 with 1 millisecond resolution.

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 calhawk01 
baltimore marylnd
 
Experience: Beginner
Platform: ninja
Trading: es
Posts: 91 since May 2013
Thanks Given: 5
Thanks Received: 11


NJAMC View Post
Hi @calhawk01,

My guess is that Market Replay adds a lot of noise to a smooth market in real-time. I am not sure any high frequency strategy can be effectively testing on Replay due to the 1 sec buckets. We would need to know more about the trigger conditions to get you any closer, but my feeling is this might need to wait for NT8 with 1 millisecond resolution.

the strategy is simple. try to buy same instrument and profit from spread between different exchanges. pennies. according to market replay, this opportunity does exist (over 500 times). according to real time, it does not, well it does but on 13 times. i have been in contact with ninja support, they jumped on trying to provide support, but failed to understand what I am telling them, and the complain that they do not see any variance between market replay and real time. i'm going to work on creating an excel file that has data from market replay vs real time, and try to compare and contrast.

Started this thread Reply With Quote
  #5 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,395


calhawk01 View Post
the strategy is simple. try to buy same instrument and profit from spread between different exchanges. pennies. according to market replay, this opportunity does exist (over 500 times). according to real time, it does not, well it does but on 13 times. i have been in contact with ninja support, they jumped on trying to provide support, but failed to understand what I am telling them, and the complain that they do not see any variance between market replay and real time. i'm going to work on creating an excel file that has data from market replay vs real time, and try to compare and contrast.

@calhawk01,

So does this spread difference exist for a few seconds or do the HFT kill it within 1 second?

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Reply With Quote
  #6 (permalink)
 calhawk01 
baltimore marylnd
 
Experience: Beginner
Platform: ninja
Trading: es
Posts: 91 since May 2013
Thanks Given: 5
Thanks Received: 11


NJAMC View Post
@calhawk01,

So does this spread difference exist for a few seconds or do the HFT kill it within 1 second?

seconds, maybe less than 1 second. Again, i can't see to verify if this difference exist in real time data. But I can in market replay data. That's the weird thing. So i'm thinking perhaps, the latency increases during real time, and perhaps the latency is probably close to zero on market replay data?

Started this thread Reply With Quote
  #7 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,395


calhawk01 View Post
seconds, maybe less than 1 second. Again, i can't see to verify if this difference exist in real time data. But I can in market replay data. That's the weird thing. So i'm thinking perhaps, the latency increases during real time, and perhaps the latency is probably close to zero on market replay data?

@calhawk01,

I would caution you that you may be tracking a digital artifact of time round off under Replay. You may not want to dig too deep into this issue until NT8 is our with 1 ms time stamp resolutions.

What could be happening during replay could be something like this:

INST1: at 10:15:45.305 @ $10, 10:15:45.805 @ $10, 10:15:46.002 @ $20, , 10:15:46.632 @ $20,
in Replay this becomes: 10:15:45 @ $10, 10:15:45 @ $10, 10:15:46 @ $20, 10:15:46 @ $20,


INST2: at 10:15:45.305 @ $10, 10:15:45.805 @ $10, 10:15:45.982 @ $20, 10:15:46.606 @ $20,
in Replay this becomes: 10:15:45 @ $10, 10:15:45 @ $10, 10:15:45 @ $20, 10:15:46 @ $20,

If INST1 & INST2 are correlated, real time arbitrage between the two prices around 10:15:45 is about 0.020Sec (20 ms), but under replay, this will show for a full second.

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Reply With Quote
  #8 (permalink)
 calhawk01 
baltimore marylnd
 
Experience: Beginner
Platform: ninja
Trading: es
Posts: 91 since May 2013
Thanks Given: 5
Thanks Received: 11


NJAMC View Post
@calhawk01,

I would caution you that you may be tracking a digital artifact of time round off under Replay. You may not want to dig too deep into this issue until NT8 is our with 1 ms time stamp resolutions.

What could be happening during replay could be something like this:

INST1: at 10:15:45.305 @ $10, 10:15:45.805 @ $10, 10:15:46.002 @ $20, , 10:15:46.632 @ $20,
in Replay this becomes: 10:15:45 @ $10, 10:15:45 @ $10, 10:15:46 @ $20, 10:15:46 @ $20,


INST2: at 10:15:45.305 @ $10, 10:15:45.805 @ $10, 10:15:45.982 @ $20, 10:15:46.606 @ $20,
in Replay this becomes: 10:15:45 @ $10, 10:15:45 @ $10, 10:15:45 @ $20, 10:15:46 @ $20,

If INST1 & INST2 are correlated, real time arbitrage between the two prices around 10:15:45 is about 0.020Sec (20 ms), but under replay, this will show for a full second.

Thank you for the detailed explanation.

Started this thread Reply With Quote




Last Updated on April 10, 2015


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts