Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Parallelization not Possible?

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

    Parallelization not Possible?

    I am afraid I already know the answer, but it was be really super if it was allowed.

    Are parallelized loops possible in NinjaScript? Specifically, parallel for loops (System.Threading.Tasks.Parallel.For)? I am unable to compile 'using System.Threading.Tasks' in my declarations.

    I am guessing that this capability "is not supported." But, it seems that invocation to System.Threading.Tasks is disabled in NT. Looking at my strategy in Visual Studio, Parallel.For is completed in IntelliSense, whereas it is not in NT. This suggests that somehow NT is disallowing System.Threading.Tasks. Can you give me a good reason why?

    Has anyone figured out how to do this?

    Thanks!

    #2
    Serac,

    This is unsupported, however you may find more information elsewhere most likely. I remember finding a way to do this once before using a Google search. You just need to look up ".NET 3.5 parallel for loop" or something to that effect.

    Such as :



    While talking to a coworker about optimizing some heavy-hit, relatively resource intensive code the topic of multi-threaded programming came up.




    .NET 4 is what introduced a better parallelization library, however currently NinjaTrader uses .NET 3.5.
    Last edited by NinjaTrader_AdamP; 08-21-2012, 08:50 AM.
    Adam P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    571 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    548 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    549 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X