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

Filtering out dead symbols

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

    Filtering out dead symbols

    I am trying to create a market scanner

    This is how it works
    I have imported 3000 stock symbols for the U.S. exchange and put them into a list
    Then I create a condition as a strategy and then run this condition(strategy) on the strategy analyser and if the conditions are met it prints the instrument name
    Example :
    If (price is above SMA200)
    Print(instrument. Full name )

    Seems to be working good but there is a one problem, as there is over 3000 stocks on my list some of the symbols are dead (don't trade no more) (also using latest up to date stock list)
    So when the strategy analylizer reaches the first of the these stocks it gets stuck and doesn't proceed thus not letting the scan complete it just writes "loading ABC " in the corner and stays on it.

    Is there any way that I can tell the strategy that if there is no data available skip the symbol and print(instrument.fullname + "dead symbol") and continue scanning

    Btw how do I delete a thread from NT forum?
    Last edited by maaz1598; 07-04-2016, 09:26 AM.

    #2
    Hello maaz1598,

    Thank you for your post.

    You cannot delete a thread in the forum.

    There is no means to make sure the data is not attempted to load. It would be advisable to remove the instruments that are no longer active.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by GussJ, 03-04-2020, 03:11 PM
    11 responses
    3,229 views
    0 likes
    Last Post xiinteractive  
    Started by andrewtrades, Today, 04:57 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    7 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    441 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    12 views
    0 likes
    Last Post FAQtrader  
    Working...
    X