Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error on setting indicator plot for indicator

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

    Error on setting indicator plot for indicator

    Just get this error

    Code:
    Error on setting indicator plot for indicator 'SercavaMA'. Value outside of valid range.
    I was trying to apply a personal indicator (some kind of moving average) to another personal indicator whose input data is another personal indicator.

    Applying it to RSI (for example) gives no error and works fine. ¿Perhaps too many personal indicator nested?

    Thanks in advance,

    Sergio

    #2
    Hi Sergio, you would need to look into which nesting produces those unacceptable values as outcomes that NT then in could not display, likely a nested calculation 'blowing up' due to precision issues would be my best guess.

    Here are some example of when this error would be returned to you :
    Plot0.Set(double.MaxValue);

    Plot0.Set(double.NaN);

    Plot0.Set(9999999999999999999999999.0);

    Plot0.Set(double.PositiveInfinity);

    Plot0.Set(double.MinValue);

    Plot0.Set(double.NegativeInfinity);

    Plot0.Set(-9999999999999999999999999.0);

    Comment


      #3
      Is strange, all nested indicators are properly plotted, no one getting extreme values. Will try to check it more deeply.

      Comment


        #4
        You mean when you're plotting them by themselves individually?

        Comment


          #5
          Yes they are correctly plotted individually. Only applying my custom average to the last gives the error. The custom average works well applied to RSI, as said.

          Comment


            #6
            That could still be the case, as the combination could trigger a situation your code would not be prepared to see / handle. You would need to debug the combo then using prints to understand why it blows up.

            Comment


              #7
              Hard work then.Thanks.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              581 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              338 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              103 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              554 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              552 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X