NexusFi: Find Your Edge


Home Menu

 





NT8 way to exclude news events in backtests


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one shodson with 1 posts (1 thanks)
    2. looks_two ragic with 1 posts (0 thanks)
    3. looks_3 gaz0001 with 1 posts (1 thanks)
    4. looks_4 Big Mike with 1 posts (1 thanks)
      Best Posters
    1. looks_one Big Mike with 1 thanks per post
    2. looks_two trendisyourfriend with 1 thanks per post
    3. looks_3 gaz0001 with 1 thanks per post
    4. looks_4 shodson with 1 thanks per post
    1. trending_up 1,624 views
    2. thumb_up 5 thanks given
    3. group 11 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 vickisb 
Sarasota FL
 
Experience: Intermediate
Platform: Ninja Trader
Trading: ES
Posts: 83 since Feb 2017
Thanks Given: 45
Thanks Received: 27

Is there any tool available that can block out times around news events (esp High) when backtesting (replay or strategy analyzer)? How are folks doing that now?


Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Trump Media to sell instant access to market-moving soci …
Traders Hideout
Hormuz Surges From 14% to 26.5% Intraday as Irans Answer …
Prediction Markets & Event Contracts
Without Pulisic, USA 61.5% Live vs. Australia -- France …
Prediction Markets & Event Contracts
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Hormuz Completely Closed: US Strikes Day 2, Iran Shoots …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #2 (permalink)
 gaz0001 
United Kingdom, UK
 
Experience: Intermediate
Platform: TWS, NT8 & TV
Broker: IB & NT
Trading: Futures, Stocks, Options & Crypto
Posts: 118 since Jan 2022
Thanks Given: 48
Thanks Received: 93


vickisb View Post
Is there any tool available that can block out times around news events (esp High) when backtesting (replay or strategy analyzer)? How are folks doing that now?

That would be quite cool.

@Popsicle wrote a cool news indicator.



I don't know if these timestamps / priorities are outputted to the data box, but if so it could be used as a signal filter.


Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
 
shodson's Avatar
 shodson 
OC, California, USA
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Broker: IB, ToS, Kinetick
Trading: stocks, options, futures, VIX
Posts: 1,972 since Jun 2009
Thanks Given: 534
Thanks Received: 3,720


I just keep an array of dates and times on C# that I want to treat special, but I have to manually keep that up to date.


Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,577

I'll chime in a bit:
- Use a reliable calendar source you can parse
- Think about time zones and make sure to account
- Save in a file and load array once per strategy and refresh at midnight (if you keep your live strategies running weeks or months) -- file is easy to share across strategies
- Don't use these to over optimize and curve fit

Decide your rules -- are you flat 1 hour before and 1 hour after? Etc

Extremely easy to curve fit so you want common sense rules that you don't keep changing.



Sent using the NexusFi mobile app




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #5 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,581 since Oct 2009
Thanks Given: 4,267
Thanks Received: 6,208

Your suggestions are good for the future but i think he wants to know if there is a tool that tracks and maintain a database of previous news events so that his strategies could take this info into account when backtesting. I am not aware of such a tool that's why i think this is a manual process as suggested eariler in the thread.


Big Mike View Post
I'll chime in a bit:
- Use a reliable calendar source you can parse
- Think about time zones and make sure to account
- Save in a file and load array once per strategy and refresh at midnight (if you keep your live strategies running weeks or months) -- file is easy to share across strategies
- Don't use these to over optimize and curve fit

Decide your rules -- are you flat 1 hour before and 1 hour after? Etc

Extremely easy to curve fit so you want common sense rules that you don't keep changing.



Sent using the NexusFi mobile app


Reply With Quote
Thanked by:
  #6 (permalink)
 ragic 
N. Yorks, UK
 
Experience: Intermediate
Platform: NT8
Trading: ES
Frequency: Never
Duration: Seconds
Posts: 77 since Jun 2011
Thanks Given: 46
Thanks Received: 92

You could try using different or modified trading hours to cut out the period when most data releases are announced, ie 1 hour before US Cash Open.

Maybe just use the trading hours for RTH.
or
Make your own Trading Hours template to stop data, say 5 min before announcement time. In my time zone, RTH is 14.30. Data releases are mostly 13.30pm. So stop the data at 13.25, and restart at, say, 13.45.

There will be gaps which ever way you do it. It would mean those minutes would be cut out every day.

Most market moving data releases are 1 hour before Cash Open.

Might be worth a try...


Reply With Quote




Last Updated on January 15, 2024


© 2026 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 - Downloads - Top
no new posts