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 owensd, 04-21-2024, 11:34 PM
    9 responses
    34 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by trilliantrader, 04-10-2024, 09:33 PM
    7 responses
    25 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by traderqz, Today, 12:06 AM
    5 responses
    11 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by Mongo, Today, 11:05 AM
    2 responses
    10 views
    0 likes
    Last Post Mongo
    by Mongo
     
    Started by guillembm, Today, 11:25 AM
    0 responses
    5 views
    0 likes
    Last Post guillembm  
    Working...
    X