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

why do i get The calculation results in unrenderable values.

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

    why do i get The calculation results in unrenderable values.

    why do I get this error and where and how to fix it?
    Indicator 'PullbackBounce': Error on calling 'CalculateMinMax' method on bar 419: The calculation results in unrenderable values.
    I plot using 5 minute chart on aud.usd
    Attached Files

    #2
    Hello,

    Thank you for the post.

    I took a look at the script and can see you are using double.NaN in various places. I tried tracing where the was being used in the logic, but without debugging I could not say where this is being used in plotting. Replacing the double.NaN with 0 seems to prevent the error so it seems to be related to this logic. This does change the overall logic, so for this you would likely need to trace which specific part of the logic causes the exception to show and check what values are used at that point.

    The error would suggest an invalid value is being passed to a plot or one of the drawing objects being used. If you reduce the code to find the exception line, we could look at that syntax and situation further.



    I look forward to being of further assistance.
    Last edited by NinjaTrader_Jesse; 01-12-2018, 08:18 AM.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by adeelshahzad, Today, 03:54 AM
    5 responses
    32 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by stafe, 04-15-2024, 08:34 PM
    7 responses
    32 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by merzo, 06-25-2023, 02:19 AM
    10 responses
    823 views
    1 like
    Last Post NinjaTrader_ChristopherJ  
    Started by frankthearm, Today, 09:08 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    43 views
    0 likes
    Last Post jeronymite  
    Working...
    X