Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator not removed when removing Stategy

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

    Indicator not removed when removing Stategy

    I have a strategy that uses an indicator and this indicator plots on the chart just fine. If I remove the strategy, the indicator while not running is still displayed in the list of indicators after the strategy is removed from the chart.

    How can this happen and how to prevent it?

    Thanks,

    Leroy

    #2
    Hello Leroy,

    Thank you for your post.

    This is not possible, as the Strategy will add the indicators to the chart but there is no method to remove Indicators from the chart when only removing the Strategy.

    Please let me know if I may be of further assistance.
    Last edited by NinjaTrader_PatrickH; 07-11-2013, 06:32 AM.

    Comment


      #3
      Since the strategy does an Add(IndicatorBase ind)....why can't it do a Indicators.RemoveAt(0) for all indicators in OnTermination?

      or something like this:

      Code:
      while (this.Indicators.Count > 0)
      	Indicators.RemoveAt(0);
      Leroy

      Comment


        #4
        Hello Leroy,

        Thank you for your response.

        I will forward your suggestion to our development team.

        Comment


          #5
          Hello Leroy,

          Thank you for your patience.

          Do you have an example that I could use to re-create this on my end?

          When I apply a strategy to the chart that adds indicators it will remove those indicators when I remove the strategy from the chart.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by connorlmarble, Today, 08:25 PM
          0 responses
          6 views
          0 likes
          Last Post connorlmarble  
          Started by algospoke, 02-20-2025, 08:12 PM
          7 responses
          88 views
          0 likes
          Last Post MiCe1999  
          Started by MiCe1999, Today, 05:55 PM
          0 responses
          10 views
          0 likes
          Last Post MiCe1999  
          Started by volIQ, Today, 05:43 PM
          0 responses
          7 views
          0 likes
          Last Post volIQ
          by volIQ
           
          Started by afoschini, 05-18-2020, 09:03 AM
          6 responses
          872 views
          0 likes
          Last Post shodown888  
          Working...
          X