Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator on MyDataSeries terminates NT

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

    Indicator on MyDataSeries terminates NT

    Hello,
    I declared MyDataSeries and try to Add an indicator on it and NT terminates.
    Why is it not allowed? Or I'm doing something wrong?
    I have in "variables" private DataSeries MyDataSeries;
    in Initialize:
    MyDataSeries = new DataSeries(this);
    Add(Bollinger(MyDataSeries, 2.0, 10);

    The last line gives the termination.

    Baruch

    #2
    Hello Baruch,
    Thanks for writing in and I am happy to assist you.

    You cannot use the method Add(Bollinger(MyDataSeries, 2.0, 10); in an indicator. This Add overload (to add an indicator) is applicable in a strategy only.

    Please refer here which described all the Add method which is applicable for an indicator.



    Please let me know if I can assist you any further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Hello JoyDeep,
      If you look carefully, you will see that I opened this thread in "Strategy development"!!!!!!
      So I want to add an indicator in a strategy on my DataSeries.
      Is this possible???

      Baruch

      Comment


        #4
        Hello Baruch,
        My apologies for overlooking it.

        Unfortunately it is not possible.

        As an alternative you can look into this reference sample which demonstrates how to plot from a strategy http://ninjatrader.com/support/forum...ead.php?t=6651

        Please let me know if I can assist you any further.
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Hello JoyDeep,
          I know how to plot from strategies, but what I need are indicator calculations for MyDataSeries and to be shown in BT (which is not possible with StrategyPlot). I don't want to include the code for Bollinger and other indicators into my strategy.
          Why is it not possible?
          If I retrieve values in OnBarUpdate it works, only the Add doesn't work.
          Not only that it doesn't work it crashes NT.
          Baruch

          Comment


            #6
            Hello Baruch,
            Unfortunately dynamic adding is not supported. It is however in our list of future development.

            Please let me know if I can assist you any further.
            JoydeepNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            648 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            369 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            108 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            572 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            573 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X