Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit trades before News

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Exit trades before News

    Hello,

    I have several strategies and using a NewsManager to block trades during news.

    This week I had an overfill because of exit on news and stoploss being triggered at the same time.

    Is there a code to exit a no. of minutes before the news?

    #2
    daxtrading, this would be possible if you could access the news indicator to check for pending news...or you simply set up time inputs for the strategy and then designate a window of 3 mins before / after to no take any trades and exit any ones being held -

    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      daxtrading, this would be possible if you could access the news indicator to check for pending news...or you simply set up time inputs for the strategy and then designate a window of 3 mins before / after to no take any trades and exit any ones being held -

      http://www.ninjatrader.com/support/f...ead.php?t=3226
      I can access the newsindicator and it is checking for pending news.
      My strategy is not trading x minutes before and x minutes after news.
      I am not a programmer and my strategy is now exiting a trade when the news is released and that is giving me bad fills.

      I am not a programmer but understand my strategies/code.

      Any example to add code that say's exit x minutes before news?

      Comment


        #4
        I would unfortunately not be familiar with your custom code checking for news, but if it gives you a news time you can easily create such an exit...you would check for the time being equal to the news time - an offset (for example 2 mins) and then call ExitLong / ExitShort to get flat (ignored when position does not exist) - http://www.ninjatrader-support.com/H...deV6/Time.html
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Jimmyk, 01-26-2018, 05:19 AM
        6 responses
        835 views
        0 likes
        Last Post emuns
        by emuns
         
        Started by jxs_xrj, 01-12-2020, 09:49 AM
        6 responses
        3,291 views
        1 like
        Last Post jgualdronc  
        Started by Touch-Ups, Today, 10:36 AM
        0 responses
        10 views
        0 likes
        Last Post Touch-Ups  
        Started by geddyisodin, 04-25-2024, 05:20 AM
        11 responses
        62 views
        0 likes
        Last Post halgo_boulder  
        Started by Option Whisperer, Today, 09:55 AM
        0 responses
        9 views
        0 likes
        Last Post Option Whisperer  
        Working...
        X