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

Indicator will work on 6J but not 6E or anything with price > 1

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

    Indicator will work on 6J but not 6E or anything with price > 1

    How an I fix this? I think it has something to do with the declarations when I created indicator.
    Please help.

    #2
    Hello ninjablanks,

    Are there any error messages in the log tab of the control center?

    What exactly is not working correctly?
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      No log error messages. The indicator works correctly on 6J (which has a price less than .1) but will not work on any other currency futures. The only difference I can see is the value being greater than 1 for the other futures. Any ideas?

      Comment


        #4
        ninjablanks, you will need to debug your code and all variables set / used in this case to see why the return those unexpected values in your particular market.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          NT_Bertrand,

          I am experiencing the same issue. I created a simple indicator with "B" (buy) and "S" (sell) to plot on my charts when the MACD moving average crosses MACD. It works great on the Euro (6E) but if I try to use it on any other instruments it will not work. I re-created the indicator several times to make sure I didn’t have any errors. I complied with no errors and it only works with 6E. I gave up on trying to get it to work on other instruments.

          Thanks.
          J

          Comment


            #6
            Hi J,

            You will need to debug the values in your script. Print all the values used in your condition so you can verify they're what you expect.
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by andrewtrades, Today, 04:57 PM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by chbruno, Today, 04:10 PM
            0 responses
            6 views
            0 likes
            Last Post chbruno
            by chbruno
             
            Started by josh18955, 03-25-2023, 11:16 AM
            6 responses
            436 views
            0 likes
            Last Post Delerium  
            Started by FAQtrader, Today, 03:35 PM
            0 responses
            7 views
            0 likes
            Last Post FAQtrader  
            Started by rocketman7, Today, 09:41 AM
            5 responses
            19 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X