NexusFi: Find Your Edge


Home Menu

 





Refreshing Historical Data Programatically


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Trader.Jon with 2 posts (1 thanks)
    2. looks_two Fat Tails with 2 posts (1 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 Tundi with 1 posts (0 thanks)
    1. trending_up 3,073 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

Refreshing Historical Data Programatically

  #1 (permalink)
 
Trader.Jon's Avatar
 Trader.Jon 
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
Posts: 473 since Jul 2009
Thanks Given: 401
Thanks Received: 184

I see differences (in the entries mostly) between my strategy running on RealTime for a whole session and the results if I open a new chart at the end of the day and run the strategy on totally refreshed data. YES, there are better results on the historical data. I dont really put that down to 'slippage': I think there is more involved.

My gut feeling on this is a need to refresh historical data after the completion of each trade ('clean slate theory'), and it would be so nice to do that within the strategy without having to re-enable it. Any ideas on how that can be accomplished ??

I am open to any and all suggestions. NT support has advised that it cant be done ....

Jon

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
MC PL editor upgrade
MultiCharts
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
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
22 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102



Trader.Jon View Post
I see differences (in the entries mostly) between my strategy running on RealTime for a whole session and the results if I open a new chart at the end of the day and run the strategy on totally refreshed data. YES, there are better results on the historical data. I dont really put that down to 'slippage': I think there is more involved.

My gut feeling on this is a need to refresh historical data after the completion of each trade ('clean slate theory'), and it would be so nice to do that within the strategy without having to re-enable it. Any ideas on how that can be accomplished ??

I am open to any and all suggestions. NT support has advised that it cant be done ....

Jon

If you use a quality (time stamped) data feed, at least the price data should be identical. Where you may find differences is in the reported volume / tick volume.

What you suggest, would reset historical data each time you start a strategy. This will help to make the signals better that occur during the first few bars of the new strategy, but these bars again will be real-time data bars, so the impact of your historical data download will quickly fade away.

I believe that the solution to this problem is a proper real-time data feed.

Reply With Quote
Thanked by:
  #4 (permalink)
 
Trader.Jon's Avatar
 Trader.Jon 
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
Posts: 473 since Jul 2009
Thanks Given: 401
Thanks Received: 184


Fat Tails View Post
If you use a quality (time stamped) data feed, at least the price data should be identical. Where you may find differences is in the reported volume / tick volume.

What you suggest, would reset historical data each time you start a strategy. This will help to make the signals better that occur during the first few bars of the new strategy, but these bars again will be real-time data bars, so the impact of your historical data download will quickly fade away.

I believe that the solution to this problem is a proper real-time data feed.

Thanks for your input Fat Tails,

I dont disagree with you, and I have the feeling I might be in a maybe/maybe not issue . Some entrys it makes a difference, other not. Also, not limited to first entry after data refresh.

I think I have to stay on a broker feed for forex else there might be too much difference with a feed from a different source.

Started this thread Reply With Quote
Thanked by:
  #5 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


Trader.Jon View Post
Thanks for your input Fat Tails,

I dont disagree with you, and I have the feeling I might be in a maybe/maybe not issue . Some entrys it makes a difference, other not. Also, not limited to first entry after data refresh.

I think I have to stay on a broker feed for forex else there might be too much difference with a feed from a different source.

If you talk about FOREX, it is most difficult, as there is no centralized exchange. Historical data might come from a different source, so you cannot use it at all. The only way you can check performance here is via life test or replay. Any backtest based on historical data will probably fail, unless you only trade large time frames.

One reason more to switch to currency futures. They also have better volume information than FOREX, which mostly is converted tick volume.

Reply With Quote




Last Updated on January 26, 2011


© 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