Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exclude Stock from Strategy on Earnings Date

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

    Exclude Stock from Strategy on Earnings Date

    Hello, I am looking for a way to automatically exclude a stock from a basket of stocks if the stock/company releases earnings that day. I try to program this in Script but don't know where to start. Is this at all possible?

    #2
    Hello JBU1314,

    Thank you for your note.

    What you could do is obtain the earnings release calendar from another source and put it into a .txt, maybe one exists however I’m unaware of such. Then you could then use NinjaTrader to scan that file and check todays date against the dates defined in the .txt file. You could use the reference example below as a guide for how to read from a text file.



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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X