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

Need a solution for computation Intensive process

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

    Need a solution for computation Intensive process

    I have a strategy that adds several symbols. the strategy works with 500 symbols... I add them to barsarray, and access them one by one. When I try to input several more (more than a 1000), Ninjatrader throws an exception and stops working. I can only assume that this happens because this process is computation intensive. is there a sample available in NT8 to use Parallel.ForEach() loop to input the bars in BarsArray, and return a list with the indicator values...?

    #2
    Hello Yandychang,

    Thank you for your note.

    There would be an example of what you are attempting to do. What exception are you seeing?

    Comment


      #3
      Error

      attached is the error I am Getting
      Attached Files

      Comment


        #4
        Hello Yandychang,

        The image looks as though it did not upload correctly. Can you re-attach the screenshot to your response?

        Comment


          #5
          Is there an email I can send you the files to. I was able to use parallel.ForEach() method and return what I needed; works faster for the symbols in SP500, but I get the same error for several more symbols...

          Comment


            #6
            Yandychang,

            You can send it over to platformsupport[at]ninjatrader[dot]com with 'ATTN: Patrick H - 1463869' in the subject line.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by traderqz, Today, 12:06 AM
            10 responses
            18 views
            0 likes
            Last Post traderqz  
            Started by algospoke, 04-17-2024, 06:40 PM
            5 responses
            46 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by arvidvanstaey, Today, 02:19 PM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_Zachary  
            Started by mmckinnm, Today, 01:34 PM
            3 responses
            5 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by f.saeidi, Today, 01:32 PM
            2 responses
            9 views
            0 likes
            Last Post f.saeidi  
            Working...
            X