Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Set flags for all instances of strategy

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

    Set flags for all instances of strategy

    Hello, is it possible to set a flag that can be read across all instances of a strategy?

    If I enable a strategy on one chart and a flag gets set, can another chart with the same strategy be enabled and read the flag of the other chart? Does that make sense?

    #2
    If that can’t happen, how do I create multiple start and stop times for a single strategy/chart to be enabled?

    Comment


      #3
      I’ve read I can do the first option through a static variable in my class, that can be read across all instances.?.

      Comment


        #4
        Hello ryjoga,

        It would be unsupported to do so, but you could use a static class variable to share the information between scripts.

        Below is a link to an example.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        87 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        128 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        65 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        117 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        67 views
        0 likes
        Last Post PaulMohn  
        Working...
        X