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 kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        59 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        41 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        47 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        38 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        157 views
        0 likes
        Last Post SalmaTrader  
        Working...
        X