Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Custom Indicator not working with ALL instruments...

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

    #16
    Hello dunwoodyjr,

    So I see that you are using multiple instruments prices and the SMA to calculate your plot value on your indicator.

    Calculating your plot values this way should not effect how your Plot is being calculated since it is not using a previous value of the plot.

    Testing this out on my end both values are .366 like on your chart. That being the case it maybe the other instruments values that maybe causing the differences.

    If you reload your Strategy Analyzer do the values match? If not, you may want to use the Print() method to make sure that both instruments are going to have the same values. Here is a thread that you may view that has an example of this.


    Let us know what the results are.
    JCNinjaTrader Customer Service

    Comment


      #17
      DUDE!! The WHOLE time the problem has been the data. ^ADV and ^DECL had 6 missing dates going back to 1995. This throws the WHOLE thing off as soon as you get to that first missing date. Meaning: 365 bars were no problem, but 3650 bars were because SPY had XXX bars and ^ADV, ^DEC had XXX-2 bars. And there you go...

      Comment


        #18
        Hello dunwoodyjr,

        Glad to hear that the discrepancy was found.

        Let us know if we can be of further assistance.
        JCNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by wzgy0920, 04-20-2024, 06:09 PM
        2 responses
        26 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 02-22-2024, 01:11 AM
        5 responses
        32 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, Yesterday, 09:53 PM
        2 responses
        49 views
        0 likes
        Last Post wzgy0920  
        Started by Kensonprib, 04-28-2021, 10:11 AM
        5 responses
        191 views
        0 likes
        Last Post Hasadafa  
        Started by GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,230 views
        0 likes
        Last Post xiinteractive  
        Working...
        X