Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SIMD calculations / vector use in Ninjatrader

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

    SIMD calculations / vector use in Ninjatrader

    Hello,

    I am developing custom indicators using NinjaScript in NinjaTrader and have a couple of questions regarding performance optimization:
    1. Vectors: Does NinjaScript support the use of vectors (from the System.Collections.Generic namespace or any other relevant namespace) for indicator development? Are there any specific considerations or limitations I should be aware of?
    2. SIMD: Can we utilize SIMD (Single Instruction, Multiple Data) intrinsics or libraries such as System.Numerics.Vectors in NinjaScript for parallel processing? If supported, are there any guidelines or limitations we need to consider?
    3. Can we use pointers?
    4. GPU?
    5. use unsafe compile?
    I have been trying to do so but always get Context errors.
    Thank you for your assistance.
    Last edited by robbymane; 07-22-2024, 09:03 AM.

    #2
    Hello robbymane,

    NinjaTrader uses C# as its language so you would have access to any of the items contained in the C# framework or references that you add. We don't have any specific guidance for using C# libraries, if there is something in that namespace that you wanted to use you could certainly look up examples online and try it to see how it works in your script.

    NinjaScript does not support using custom threading or parallelism, you would need to execute code based on the events of the platform using the overrides given.

    There are not any use cases where using pointers would be needed in NinjaScript.

    Comment


      #3
      ok thank you

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      213 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      129 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      146 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      230 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      192 views
      0 likes
      Last Post CarlTrading  
      Working...
      X