• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    Patrick H.NinjaTrader Customer Service

    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.
        Patrick H.NinjaTrader Customer Service

        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.
          Patrick H.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by GKRuubster, Yesterday, 06:22 AM
          1 response
          20 views
          0 likes
          Last Post NinjaTrader_Marco  
          Started by rameses, Today, 02:43 AM
          0 responses
          1 view
          0 likes
          Last Post rameses
          by rameses
           
          Started by Bsmckm, 07-04-2020, 02:02 PM
          1 response
          19 views
          0 likes
          Last Post NinjaTrader_Marco  
          Started by pol133, Today, 02:35 AM
          0 responses
          4 views
          0 likes
          Last Post pol133
          by pol133
           
          Started by vivekniwas, 04-18-2018, 06:49 AM
          5 responses
          592 views
          0 likes
          Last Post NinjaTrader_ChrisSch  
          Working...
          X