Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Shared Indicator

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

    Shared Indicator

    Hi,

    I have an indicator that does some very resource intensive calculations where the values are used by a number of strategies running concurrently.

    Aside from putting the values in some sort of database (MySQL, SQL Server compact, external files, etc) is there a way to have only one instance of the indicator yet be usable by multiple sources; a little like a static class?

    Best Regards,
    Scott

    #2
    Hi Scott, there would be not really supported concept to do that in NinjaScript unfortunately, but I would go with a database or perhaps a Global Variable to share the calculation results, there should be some threads on this topic here on our forum as I know community members have been going down that route.

    Comment


      #3
      Bertrand, thanks for getting back to me. I thought that would be the answer but was hoping I had missed something in my analysis.

      Best Regards,
      Scott

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      145 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      71 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      125 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      79 views
      0 likes
      Last Post PaulMohn  
      Working...
      X