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 CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        52 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        31 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        194 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        355 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        274 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X