Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error Message

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

    Error Message

    I get this error message when trying to make adjustments to my fibonacci drawing tool. "Unhandled exception: The value "Ninjatrader.Ninjascript.DrawingTools.PriceLev el" is not of type "NinjaTrader.NinjaScript.DrawingTools.PriceLev el" and cannot be used in this generic collection" Can anyone tell me what is causing this and how to correct it?

    #2
    Hello live2wrshp,

    Thanks for your post.

    What version of NinjaTrader are you using? Please provide the entire version number. This can be found under Help -> About (Example: 8.?.?.?)​

    What Fibonacci drawing tool does this error occur for?

    To clarify, does this occur when using a custom NinjaScript that draws a Fibonacci drawing on the chart or are you manually drawing the Fibonacci drawing on the chart?

    What are the exact steps you are taking to reproduce the error message?

    I will use the steps you share to try and reproduce the error message on my end so we may look into this further.

    I look forward to further assisting you.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      here is the version...8.1.1.7. What is triggering the message is trying to change a retracement after I have initially drawn it. I double click on the retracement and make changes to it. Then when I try to apply those changes I get that message. I recently downloaded an indicator package that I believe may have replaced some of the drawing tools original files. Maybe I should just reinstall Ninja?

      Attached Files

      Comment


        #4
        Hello live2wrshp,

        Thanks for your notes.

        When testing this on my end I do not see any errors occurring when changing the Fibonacci Retracements Drawing Object levels.

        See this demonstration video: https://brandonh-ninjatrader.tinytak...MF8yMjU5MDcwMw

        I understand that you installed a third-party addon that may have overwritten or replaced the Drawing Tools that come with NinjaTrader.

        Please create a clean environment by following the steps below and test drawing a Fibonacci Retracements draw object on the chart followed by changing the price levels of the draw object.

        Creating a clean environment can be done by following the steps below:
        1. Close NinjaTrader 8, and rename the "NinjaTrader 8" folder in My Documents to something like: "NinjaTrader 8 OLD"
        2. Uninstall NinjaTrader from the Windows Control Panel and reinstall using the installer from account.ninjatrader.com
        3. Add the required indicators and test the template.
        If you ever need to switch back to your original platform, you may do so by closing NinjaTrader and swapping the platform folder names.

        For example, Close NinjaTrader and rename the new "NinjaTrader 8" folder to "NinjaTrader 8 NEW" and the "NinjaTrader 8 OLD" folder to "NinjaTrader 8." Then restart the platform. Simply put: NinjaTrader 8 will always load the "NinjaTrader 8" folder in My Documents.

        Do you see the same behavior occurring when testing this in a clean environment?​
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5
          switching back to clean environment is not a solution, we are trying to create custom drawing object and want to know why this error is coming and how to resolve it. Can you please help?

          Comment


            #6
            Hello tradeesh,

            Brandon's goal was to remove any custom or 3rd party scripts, or modifications to system scripts that would be causing this error.

            If the error is being caused by invalid code in your custom script that you would like assistance with, please provide the line of code causing the error.

            For information on use price levels from a drawing tool in NinjaScript, there is an example in the help guide of this from the FibonacciRetracements drawing tool.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            77 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            45 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            27 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            32 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            63 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X