Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cannot Import script

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

    Cannot Import script

    Tried to import but got a message compile errors have to be fixed.. This was the first time I tried to add script since install,,\
    Went in and tried to compile something , gave me the attached bad boys... I said " import" when I installed.. Do i need to delete these?
    Attached Files

    #2
    Please right click and select References and take a screenshot of what you have there. Thank you.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      Please right click and select References and take a screenshot of what you have there. Thank you.
      Here ya go....
      Attached Files

      Comment


        #4
        Please go to the References and press Add and add one for NinjaTrader.Vendor.dll. It is located in your Documents\NinjaTrader 7\bin\Custom folder. Then go ahead and recompile.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Josh View Post
          Please go to the References and press Add and add one for NinjaTrader.Vendor.dll. It is located in your Documents\NinjaTrader 7\bin\Custom folder. Then go ahead and recompile.
          Added,, went back to compile and came up with error, that add dll is missing.
          Attached Files

          Comment


            #6
            Can you please provide the exact text of the new error message? Thank you.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_Josh View Post
              Can you please provide the exact text of the new error message? Thank you.
              ok,, that vendor.dll got added to references and now everything compiles.. Went to import an indicator (attachment) but get an Import failed.. method names already exist on your PC... Wonder if this is looking at the 6.5 since I want to import the same custom indicators I have there???

              Copied the ZigZagUTC.cs into the 7 indicator folder,, compiled and came up with a drawline error????

              Also notice that when compiling is successful no little "success" box pops up in 7 like it does in 6...
              Attached Files
              Last edited by gg80108; 03-20-2010, 01:31 PM. Reason: added more info

              Comment


                #8
                For sure there is no confusion between 6.5 and 7. Josh will follow up with you on Monday.
                RayNinjaTrader Customer Service

                Comment


                  #9
                  any update for me today on this issue??

                  Don

                  Comment


                    #10
                    Don,

                    Reason you can't import is because the script you have is not NT7 compatible. When you copied the file directly you saw errors that need to be addressed in the code to become NT7 compatible. Please change the signature method being used by your DrawLine() codes to get it compatible. You can see the Help Guide article on DrawLine() for NT7 to see allowable signatures.

                    NT7 has removed the successfully generated message box to remove repetitive steps in the development process of NinjaScript.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      Line 150 fixes line 119

                      [QUOTE=NinjaTrader_Josh;153445]Don,

                      Reason you can't import is because the script you have is not NT7 compatible. When you copied the file directly you saw errors that need to be addressed in the code to become NT7 compatible. Please change the signature method being used by your DrawLine() codes to get it compatible. You can see the Help Guide article on DrawLine() for NT7 to see allowable signatures.



                      OK,, need another parm for the draw line,, but check this out the compiler says line 119 is bad, even though it is blank,, when I fix line 150 (put a false in where the cursor is,,, this fixes line 119 too!!!! This code was attached below...
                      Attached Files
                      Last edited by gg80108; 03-22-2010, 03:11 PM.

                      Comment


                        #12
                        gg80108,

                        It could be the case as things downstream can impact the evaluation checking of other parts of the code. Generally speaking as you knock out various bugs it will knock out several others if the original error was impacted by the bug.
                        Josh P.NinjaTrader Customer Service

                        Comment


                          #13
                          Zigzagutc

                          hi
                          Having same problem while importing zigzag utc.
                          How could i solve this DrawLine() errror.Any ideas

                          Comment


                            #14
                            easyfying,

                            Please change the DrawLine() signature method to one used in NT7: http://www.ninjatrader.com/support/h...7/drawline.htm

                            You can see other code breaking changes outlined here: http://www.ninjatrader.com/support/f...ad.php?t=21016
                            Josh P.NinjaTrader Customer Service

                            Comment


                              #15
                              DrawLine not working for me in NT7

                              I followed the link but can't get the joy,
                              Could it be because I am using tenthpip?

                              A = int bars ago
                              BarsAgo = int bars long ago
                              MDF = int 10 (really 1 pip cause I am using tenthpip)

                              DrawLine("low"+CurrentBar, false, BarsAgo, Low[BarsAgo] - (TickSize*MDF), A, Low[A] - (TickSize*MDF), Color.Green, DashStyle.DashDotDot, 3);

                              Signature is this right?
                              DrawLine(string tag, bool autoScale, int startBarsAgo, double startY, int endBarsAgo, double endY, Color color, DashStyle dashStyle, int width)
                              Last edited by ohowie; 06-10-2010, 03:18 PM. Reason: Title

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              600 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              347 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
                              558 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              558 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X