NexusFi: Find Your Edge


Home Menu

 





IB Backtesting and Data Feeds


Discussion in Brokers

Updated
    1. trending_up 4,816 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 10 posts
    2. attach_file 0 attachments




 
Search this Thread

IB Backtesting and Data Feeds

  #1 (permalink)
RAM011558
Davenport Iowa USA
 
Posts: 9 since Oct 2016
Thanks Given: 0
Thanks Received: 1

Hi,

This is likely a common problem but I have not yet found a solution. I am using Interactive Brokers along with NinjaTrader. The strategy is fairly simple in that it uses moving averages crossovers. I am finding that the positions of these moving averages do not match when using a live feed VS historical data. I am assuming that this is due to the fact that in live, I am receiving tick data but in back test, I am only receiving OHLC bar data. Is this the case? How can this be overcome such that I can use the results of my back testing in real time? Forgive if this is simplistic as I am relatively new to this. Thank you for the help.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 choke35 
Germany
 
Experience: Intermediate
Platform: Other
Trading: ES, YM, 6E
Posts: 2,668 since Feb 2013
Thanks Given: 5,101
Thanks Received: 6,558



RAM011558 View Post
Hi,

This is likely a common problem but I have not yet found a solution. I am using Interactive Brokers along with NinjaTrader. The strategy is fairly simple in that it uses moving averages crossovers. I am finding that the positions of these moving averages do not match when using a live feed VS historical data. I am assuming that this is due to the fact that in live, I am receiving tick data but in back test, I am only receiving OHLC bar data. Is this the case? How can this be overcome such that I can use the results of my back testing in real time? Forgive if this is simplistic as I am relatively new to this. Thank you for the help.

The short version: Stop considering IB data as a surrogate for a real-time data feed.

If you bother to use the FIO search then you virtually find hundreds of posts that
clarify the differences.

Reply With Quote
  #4 (permalink)
RAM011558
Davenport Iowa USA
 
Posts: 9 since Oct 2016
Thanks Given: 0
Thanks Received: 1


choke35 View Post
The short version: Stop considering IB data as a surrogate for a real-time data feed.

If you bother to use the FIO search then you virtually find hundreds of posts that
clarify the differences.


Thanks and I have seen many of those posts. I am looking for a solution which I haven't seen yet. Let me re-ask this in another way. If IB uses uses OHLC for back testing, is it possible to receive live OHLC data from IB such that the back tested data and indicators will align with the live data and indicators?

Reply With Quote
  #5 (permalink)
 choke35 
Germany
 
Experience: Intermediate
Platform: Other
Trading: ES, YM, 6E
Posts: 2,668 since Feb 2013
Thanks Given: 5,101
Thanks Received: 6,558


RAM011558 View Post
Thanks and I have seen many of those posts. I am looking for a solution which I haven't seen yet. Let me re-ask this in another way. If IB uses uses OHLC for back testing, is it possible to receive live OHLC data from IB such that the back tested data and indicators will align with the live data and indicators?

Guess you still don't get the difference between realtime and what IB provides.
There is no such thing like unfiltered tick data or unfiltered "live" or whatever you call that from IB.
So the answer is no.

Reply With Quote
  #6 (permalink)
RAM011558
Davenport Iowa USA
 
Posts: 9 since Oct 2016
Thanks Given: 0
Thanks Received: 1


choke35 View Post
Guess you still don't get the difference between realtime and what IB provides.
There is no such thing like unfiltered tick data or unfiltered "live" or whatever you call that from IB.
So the answer is no.


No I don't get it. As I mentioned, this is relatively new to me and as a result, the reason why I am asking. So are you saying that this is a result of using IB? Would using another broker resolve the discrepancy between historical data and real time data?

Reply With Quote
Thanked by:
  #7 (permalink)
 choke35 
Germany
 
Experience: Intermediate
Platform: Other
Trading: ES, YM, 6E
Posts: 2,668 since Feb 2013
Thanks Given: 5,101
Thanks Received: 6,558

There's a difference between platform, data supplier, and broker.

If you want to backtest anything, forget snapshot data and get a tick-based realtime data stream
for your platform. Both have few to do with your broker. The broker is only your execution channel.

For NT == platform that you name in your profile, there exist tons of tick-based realtime data suppliers.
You find the descriptions plus their pros and cons in the respective FIO threads. Choose one data vendor that fits
your requirements and do your charting, backtests etc.

For real execution, configure NT to your broker.

Reply With Quote
  #8 (permalink)
RAM011558
Davenport Iowa USA
 
Posts: 9 since Oct 2016
Thanks Given: 0
Thanks Received: 1


choke35 View Post
There's a difference between platform, data supplier, and broker.

If you want to backtest anything, forget snapshot data and get a tick-based realtime data stream
for your platform. Both have few to do with your broker. The broker is only your execution channel.

For NT == platform that you name in your profile, there exist tons of tick-based realtime data suppliers.
You find the descriptions plus their pros and cons in the respective FIO threads. Choose one data vendor that fits
your requirements and do your charting, backtests etc.

For real execution, configure NT to your broker.


Thank you. A big help. From what I've investigate so far, the issue is that most historical tick based data only goes back 3 or 4 months while I need years worth of data (3 years or so). Is this your understanding or am I wrong?

Also, I am wondering if NT could handle that much tick data during a 3 year backtest before it bogs down. What do you think? Don't mean to take up a lot of your time with this but your experience and feedback is very appreciated.

Reply With Quote
  #9 (permalink)
RAM011558
Davenport Iowa USA
 
Posts: 9 since Oct 2016
Thanks Given: 0
Thanks Received: 1


choke35 View Post
There's a difference between platform, data supplier, and broker.

If you want to backtest anything, forget snapshot data and get a tick-based realtime data stream
for your platform. Both have few to do with your broker. The broker is only your execution channel.

For NT == platform that you name in your profile, there exist tons of tick-based realtime data suppliers.
You find the descriptions plus their pros and cons in the respective FIO threads. Choose one data vendor that fits
your requirements and do your charting, backtests etc.

For real execution, configure NT to your broker.


One last question. If I understand you correctly, I could have NT running with a given data supplier and giving execution commands to IB?

Reply With Quote
  #10 (permalink)
 choke35 
Germany
 
Experience: Intermediate
Platform: Other
Trading: ES, YM, 6E
Posts: 2,668 since Feb 2013
Thanks Given: 5,101
Thanks Received: 6,558



RAM011558 View Post
One last question. If I understand you correctly, I could have NT running with a given data supplier and giving execution commands to IB?

Correct.

Until summer 2014 the standard NT config looked like: NT + data vendor + broker.
(That changed only insofar as NT absorbed Mirus in 2014, hence becoming a broker of its own.)

Reply With Quote
Thanked by:




Last Updated on November 1, 2016


© 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