Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Beta 11 & 12 problems

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

    Beta 11 & 12 problems

    Greetings,
    I have found that when I call an indicator function, say MACD() it returns 0 as well as say RSI(). Now in Beta 8 it did return values...is there anything that I need to be aware of?

    I have an indicator, D3Spotter (v31), that uses many sub-indicators such as MACD(), RSI(), CCI(), etc that in beta 12 is returning zeros, can't plot zeros

    This indicator works in v6.5 and ports to NT7 with no errors, yet when you import this indicator there is not plot due to the zero readings coming from the function.

    Any suggestions?

    #2
    dadof3and3,

    I suggest you strip down your indicator to bare essentials to replicate your issue. Then you can start adding layers of complexity back in to find the line that causes errors. Unfortunately there is no direct course of action I can prescribe. You will just have to slowly debug to find where in your code it breaks so you can adjust it.

    Hint may be to watch how you are adding your indicators. If you are creating instances of indicators try commenting out those lines first and just call the indicator methods directly for your printouts.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Got it, thanks Josh!

      Well, I was using the IDataSeries to assign the specific indicator (CCI, RSI, MACD) to it but I was making the assignment in the Initialize() portion of the code. I now make the assignment in the OnBarUpdate() like this...

      if (CurrentBar == 0) Indicator = CCI(Period);

      I'm sure that will be backward compatiable with 6.5

      your comments appreciated!

      Comment


        #4
        In 7, we recommend using such assignments in OnStartUp(). OnStartUp() would not be 6.5 compatible, but it is more clean than a if (CurrentBar == 0) check in OnBarUpdate().
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        595 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        343 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        556 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        554 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X