Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Add data function

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

    Add data function

    One of my strategies do use a lot of symbols. For each symbol the data is added by using the Add function in the Initialize section. Is there a way to detect if the Initialize section or the Startup section if a symbol added by the add function has no data available in NT, so I could write a message to the log file? I could not find any documentaion on that or any documention if the Add function has a return value? Kind regards, Rene

    #2
    Hello,

    Thank you for the post.

    In general, there is no suggested way to check if data was loaded for a specific series through code. Generally, if a data request fails, it could hold the script from continuing in processing.

    The best suggestion I could propose for this situation would be to ensure that you have data for the instruments being accessed, both live and historical for the time being requested. If you are unsure if an instrument does or does not have data, you may need to address that before trying to request data from that instrument.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jclose, Today, 09:37 PM
    0 responses
    4 views
    0 likes
    Last Post jclose
    by jclose
     
    Started by WeyldFalcon, 08-07-2020, 06:13 AM
    10 responses
    1,413 views
    0 likes
    Last Post Traderontheroad  
    Started by firefoxforum12, Today, 08:53 PM
    0 responses
    9 views
    0 likes
    Last Post firefoxforum12  
    Started by stafe, Today, 08:34 PM
    0 responses
    10 views
    0 likes
    Last Post stafe
    by stafe
     
    Started by sastrades, 01-31-2024, 10:19 PM
    11 responses
    169 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X