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 NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X