Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unable to import indicators

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

    #16
    Hi there!
    Wenn i try to import indicator<price volume histogram>-the next message came
    <import failed.the ninjascript archive file may contain duplicate method names that already exist on your PC or there is a required file missing on either your PC or in the import archive??>
    any advise???

    Comment


      #17
      alexman, you would need to drop the raw file directly into the bin > custom > indicator folder and compile, this way you would see which methods are missing or giving you the conflict.

      Comment


        #18
        thanks Bertrand
        but i loaded new 21 version and wenn i try to do like you wrote i have next---BIN-CUSTOM-()AND NEXT 2 FOLDERS:BACKUP AND SNIPPET..
        Any idea ,advise why it so..
        thanks in advance..

        Comment


          #19
          Hello Alexman,

          It sounds like you are looking in C:\Program files\NinjaTrader.

          The location for indicator codes is instead My Documents\NinjaTrader\bin\custom\indicator
          Ryan M.NinjaTrader Customer Service

          Comment


            #20
            Sorry guys..how to compile file???/

            Comment


              #21
              You can compile by Right Clicking > Compile
              Ryan M.NinjaTrader Customer Service

              Comment


                #22
                Thanks a lot ryanM for all help,but wenn i try to import or export script i get following message<YOU HAVE CUSTUM NINJA SCRIPT FILES ON YOUR PC THAT HAVE PROGRAMMING ERRORS.THESE ERRORS MUST BE RESOLVED BEFORE YOU CAN IMPORT NINJA SCRIPT ARCHIVE FILE..>

                Comment


                  #23
                  wenn i do compile file i get error<>ERROR ON GENERATING INDICATOR<>
                  aNY ADVISE...THANKS IN ADVANCE

                  Comment


                    #24
                    You'll have to look for the error messages that are seen from within the compiler. You can share the message you're getting here and the lines of code causing these and we may be able to identify the specific cause. You can also uninstall and start clean.
                    Ryan M.NinjaTrader Customer Service

                    Comment


                      #25
                      OK..Error was:
                      -Ninjascript file----Indicator/price volume histogram.cs
                      -error---------No overload for method,draw rectangle takes &argument
                      -Code----CS1501(The following CS1501 error code information is provided within the context of NinjaScript. The examples provided are only a subset of potential problems that this error code may reflect. In any case, the examples below provide a reference of coding flaw possibilities.

                      Error Code Explanation
                      This error can occur when you use use an overload (method parameter signature) that does not exist. This could either be because you are passing in 3 arguments when the method only requires 2.

                      You can cycle through the available overloads with the use of the up and down arrows on the Intellisense when you call an indicator method or any other method.

                      Error Description #1
                      No overload for method 'SMA' takes '0' arguments

                      Example #1
                      // Erroneous Sample Code - SMA() does not contain an overload that has 3 arguments
                      double myValue = SMA(Close, 5, 2)[0];

                      // Resolution Sample Code - SMA() has an overload consisting of 2 arguments
                      double myValue = SMA(Close, 5)[0];

                      Example #2
                      // Erroneous Sample Code - EMA() does not contain an overload that has 0 arguments
                      double myValue = EMA()[0];

                      // Resolution Sample Code - EMA() has an overload consisting of 1 argument
                      double myValue = EMA(5)[0]; )
                      --Line----315
                      -column-----5

                      Comment


                        #26
                        The error message upon compiling seems to be:

                        OK..Error was:
                        -Ninjascript file----Indicator/price volume histogram.cs
                        -error---------No overload for method,draw rectangle takes &argument
                        The rest seems like it was taken from our help guide documentation regarding this type of error.

                        What does DrawRectangle code look like for the specified file (price volume histogram.cs)
                        Ryan M.NinjaTrader Customer Service

                        Comment


                          #27
                          the line 315 contain this info:
                          DrawRectangle("pv" + de.Key, leftBarsAgo, yBase, rightBarsAgo, yBase + TickSize * _ticksPerPlotRange, Color.Empty, color, _opacity);

                          Comment


                            #28
                            I sstill have no reply for my yesterdays error on installing indicator:

                            error the line 315 contain this info:
                            DrawRectangle("pv" + de.Key, leftBarsAgo, yBase, rightBarsAgo, yBase + TickSize * _ticksPerPlotRange, Color.Empty, color, _opacity);

                            Comment


                              #29
                              Alex, this overload requires an autoScale bool as parameter now -

                              DrawRectangle("pv" + de.Key, true, leftBarsAgo, yBase, rightBarsAgo, yBase + TickSize * _ticksPerPlotRange, Color.Empty, color, _opacity);

                              Comment


                                #30
                                thanks for reply Bertrand...
                                but how and where can you set up this parameter...

                                Comment

                                Latest Posts

                                Collapse

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