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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        81 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        68 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        55 views
        0 likes
        Last Post CarlTrading  
        Working...
        X