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 cmoran13, Yesterday, 01:02 PM
              0 responses
              25 views
              0 likes
              Last Post cmoran13  
              Started by PaulMohn, 04-10-2026, 11:11 AM
              0 responses
              17 views
              0 likes
              Last Post PaulMohn  
              Started by CarlTrading, 03-31-2026, 09:41 PM
              1 response
              160 views
              1 like
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              94 views
              1 like
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              148 views
              2 likes
              Last Post CaptainJack  
              Working...
              X