Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Assembly References

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

    Assembly References

    I've an indicator in .dll form. Is it possible to refer the methods and use it in custom strategy?

    #2
    Hi ark321, thanks for posting. You can use the indicator in your strategy. You can find how to access it using the IntelliSense system in the NinjaScript Editor, or it should be viewable in the Indicators folder of the strategy builder. In the Editor you can type "NinjaTrader.NinjaScript.Indicators." and once you type the last dot operator it will populate a list of all available indicators.

    Kind regards,
    -ChrisL

    Comment


      #3
      Thanks. This is what I'm seeing when I add .dot at the end of the indicator. Are these the available methods/references in that indicator (which I dont think so),

      Comment


        #4
        Hi ark321, the list is correct. If the indicator doesn't have any public Plots or public Series<t> objects then it's data will not be accessible. Do you get a vlaue when you printout its Values array e.g.

        NinjaTrader.NinjaScript.Indicators.SMA sma;
        sma = SMA(14);
        Print(sma.Values[0][0]);

        Comment


          #5
          I'm having compilation issue. It says the 'type or namespace could not be found (are you missing directive or assebly reference)'

          Comment


            #6
            Hi ark, could you post a screen shot of the code you are using and the compile error?

            Comment


              #7

              Comment


                #8
                Hi ark, the indicator is in the Indicators namespace, so you should not need and more using statements. It should be in the NinjaTrader.NinjaScript.Indicators namespace.

                Kind regards,
                -ChrisL

                Comment


                  #9
                  Got it. Now, I'm able to access the indicator using intellisense but I still get this error when I declare

                  Comment


                    #10
                    never mind. It seems to be resolving. Thanks for the help

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Mindset, 04-21-2026, 06:46 AM
                    0 responses
                    89 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by M4ndoo, 04-20-2026, 05:21 PM
                    0 responses
                    135 views
                    0 likes
                    Last Post M4ndoo
                    by M4ndoo
                     
                    Started by M4ndoo, 04-19-2026, 05:54 PM
                    0 responses
                    68 views
                    0 likes
                    Last Post M4ndoo
                    by M4ndoo
                     
                    Started by cmoran13, 04-16-2026, 01:02 PM
                    0 responses
                    119 views
                    0 likes
                    Last Post cmoran13  
                    Started by PaulMohn, 04-10-2026, 11:11 AM
                    0 responses
                    69 views
                    0 likes
                    Last Post PaulMohn  
                    Working...
                    X