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 guillembm, Yesterday, 11:25 AM
            2 responses
            9 views
            0 likes
            Last Post guillembm  
            Started by junkone, 04-21-2024, 07:17 AM
            9 responses
            68 views
            0 likes
            Last Post jeronymite  
            Started by trilliantrader, 04-18-2024, 08:16 AM
            4 responses
            18 views
            0 likes
            Last Post trilliantrader  
            Started by mgco4you, Yesterday, 09:46 PM
            1 response
            11 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by wzgy0920, Yesterday, 09:53 PM
            0 responses
            10 views
            0 likes
            Last Post wzgy0920  
            Working...
            X