Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

errors importing ninjascript strategy

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

    errors importing ninjascript strategy

    I'm receiving the following errors when attempting to import a ninjascript strategy, and I don't know how to proceed. Please see attached screenshot.
    Attached Files

    #2
    Hello 2inthebush,

    Thank you for your inquiry.

    These errors make it seem like perhaps you have a duplicate file installed somewhere in the NinjaTrader 8/bin/Custom folder. How did you install this strategy? Did you use the import utility at Tools > Import > NinjaScript Add-on?

    If you look through all of the subfolders at NinjaTrader 8/bin/Custom folder, do you see duplicates of either the strategy's .cs file (BKVuManChuStrategy.cs) or a duplicate of a file called HeikenAshi8.cs anywhere? They'd likely be in the Strategies folder, Indicators folder, the Custom folder itself.

    I look forward to your response.

    Comment


      #3
      Yes, I used the import utility at Tools > Import > NinjaScript Add-on.

      I've searched throughout my local Ninjatrader 8 folder for HeikenAshi8.cs and BKVuManChuStrategy.cs. I only found one file of HeikenAshi8.cs, located in bin/custom/indicators. There are zero files named BKVuManChuStrategy.cs, or anything similar.
      Last edited by 2inthebush; 03-01-2022, 10:14 PM.

      Comment


        #4
        Hello 2inthebush,

        Thank you for your reply.

        Something with the way that this script is programmed or one of the files within the .zip assembly is causing this problem. It seems like it's conflicting with something that you already have installed. Is this assembly something that you received from a third party or that you created yourself?

        If you open the .zip file for this script, what are the files that are within it?

        I look forward to your response.

        Comment


          #5
          It's a third-party strategy, and it contains the following files:

          BKVuManChuStrategy.cs
          BKVuManChuStrategy.dll
          Info.xml
          Last edited by 2inthebush; 03-02-2022, 01:37 PM.

          Comment


            #6
            I've resolved the issue by removing the file HeikenAshi8.cs

            The file was included with this Heiken Ashi 8 indicator below. I don't need this indicator at the moment, so that's ok.

            NinjaTrader 8 natively provides Heiken Ashi as a bar type for most common bar types (minute, tick, volume, second, day, week, month, year). This Heiken Ashi indicator is provided for the Range, Renko and any custom bar types that may be added. The indicator performs in the same manner as the NinjaTrader 7 version. 4-27-18 […]

            Comment


              #7
              Hello 2inthebush,

              Thank you for your reply.

              We may be able to figure out where the conflict is coming from by manually installing the script.

              You could manually install the .cs file from the .zip file and compile in the NinjaScript Editor to see if where the conflict is coming from.
              • Navigate to (My) Documents\NinjaTrader 8\bin\Custom\Strategies.
              • Copy the .cs file and .dll into this directory.
              • Next, you will need to compile the indicator and check for errors.
              Follow the instructions to compile the indicator. Note that you will not see your new indicator listed until after you compile your indicators. You will first need to select an existing indicator and compile these from there. This is because NinjaTrader compiles all indicators and strategies- not just one.
              • Open NinjaTrader
              • From the Control Center select the New menu--> select NinjaScript Editor
              • Double click on the Indicators folder--> then double click on any of the indicators
              • Once the indicator code is in view right click in the window and select References
              • Select add
              • Navigate to the 'Strategies' folder
              • Locate BKVuManChuStrategy.dll
              • Click "Open" to add the reference.
              • Click "OK" and recompile.
              Once you compile, you should be able to determine where the conflict is coming from by the errors that appear.

              If you are unsure as to what the error is indicating, please send me a screenshot of the NinjaScript File column and Error column fully visible (not to be confused with the Code column)
              • To send a screenshot with Windows 7 or newer I would recommend using Window's, Snipping Tool.
              • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.
              I look forward to your response.

              Comment


                #8
                Originally posted by 2inthebush View Post
                I've resolved the issue by removing the file HeikenAshi8.cs

                The file was included with this Heiken Ashi 8 indicator below. I don't need this indicator at the moment, so that's ok.

                https://ninjatraderecosystem.com/use...heiken-ashi-8/
                Hello 2inthebush,

                Thank you for your reply.

                Happy to hear that you were able to figure it out and were able to isolate the conflict to that specific script.

                Comment


                  #9
                  Cool, thanks for the instructions. I'll keep those for future reference.

                  This issue is resolved at this point, so I'll move on. Thank you for your help.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by argusthome, 03-08-2026, 10:06 AM
                  0 responses
                  80 views
                  0 likes
                  Last Post argusthome  
                  Started by NabilKhattabi, 03-06-2026, 11:18 AM
                  0 responses
                  46 views
                  0 likes
                  Last Post NabilKhattabi  
                  Started by Deep42, 03-06-2026, 12:28 AM
                  0 responses
                  29 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
                  66 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Working...
                  X