Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Alerts and/or flatten open positions when tier-1 news are scheduled

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

    Alerts and/or flatten open positions when tier-1 news are scheduled

    I would like to develop a special indicator/strategy for NT7 that would alert me x hours before a tier-1 news regarding any of the major currencies, and I would also want this code to flatten any open positions x minutes before any tier-1 news.

    I am open to suggestions on how to solve this the best way, or if I need some more special feature regarding news that I have not thought of.

    It has happened once or twice that I missed important tier-1 news and the volatility made my positions go in big loss.

    Any ideas are welcome, not only code.
    Thank you!

    #2
    Hello Warcious,

    Thank you for your note.

    To have an alert that would trigger prior to news you’d have to define a list of dates/times considered tier 1 news. You then could have an indicator/strategy reference this list and if time equals that time minus x hours, trigger an alert.

    You could define this list of dates/times in a .txt file which you could then reference, a reference example for this can be found,


    To have the alert trigger x hours before those defined dates/times, you would need to manipulate the DateTime Objects, a reference example demonstrating that can be found here,


    Regarding that same logic also closing all positions/flattening everything, NinjaTrader does not support any method which does this. However there is a command which is unsupported and you could read about that on this thread.



    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    558 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X