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

Polling Data provider for all available MasterInstrumenrs

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

    Polling Data provider for all available MasterInstrumenrs

    Is there a way to poll a data provider for all available instruments ?

    Or If I build a symbol list and try to add the series, will a get a response indicating I do not have permission for that Item ?

    Thanks

    #2
    Hello GKonheiser,

    Thanks for opening the thread.

    I do not think polling the provider for a list of instruments would be possible to do within NinjaScript, or at least in a supported and documented way.

    You could add multiple instruments to a strategy, however. If a symbol is not valid, Add() will fail and Initialize() will abort. You could use try, catch blocks to allow the strategy to alert the user and continue when an invalid instrument is found.

    For the thread's reference, adding additional data series is described in the reference sample here: http://ninjatrader.com/support/forum...ead.php?t=6652

    Please let me know if I may be of further assistance.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by gentlebenthebear, Today, 01:30 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Aviram Y, Today, 05:29 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by cls71, Today, 04:45 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by TradeForge, Today, 02:09 AM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by elirion, Today, 01:36 AM
    2 responses
    14 views
    0 likes
    Last Post elirion
    by elirion
     
    Working...
    X