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 shodson with 1 thanks per post
    2. looks_two vickisb with 1 thanks per post
    3. looks_3 Big Mike with 1 thanks per post
    4. looks_4 trendisyourfriend with 1 thanks per post
    1. trending_up 460 views
    2. thumb_up 5 thanks given
    3. group 11 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

NT8 way to exclude news events in backtests

  #1 (permalink)
 vickisb 
Sarasota FL
 
Experience: Intermediate
Platform: Ninja Trader
Trading: ES
Posts: 59 since Feb 2017
Thanks Given: 36
Thanks Received: 22

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?
REcommedations for programming help
Sierra Chart
Exit Strategy
NinjaTrader
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Increase in trading performance by 75%
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
  #2 (permalink)
 gaz0001 
United Kingdom, UK
 
Experience: Intermediate
Platform: TWS, NT8 & TV
Broker: IB & NT
Trading: Futures, Stocks, Options & Crypto
Posts: 110 since Jan 2022
Thanks Given: 45
Thanks Received: 90


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
Quantoholic
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Broker: IB, ToS, Kinetick
Trading: stocks, options, futures, VIX
Posts: 1,976 since Jun 2009
Thanks Given: 533
Thanks Received: 3,709


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 Twitter 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,442 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,602

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 Twitter 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,527 since Oct 2009
Thanks Given: 4,175
Thanks Received: 6,020

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: 57 since Jun 2011
Thanks Given: 35
Thanks Received: 58

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


© 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