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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            67 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            36 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            60 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            62 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            53 views
            0 likes
            Last Post CarlTrading  
            Working...
            X