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 CortexZenUSA, Today, 12:53 AM
    0 responses
    1 view
    0 likes
    Last Post CortexZenUSA  
    Started by CortexZenUSA, Today, 12:46 AM
    0 responses
    1 view
    0 likes
    Last Post CortexZenUSA  
    Started by usazencortex, Today, 12:43 AM
    0 responses
    5 views
    0 likes
    Last Post usazencortex  
    Started by sidlercom80, 10-28-2023, 08:49 AM
    168 responses
    2,266 views
    0 likes
    Last Post sidlercom80  
    Started by Barry Milan, Yesterday, 10:35 PM
    3 responses
    13 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X