Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Export error

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

    Export error

    Hi,
    I am trying to export a custom strategy as a complied assambly, but I get the following error: "Assembly could not be exported. Please ensure all requiered components are inclueded".

    I have already exported earlier versions of this strategy, but in this new update I am using an indicator which I imported from a 3rd party. I do have access to the source code of that indicator. That new addition into the code seems to be the problem while trying to export.

    Already been through some support topics in here but have not figured how to do it.


    Appreciate the help!!

    Click image for larger version

Name:	image.png
Views:	486
Size:	62.7 KB
ID:	1262265

    #2
    Isn't the error message self-explanatory?

    Your exported assembly must be fully self-contained,
    you have failed to include something that is required.

    Ah ... you are using a 3rd party indicator that you
    downloaded as source code?

    The export needs that indicator.
    Last edited by bltdavid; 07-30-2023, 03:21 PM.

    Comment


      #3
      Hello carlosgutierrez,

      Thanks for your post.

      This error message means that you are not including all the required items being used in the script you are trying to export.

      If you are referencing a third-party addon in your script, you would need to include that third-party addon in the export window to export the script successfully, as bltdavid noted.

      If the indicator is available in source code, you could add the indicator to your export.

      If the indicator is a dll, you could add a Reference to the dll in your export.

      You could check the error message in the Log tab of the Control Center for any additional hints as to what might need to be added to the export.
      <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


        #4
        Hi Brandon,
        I have included both indicators (which I have source code) into the export, and still get the same error.

        The log tab does not show any error message on this regards. How to check is said indicator is a DLL and how to add it to the export?

        Click image for larger version

Name:	image.png
Views:	448
Size:	21.6 KB
ID:	1262298

        Comment


          #5
          I see that I have to go and add - References. Any straightforward way to know which one is it from the 3rd party indicator?

          Comment


            #6
            I went into my Strategy code and right-click -> References, and added all what I saw there.
            Still same error.

            Click image for larger version

Name:	image.png
Views:	453
Size:	49.5 KB
ID:	1262303

            Comment


              #7
              Hello carlosgutierrez,

              Thanks for your note.

              You should not add every single reference in the References section to the export.

              Are the MarketVolume and OpenRange indicators being used in your strategy?

              Do you use any other indicators within your strategy? If so, what are they?

              Did you get these MarketVolume and OpenRange indicators from a 3rd party developer?

              To check if those indicators are from an assembly (dll) that a 3rd developer provided, open a New > NinjaScript Editor window, open the Indicators folder, and see if those indicators are listed. If they are not listed in the NinjaScript Editor window then those indicators are likely from an assembly (dll) that a 3rd party developer provided you.

              Since you are working with a 3rd party assembly, you could also consider contacting the developer of the indicators directly. They may have some insight for you on what needs to be added to export when using an indicator from their assembly.

              <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


                #8
                I do have them on my Ninja Editor. I can see both source codes.

                Strategy only uses 2 indicators, Open Range (I made that indicator) and the MarketVolume (3rd party which I can also see in the Editor).


                With these considerations, any workaround before contacting the developer of MarketVolume=

                Comment


                  #9
                  Hello carlosgutierrez,

                  Thanks for your notes.

                  When you made the OpenRange indicator, did you use any other 3rd party indicators in that script?

                  To clarify, if you double-click on the MarketVolume indicator file, are you able to see the code of the indicator?

                  You could contact the developer of the MarketVolume indicator to confirm if there is something that needs to be added to the Export window other than the indicator itself.

                  If possible, please send me the strategy file as a .cs file, the OpenRange indicator, and the MarketVolume indicator so I may look into the error further.

                  You could export the OpenRange indicator and MarketVolume indicator and attach the .zip files to your reply. The strategy .cs file could be found in the Documents\NinjaTrader 8\bin\Custom\Strategies folder.

                  I look forward to assisting further.
                  <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


                    #10
                    Originally posted by carlosgutierrez View Post
                    I do have them on my Ninja Editor. I can see both source codes.

                    Strategy only uses 2 indicators, Open Range (I made that indicator) and the MarketVolume (3rd party which I can also see in the Editor).
                    It could be that MarketVolume indicator is itself using a custom indicator,
                    or perhaps it is split up across two or more files, either way you need to
                    find out which one is the case and add all these extra files to the export list.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by NullPointStrategies, Yesterday, 05:17 AM
                    0 responses
                    58 views
                    0 likes
                    Last Post NullPointStrategies  
                    Started by argusthome, 03-08-2026, 10:06 AM
                    0 responses
                    133 views
                    0 likes
                    Last Post argusthome  
                    Started by NabilKhattabi, 03-06-2026, 11:18 AM
                    0 responses
                    73 views
                    0 likes
                    Last Post NabilKhattabi  
                    Started by Deep42, 03-06-2026, 12:28 AM
                    0 responses
                    45 views
                    0 likes
                    Last Post Deep42
                    by Deep42
                     
                    Started by TheRealMorford, 03-05-2026, 06:15 PM
                    0 responses
                    50 views
                    0 likes
                    Last Post TheRealMorford  
                    Working...
                    X