Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get news from ninja script strategy

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

    Get news from ninja script strategy

    Hi, I am currently trying to get the news through a ninja script strategy, I have succeeded.

    However, it only brings me the current day, is there any way to bring me historical news?


    These news are printed in the log indefinitely, even deactivating the strategy. Is there any way to avoid this?

    Thank you

    #2
    Hello 7robert,

    Thanks for the post.

    To confirm, are you using the addon new subscription as shown here? : https://ninjatrader.com/support/help...hlightsub=news

    The subscription is mainly only intended for receiving current news and there is not a specific historical news collection that I am aware of. The platform would have to be running and your code running to see the news, you could then save those events to file to reload them if needed.

    The news being printed indefinitely hints at not unsubscribing from the event, did you utilize the
    Code:
    if (newsSubscription != null)
        newsSubscription.Update -= OnNews;
    From State.Terminated ?


    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    81 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    149 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    79 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    52 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    59 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X