Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to get the list of strategies from a chart?

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

    How to get the list of strategies from a chart?

    I'm working on a strategy, and some users load the strategy more than once on the same chart (I'm not sure why, maybe user error), but I want to restrict that.
    My idea is to obtain the list of strategies loaded on the chart, and if the strategy has already been loaded, prevent them from enabling it.
    In other words, there should only be one strategy loaded with the same name (or I don't know how to identify it), and if there is already another one, prevent them from enabling it.
    How can I do this?
    Thank You

    #2
    Have you looked at ChartControl.Strategies?

    Good reading here.

    Comment


      #3
      That is right,
      Thank you

      Comment


        #4
        Hello ervin,

        Thanks for your post.

        The information bltdavid has provided is correct.

        ChartControl.Strategies is a collection of strategies configured on the chart window.

        For more information about ChartControl.Strategies, see this help guide page: https://ninjatrader.com/support/help...strategies.htm
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        92 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        138 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        122 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        73 views
        0 likes
        Last Post PaulMohn  
        Working...
        X