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 NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        55 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        132 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        73 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        49 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X