Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

References

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

    References

    if I import the AddOnFramework sample and right click the editor > References, should I see it on the list?

    #2
    No.

    That sample is made up of source code, there is no DLL
    in that sample.

    A 'reference' always refers to a DLL file, which is called
    an assembly in the .NET world.

    That said, references are generally not imported via the
    Tools menu, they are added using the NinjaScript Editor.

    -=o=-

    Let me explain.

    To say 'import a reference' is somewhat wrong thinking.

    References are added, not imported.

    The terms 'imported' and 'added' imply different things.

    What is the correct way to think about it?

    Reference assemblies (DLL files, probably created
    via Visual Studio) are added via the NinjaScript Editor.

    NinjaScript objects (previously exported as .zip files) are
    imported via the Tools menu.

    -=o=-

    That said ...

    The waters get muddy a bit because the exported .zip
    file can be augmented by inserting assembly references
    (aka DLL files) into the .zip file.

    During the import process, NT copies the .DLL reference
    files (if any exist) and automatically adds an assembly
    reference for it, but this is more like an all-in-one
    'package' concept, designed for convenience,
    sorta piggy backing off the import feature.

    Nevertheless, 'import' vs 'add' nomenclature is important
    to know.

    Last edited by bltdavid; 11-20-2023, 08:04 AM. Reason: extra details

    Comment


      #3
      Not to contradict what has been said here but to expand on it a bit... I think this may just be a question of definitions... if you use Tools -> Import -> NinjaScript Add-On you could be said to be doing an import (of a .DLL or .NET assembly). And, subsequently, in NinjaScript Editor, if you right-click and go to References, you will see the file you just imported in the list.

      Of course, you can't "import" the examples because those are in source code form, and are not a .DLL or .NET assembly (unless you compiled them and exported such an assembly, and then removed the source code...) - thus, they won't show up to be imported in Tools -> Import -> NinjaScript Add-On.
      Last edited by QuantKey_Bruce; 11-20-2023, 07:50 AM.
      Bruce DeVault
      QuantKey Trading Vendor Services
      NinjaTrader Ecosystem Vendor - QuantKey

      Comment


        #4
        ok thanks. a little confusing but I can import a zip file which may or may not include a dll.

        if its includes a dll then it just goes on the References list otherwise, if just code,it appears in a folder (e.g. Add-On) in the editor ready for editing - makes sense?
        Last edited by fingers; 11-20-2023, 10:15 AM.

        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