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

Disappearing indicator

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

    Disappearing indicator

    Hello,

    My custom indicator disappears from the chart when it calculates on:
    - on each tick, or
    - on price change

    I don't see issue with the indicator disappearing when it calculates on:
    - on bar close.

    Please point me in the right direction on troubleshooting this issue.

    Thanks,
    Tom

    #2
    Hello,

    Thank you for the question.

    Are you currently having any errors displayed in either the Log tab of the control center or the New -> NinjaScript output window while testing in these cases?

    If so, can you provide the error for me to review?

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Yes. This is the error that I am getting:

      2016-12-09 13:14:01:678|3|4|Indicator 'ZOsc8': Error on calling 'OnCalculateMinMax' method on bar 40981: The calculation results in unrenderable values.

      Comment


        #4
        Hello,

        Thank you for posting this.

        Is ZOsc8 the indicator you are creating or is this another indicator being called from the indicator you are working on?

        The error message indicates that an invalid value may have been used for ZOsc8 and it was unable to calculate the Min/Max values for the chart.

        If this error is coming directly from the indicator ZOsc8, you can likely find the problem by reducing the code until this error no longer happens. You can just comment out the code and continue to test the script to locate a more specific region of syntax that may be at fault.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Yes. ZOsc8 is the indicator I'm creating. It is not a called indicator.

          I will look at the Min/Max portion of the code to figure out what is going on. It is odd so me since I didn't have this issue when running the indicator on NT7.

          Thanks,
          Tom

          Comment


            #6
            Hello,

            Thank you for confirming.

            Yes if you are overriding the OnCalculateMinMax that would be the best place to start checking. You can likely confirm if that is the cause by just commenting the whole override out, and re test.

            I look forward to being of further assistance.
            JesseNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by FrazMann, Today, 11:21 AM
            2 responses
            6 views
            0 likes
            Last Post NinjaTrader_ChristopherJ  
            Started by rjbtrade1, 11-30-2023, 04:38 PM
            2 responses
            80 views
            0 likes
            Last Post DavidHP
            by DavidHP
             
            Started by Spiderbird, Today, 12:15 PM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_ChristopherJ  
            Started by lorem, Yesterday, 09:18 AM
            5 responses
            18 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by cmtjoancolmenero, Yesterday, 03:58 PM
            12 responses
            42 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X